|
Known-Items Task Evaluation | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--OverlapComparator
A class that implements the java.util.Comparator interface to compare two items regarding their overlapping. You can set two parameters representing the minimal pourcentages of overlapping of respectively the the submitted system item and the reference item. Default overlapping values are 1/3 for system items and 2/3 for reference items.
| Method Summary | |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares its two arguments for ordering them. |
static OverlapComparator |
getInstance()
Returns the unique instance of this class. |
static OverlapComparator |
getInstance(double pSys,
double pRef)
Returns the unique instance of this class and set the parameters. |
static double |
getPRef()
Gets the reference item overlapping parameter. |
static double |
getPSys()
Sets the system item overlapping parameter. |
static void |
setPRef(double pRef)
Sets the reference item overlapping parameter. |
static void |
setPSys(double pSys)
Sets the system item overlapping parameter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
equals |
| Method Detail |
public static void setPRef(double pRef)
public static void setPSys(double pSys)
public static double getPRef()
public static double getPSys()
public static OverlapComparator getInstance(double pSys,
double pRef)
public static OverlapComparator getInstance()
public int compare(java.lang.Object o1,
java.lang.Object o2)
throws java.lang.ClassCastException
compare in interface java.util.Comparatorjava.lang.ClassCastException - Thrown if one of the arguments is not a item instance.
|
Known-Items Task Evaluation | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||