OSDN Git Service

cflib は plugins プロジェクトから,Stigmata直下のプロジェクトに移行したため,このリポジトリからは削除した.
[stigmata/stigmata-plugins.git] / kgram / src / main / java / jp / sourceforge / stigmata / birthmarks / kgram / KGramBasedBirthmarkService.java
1 package jp.sourceforge.stigmata.birthmarks.kgram;
2
3 import jp.sourceforge.stigmata.BirthmarkComparator;
4 import jp.sourceforge.stigmata.BirthmarkExtractor;
5 import jp.sourceforge.stigmata.BirthmarkPreprocessor;
6 import jp.sourceforge.stigmata.birthmarks.comparators.LogicalAndBirthmarkComparator;
7 import jp.sourceforge.stigmata.spi.BirthmarkService;
8
9
10 /**
11  * 
12  * 
13  *
14  * @author Haruaki TAMADA
15  */
16 public class KGramBasedBirthmarkService implements BirthmarkService{
17     private BirthmarkComparator comparator =
18         new LogicalAndBirthmarkComparator(this);
19     private BirthmarkExtractor extractor =
20         new KGramBasedBirthmarkExtractor(this);
21
22     @Override
23     public String getType(){
24         return "kgram";
25     }
26
27     @Override
28     public String getDescription(){
29         return "k-gram based birthmark.";
30     }
31
32     @Override
33     public BirthmarkExtractor getExtractor(){
34         return extractor;
35     }
36
37     @Override
38     public BirthmarkComparator getComparator(){
39         return comparator;
40     }
41
42     @Override
43     public boolean isExperimental(){
44         return false;
45     }
46
47     @Override
48     public boolean isUserDefined(){
49         return false;
50     }
51
52     @Override
53     public BirthmarkPreprocessor getPreprocessor(){
54         return null;
55     }
56 }