Project

General

Profile

1
package eu.dnetlib.pace.condition;
2

    
3
import java.util.Map;
4

    
5
import eu.dnetlib.pace.distance.eval.ConditionEvalMap;
6
import eu.dnetlib.pace.model.Document;
7

    
8
/**
9
 * Allows to express general conditions to be satisfied or not between two Documents.
10
 * 
11
 * @author claudio
12
 */
13
public interface ConditionAlgo {
14

    
15
	/**
16
	 * Verify a condition.
17
	 * 
18
	 * @param a
19
	 *            the Document a
20
	 * @param b
21
	 *            the Document b
22
	 * @return 0 when condition cannot be verified (ignoremissing = true). Positive int when the condition is verified. Negative int when
23
	 *         the condition is not verified.
24
	 */
25
	public abstract ConditionEvalMap verify(Document a, Document b);
26

    
27
}
(3-3/11)