|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.trinetwatch.ruleset.Criteria
Class Criteria manages a list of comparison values and their translations to status levels.
Constructor Summary | |
Criteria()
|
Method Summary | |
boolean |
add(Comparison cObj)
Adds the given Comparison object to this object's list. |
boolean |
add(StatusLevelTag statusLevel,
java.lang.Number minValue)
Adds a Comparison object containing the given parameters to this object's list. |
java.util.Vector |
getComparisonSet()
Returns the Vector of 'Comparison' objects that make up the comparison set for this criteria. |
java.lang.Class |
getNumbersClass()
Returns the class type object for the numeric values in the comparison list, or null if no objects exist in the list. |
java.lang.String |
toString()
Returns a string representation of this object. |
StatusLevelTag |
valueToStatus(java.lang.Number value)
Translates the given value to a status level using this object's list of Comparison objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Criteria()
Method Detail |
public boolean add(StatusLevelTag statusLevel, java.lang.Number minValue)
statusLevel
- handle of a StatusLevelTag object.minValue
- an object containing the minimum numeric value to
be associated with the given status level (such as an 'Integer',
'Double', etc.)
public boolean add(Comparison cObj)
public StatusLevelTag valueToStatus(java.lang.Number value)
value
- an object containing the numeric value to be
translated (such as an 'Integer', 'Double', etc.)
java.lang.ClassCastException
- if the given object's type prevents
it from being compared to the numeric objects in the list.public java.lang.Class getNumbersClass()
public java.util.Vector getComparisonSet()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |