kaos.core.csi.extension.obligation
Class ObligationMonitorImpl
java.lang.Object
kaos.core.csi.extension.KAoSExtensionComponentImpl
kaos.core.csi.extension.obligation.ObligationMonitorImpl
- All Implemented Interfaces:
- KAoSExtensionComponent, ObligationMonitor, KAoSObservable, PolicyListener
public class ObligationMonitorImpl
- extends KAoSExtensionComponentImpl
- implements ObligationMonitor, KAoSObservable, PolicyListener
- Author:
- jlott
|
Method Summary |
void |
deregisterObserver(java.lang.String updateType,
java.lang.Object updateCondition,
KAoSObserver observer)
Deregister the given KAoSObserver for the given update type from the registry of observers associated
with this KAoSObservable. |
void |
notify(java.lang.String updateType,
java.lang.Object updateCondition,
java.lang.Object update)
Notify observers interested in the given updateType wiht the given update object. |
void |
obligationFailed(java.lang.String triggerId,
ActionInstanceDescription obligation)
|
void |
obligationFulfilled(java.lang.String triggerId,
ActionInstanceDescription obligation)
|
void |
registerObserver(java.lang.String updateType,
java.lang.Object updateCondition,
KAoSObserver observer)
Register the given KAoSObserver with this KAoSObservable for updates
described by the updateType and updateConstraints. |
void |
reportTrigger(ActionInstanceDescription trigger)
|
void |
setPolicies(java.util.List policies)
Replace the current policy set with the given set |
void |
updatePolicies(java.util.List addedPolicies,
java.util.List changedPolicies,
java.util.List removedPolicies)
Receive policy updates and apply them accordingly. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObligationMonitorImpl
public ObligationMonitorImpl(java.lang.String name,
java.lang.String ontType)
ObligationMonitorImpl
public ObligationMonitorImpl()
reportTrigger
public void reportTrigger(ActionInstanceDescription trigger)
- Specified by:
reportTrigger in interface ObligationMonitor
obligationFulfilled
public void obligationFulfilled(java.lang.String triggerId,
ActionInstanceDescription obligation)
- Specified by:
obligationFulfilled in interface ObligationMonitor
obligationFailed
public void obligationFailed(java.lang.String triggerId,
ActionInstanceDescription obligation)
- Specified by:
obligationFailed in interface ObligationMonitor
registerObserver
public void registerObserver(java.lang.String updateType,
java.lang.Object updateCondition,
KAoSObserver observer)
- Description copied from interface:
KAoSObservable
- Register the given KAoSObserver with this KAoSObservable for updates
described by the updateType and updateConstraints.
- Specified by:
registerObserver in interface KAoSObservable
- Parameters:
updateType - String indicating type of update the KAoSObserver is interested in.updateCondition - Object describing the conditions under which to send the update.observer - KAoSObserver registering with for updates.
deregisterObserver
public void deregisterObserver(java.lang.String updateType,
java.lang.Object updateCondition,
KAoSObserver observer)
- Description copied from interface:
KAoSObservable
- Deregister the given KAoSObserver for the given update type from the registry of observers associated
with this KAoSObservable.
- Specified by:
deregisterObserver in interface KAoSObservable
- Parameters:
updateType - String indicating type of update the KAoSObserver is no longer interested in.observer - KAoSObserver deregistering.
notify
public void notify(java.lang.String updateType,
java.lang.Object updateCondition,
java.lang.Object update)
- Description copied from interface:
KAoSObservable
- Notify observers interested in the given updateType wiht the given update object.
- Specified by:
notify in interface KAoSObservable
- Parameters:
updateType - String describing the type of update to perform.update - Object containing the update.
updatePolicies
public void updatePolicies(java.util.List addedPolicies,
java.util.List changedPolicies,
java.util.List removedPolicies)
- Description copied from interface:
PolicyListener
- Receive policy updates and apply them accordingly.
- Specified by:
updatePolicies in interface PolicyListener
- Parameters:
addedPolicies - The List of policies to be added to the collection of stored policies.changedPolicies - The List of policies to be changed in the collection of stored policies.removedPolicies - The List of policies to be removed from the collection of stored policies.
setPolicies
public void setPolicies(java.util.List policies)
- Description copied from interface:
PolicyListener
- Replace the current policy set with the given set
- Specified by:
setPolicies in interface PolicyListener