OSDN Git Service

07456bc11e55aef96effcb8878b91160da9fb572
[stigmata/stigmata.git] / src / main / java / jp / sourceforge / stigmata / birthmarks / comparators / DPMatchingBirthmarkComparatorService.java
1 package jp.sourceforge.stigmata.birthmarks.comparators;
2
3 /*
4  * $Id$
5  */
6
7 import jp.sourceforge.stigmata.BirthmarkComparator;
8 import jp.sourceforge.stigmata.spi.BirthmarkSpi;
9
10 /**
11  * SPI of {@link BirthmarkComparator <code>BirthmarkComparator</code>}.
12  * Comparing birthmarks by DP matching algorithm.
13  *
14  * @author Haruaki TAMADA
15  */
16 public class DPMatchingBirthmarkComparatorService extends AbstractBirthmarkComparatorService{
17     /**
18      * returns a type of the birthmark this service provides.
19      */
20     @Override
21     public String getType(){
22         return "dpmatching";
23     }
24
25     @Override
26     public String getComparatorClassName(){
27         return DPMatchingBirthmarkComparator.class.getName();
28     }
29
30     /**
31      * returns a extractor for the birthmark of this service.
32      */
33     @Override
34     public BirthmarkComparator getComparator(BirthmarkSpi service){
35         return new DPMatchingBirthmarkComparator(service);
36     }
37 }
38