OSDN Git Service

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