|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--policyMgmt.Rule
Base class for Rules.
| Constructor Summary | |
Rule()
Create a Rule with default priority of 0. |
|
Rule(int priority)
Create a Rule with a given priority. |
|
| Method Summary | |
void |
addAction(Action act)
Add a new Action to this Rule. |
void |
addCondition(Condition cond)
Add a new Condition to this Rule. |
void |
addFreeIdent(java.lang.String name,
java.lang.String classname)
Declare a given new name as a free Element identifier of an Element of a given class name. |
void |
doActions(Event evt,
java.util.Hashtable unify)
Execute all Actions of this Rule. |
java.util.Hashtable |
getFreeIdents()
Return a Hashtable of the declared free Element identifiers. |
int |
getPriority()
Return the priority of this rule. |
java.lang.Object |
getTrigger()
Return the trigger for this Rule |
boolean |
isConditions(Event evt,
java.util.Hashtable unify)
Return true, if all Conditions are true. |
void |
setTrigger(java.lang.Object trigger)
Set the trigger for this Rule |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public Rule()
public Rule(int priority)
priority - the priority of this newly created Rule| Method Detail |
public int getPriority()
public void addFreeIdent(java.lang.String name,
java.lang.String classname)
name - the unique key of the new free Element identifierclassname - the name of the associated Element class
bpublic java.util.Hashtable getFreeIdents()
public void addCondition(Condition cond)
cond - the new Conditionpublic void addAction(Action act)
public boolean isConditions(Event evt,
java.util.Hashtable unify)
evt - the triggering Eventunify - the Hashtable of assiciated Elements
public void doActions(Event evt,
java.util.Hashtable unify)
evt - the triggering Eventunify - the Hashtable of assiciated Elementspublic void setTrigger(java.lang.Object trigger)
trigger - the triggering Object of this Rulepublic java.lang.Object getTrigger()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||