Describes a mission which can be instantiated at a Mission Controller with a set of given interfaces.
Operation | Return | Description |
interface: anInterface |
self |
Adds an interface requirement to the mission |
at: aName |
P2Object |
Returns the policy with the name aName |
interfaces |
P2Object |
Returns the set of interfaces specified to the mission |
name: aName |
self |
Names the mission aName |
policies |
P2Object |
Returns a hash of policies given to the mission. The has is indexed by the policy name |
policy: aBlock |
self |
Adds an unnamed policy in the form of aBlock to the mission |
policy: aName is: aBlock |
self |
Adds a policy block, aBlock, with the name aName |
onStart: aBlock |
self |
executes aBlock when the mission is started |
onStart |
P2Object |
returns the start block |
onStop: aBlock |
self |
executes aBlock when the mission is stopped |
onStop |
P2Object |
returns the stop block |