ObligationPolicy

Based on net.ponder2.PolicyP2Adaptor

an obligation policy that performs Event, Condition, Action rules for the SMC

Factory Messages

create

creates a new obligation policy. The policy is empty until filled by other messages. The policy is initially not active.

Operational Messages

action: aBlock

adds aBlock to the list of actions of the policy. Answers aBlock.

canExecute: anEvent

answers true if anEvent has the values that satisfy all the policy's conditions

condition: aBlock

adds aBlock to the list of conditions of the policy. Answers aBlock.

event: anEventTemplate

Sets anEventTemplate to be the type of event that this policy should be triggered by. Answers anEventTemplate.

execute: anEvent

executes all the actions using anEvent. AnEvent is given to every action defined for the policy. Actions may be executed in parallel. Statements within an action block are executed serially.