kaos.cougaar.clik.policyManager
Class ConditionMonitorPlugin

java.lang.Object
  extended by ComponentPlugin
      extended by 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.


Field Summary
protected  IncrementalSubscription _conditionalPolicyMsgs
           
static java.lang.String OPERATING_MODE_NAME
           
static java.lang.String[] OPERATING_MODE_VALUES
           
 
Constructor Summary
ConditionMonitorPlugin()
           
 
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
 

Field Detail

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
Constructor Detail

ConditionMonitorPlugin

public ConditionMonitorPlugin()
Method Detail

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.