kaos.cougaar.clik.policyManager
Class ConditionMonitorPlugin
java.lang.Object
ComponentPlugin
kaos.cougaar.clik.policyManager.ConditionMonitorPlugin
public class ConditionMonitorPlugin
- extends ComponentPlugin
The ConditionMonitorPlugin adds conditional policies to the existing
policy set when their condition statement becomes true, and removes them
when their condition statment becomes false.
It blackboard.subscribes to ConditionalPolicyMsgs, and to an OperatingMode.
It blackboard.publishes ProposedPolicyUpdate when conditions change.
Method Summary |
void |
execute()
Called when there is a change on the subscriptions. |
void |
setupSubscriptions()
This method is called when the EventTriggerPlugIn is loaded. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OPERATING_MODE_NAME
public static final java.lang.String OPERATING_MODE_NAME
- See Also:
- Constant Field Values
OPERATING_MODE_VALUES
public static final java.lang.String[] OPERATING_MODE_VALUES
_conditionalPolicyMsgs
protected IncrementalSubscription _conditionalPolicyMsgs
ConditionMonitorPlugin
public ConditionMonitorPlugin()
setupSubscriptions
public void setupSubscriptions()
- This method is called when the EventTriggerPlugIn is loaded. It establishes
the subscription for the ConditionalPolicyMsg and the OperatingMode
execute
public void execute()
- Called when there is a change on the subscriptions.