|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.isti.trinetwatch.ruleset.CriteriaTable
Class CriteriaTable manages a table of Criteria objects (to be associated with a dynamic parameter).
| Constructor Summary | |
CriteriaTable()
|
|
| Method Summary | |
boolean |
add(UsageLevelTag usageLevel,
Criteria criteriaObj)
Adds a usage-level / criteria pair to the table. |
Criteria |
get(int usageValue)
Returns Criteria object associated with the given numeric usage-level value. |
Criteria |
get(UsageLevelTag usageLevel)
Returns Criteria object associated with the given usage-level. |
int |
getMaxUsageValue()
Returns the numeric 'value' for the "maximum" usage level used in the table. |
int |
getMinUsageValue()
Returns the numeric 'value' for the "minimum" usage level used in the table. |
java.lang.Class |
getNumbersClass()
Returns the class type object for the numeric values used in the table, or null if no objects exist in the list. |
UsageLevelTag |
getUsageLevelTag(int usageValue)
Returns the UsageLevelTag object associated with the given numeric usage-level value (if it is used in this object's table). |
java.lang.String |
toString()
Returns a string representation of this object. |
StatusLevelTag |
useValToStatus(int usageValue,
java.lang.Number value)
Translates the given numeric usage-level value and the given numeric value to a status level. |
StatusLevelTag |
useValToStatus(UsageLevelTag usageLevel,
java.lang.Number value)
Translates the given usage-level and numeric value to a status level. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CriteriaTable()
| Method Detail |
public boolean add(UsageLevelTag usageLevel,
Criteria criteriaObj)
public Criteria get(UsageLevelTag usageLevel)
public Criteria get(int usageValue)
public UsageLevelTag getUsageLevelTag(int usageValue)
public StatusLevelTag useValToStatus(UsageLevelTag usageLevel,
java.lang.Number value)
usageLevel - the handle of UsageLevelTag object.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 StatusLevelTag useValToStatus(int usageValue,
java.lang.Number value)
usageValue - a numeric value corresponding to a usage-level.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 int getMinUsageValue()
public int getMaxUsageValue()
public java.lang.Class getNumbersClass()
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||