|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PolicyCondition
This class stipulates a condition for the execution of a Policy. A policy can be executed on successful satisfaction of a condition. This interface has been introduced to enable the execution of a policy when it satisfies a given set of conditions. When the condtion is satisfied the corressponding action is invoked/called (the PolicyAction). The condition and its corresponding action share a common key. This key (a unique string)helps identify/correlate a condition to an action. Thus, a(time,condition) can now be specified to execute policy. The use of PolicyCondition interface and PolicyAction interface helps in handling the condition and action separately,if required.
| Method Summary | |
|---|---|
java.lang.String |
getKey()
Returns the key of this PolicyCondition. |
boolean |
isConditionSatisfied(PolicyEvent pt)
Returns whether the condition is satisfied or not. |
| Method Detail |
|---|
boolean isConditionSatisfied(PolicyEvent pt)
pt - PolicyEvent
java.lang.String getKey()
The default implementation of the PolicyObject will do a PolicyCondition.isConditionSatisfied(PolicyEvent) and then if true call the corresponding PolicyAction, The actions corresponding to this condition should have the same key as this.
|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||