|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.lang.Thread
|
+--policyMgmt.Policy
Base class for Policies. A Policy registers a set of Rules. The Policy's thread cares about Event processing, evaluation of Rule Conditions, and execution of Rule Actions where the Conditions evaluate to true.
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
| Constructor Summary | |
Policy()
Construct a Policy. |
|
Policy(java.lang.String[] args)
Construct a Policy. |
|
| Method Summary | |
java.util.Enumeration |
getRules()
Return an Enumeration of all the Rules in this Policy. |
void |
newEvent(Event event)
Notify this Policy that an Event was raised. |
void |
process(Event evt)
Evaluate all rules of this Policy upon a given Event. |
void |
registerDriver(Driver drv)
Register a Driver for this Policy. |
void |
registerRule(java.lang.Object trigger,
Rule rule)
Register a Rule and associate it to an Event, upon which the evaluation of this Rule is enforced. |
void |
run()
Main loop of the policy. |
| Methods inherited from class java.lang.Thread |
activeCount,
checkAccess,
countStackFrames,
currentThread,
destroy,
dumpStack,
enumerate,
getContextClassLoader,
getName,
getPriority,
getThreadGroup,
interrupt,
interrupted,
isAlive,
isDaemon,
isInterrupted,
join,
join,
join,
resume,
setContextClassLoader,
setDaemon,
setName,
setPriority,
sleep,
sleep,
start,
stop,
stop,
suspend,
toString,
yield |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public Policy()
public Policy(java.lang.String[] args)
args - command line arguments (ignored)| Method Detail |
public java.util.Enumeration getRules()
public void registerRule(java.lang.Object trigger,
Rule rule)
trigger - Object that triggers the rule, usually an EventGeneratorrule - the Rule toi be registeredpublic void registerDriver(Driver drv)
drv - the Driver to be registeredpublic void process(Event evt)
evt - the triggering Eventpublic void newEvent(Event event)
public void run()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||