kaos.policy.enforcement.obligation
Class ControlActionInstantiatorImpl

java.lang.Object
  extended by kaos.policy.enforcement.obligation.ControlActionInstantiatorImpl
All Implemented Interfaces:
ControlActionInstantiator

public final class ControlActionInstantiatorImpl
extends java.lang.Object
implements ControlActionInstantiator


Constructor Summary
ControlActionInstantiatorImpl()
           
 
Method Summary
 ActionInstanceDescription instantiate(BasicActionDescription controlBasicAD, ActionInstanceDescription triggerAID)
          Based on the specified BasicActionDescription for the control action and trigger ActionInstanceDescription, instantiate an ActionInstanceDescription for the control action.
 ActionInstanceDescription instantiate(PolicyInformation controlPolicy, ActionInstanceDescription triggerAID)
          Based on the specified PolicyInformation and trigger ActionInstanceDescription, instantiate an ActionInstanceDescription for the control action.
protected  void printDebugString(java.lang.String msg, int loggerDisplayLevel)
          Print debug messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlActionInstantiatorImpl

public ControlActionInstantiatorImpl()
Method Detail

instantiate

public ActionInstanceDescription instantiate(BasicActionDescription controlBasicAD,
                                             ActionInstanceDescription triggerAID)
Based on the specified BasicActionDescription for the control action and trigger ActionInstanceDescription, instantiate an ActionInstanceDescription for the control action.

Specified by:
instantiate in interface ControlActionInstantiator
Parameters:
controlBAD - BasicActionDescription specifies the action class, whose ActionInstanceDescription will be created.
triggerAID - ActionInstanceDescription describes the trigger condition instance to be used in instantiation of the control ActionInstanceDescription.
Returns:
ActionInstanceDescription of the control action, whose BasicActionDescription was specified. Or null, if the AID of the controll action cannot be instantiated because of missing values in the obligation BasicActionDescription.

instantiate

public ActionInstanceDescription instantiate(PolicyInformation controlPolicy,
                                             ActionInstanceDescription triggerAID)
Based on the specified PolicyInformation and trigger ActionInstanceDescription, instantiate an ActionInstanceDescription for the control action.

Specified by:
instantiate in interface ControlActionInstantiator
Parameters:
controlPolicy - PolicyInformation, whose trigger matches the specified trigger.
triggerAID - ActionInstanceDescription describes the trigger condition instance to be used in instantiation of the control ActionInstanceDescription.
Returns:
ActionInstanceDescription of the control action, whose BasicActionDescription was specified.

printDebugString

protected void printDebugString(java.lang.String msg,
                                int loggerDisplayLevel)
Print debug messages.