OSDN Git Service

Delete Subversion Tags (Revision, Id)
[stigmata/stigmata-core.git] / src / main / java / jp / sourceforge / stigmata / BirthmarkComparator.java
1 package jp.sourceforge.stigmata;
2
3 /**
4  * Interface for comparing given two birthmarks and calculate similarity.
5  * 
6  * @author Haruaki TAMADA
7  */
8 public interface BirthmarkComparator {
9     /**
10      * compare given two birthmarks and returns calculated similarity. 
11      */
12     public double compare(Birthmark b1, Birthmark b2, BirthmarkContext context);
13
14     /**
15      * returns the number of comparison. 
16      */
17     public int getCompareCount(Birthmark b1, Birthmark b2);
18
19     /**
20      * returns the type of birthmarks this comparator supports. 
21      */
22     public String getType();
23 }