|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.trinetwatch.ruleset.RuleSet
Class RuleSet manages a table of CriteriaTable objects which map to dynamic parameters. Each station will have one RuleSet object.
Constructor Summary | |
RuleSet(java.lang.String name)
Creates a rule set object. |
Method Summary | |
boolean |
add(java.lang.String paramName,
CriteriaTable cTable)
Adds a dynamic-parameter-name / CriteriaTable pair to the rule-set table. |
boolean |
add(java.lang.String paramName,
UsageLevelTag usageLevel,
Criteria criteriaObj)
Adds a usage-level / criteria pair to the CriteriaTable for the given dynamic-parameter-name. |
CriteriaTable |
get(java.lang.String paramName)
Returns the CriteriaTable object associated with the given dynamic parameter name. |
java.lang.String |
getName()
Returns the name associated with this rule set. |
StatusLevelTag |
toStatus(java.lang.String paramName,
UsageLevelTag usageLevel,
java.lang.Number value)
Translates the given dynamic parameter name, usage-level and numeric value to a status level. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RuleSet(java.lang.String name)
name
- the name to be associated with this rule set.Method Detail |
public boolean add(java.lang.String paramName, CriteriaTable cTable)
paramName
- the name of a dynamic parameter.cTable
- the CriteriaTable object to be associated with the
dynamic parameter.
public boolean add(java.lang.String paramName, UsageLevelTag usageLevel, Criteria criteriaObj)
paramName
- the name of a dynamic parameter.usageLevel
- a usage-level to be entered.criteriaObj
- a Criteria object to be entered.
public CriteriaTable get(java.lang.String paramName)
public StatusLevelTag toStatus(java.lang.String paramName, UsageLevelTag usageLevel, java.lang.Number value)
paramName
- the name of a dynamic parameter.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 java.lang.String getName()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |