|
Shot Boundary 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 transitions regarding their overlapping. You can set two parameters RMax and RMin representing the minimal pourcentages of overlapping of respectively the the shorter and the longer transition.
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 with default parameter values. |
static OverlapComparator |
getInstance(double rmin,
double rmax)
Returns the unique instance of this class and set the parameters. |
static double |
getRMax()
Gets the RMax parameter. |
static double |
getRMin()
Gets the RMin parameter. |
static void |
setRMax(double rMax)
Sets the RMax parameter. |
static void |
setRMin(double rMin)
Sets the RMin 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 setRMax(double rMax)
public static void setRMin(double rMin)
public static double getRMax()
public static double getRMin()
public static OverlapComparator getInstance(double rmin, double rmax)
public static OverlapComparator getInstance()
public int compare(java.lang.Object o1, java.lang.Object o2) throws java.lang.ClassCastException
compare
in interface java.util.Comparator
java.lang.ClassCastException
- Thrown if one of the arguments is not a transition instance.
|
Shot Boundary Task Evaluation | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |