A MissionController is responsible for managing missions in its SMC. It can load, unload, start and stop missions.
Operation | Return | Description |
load: aMission |
String |
Loads aMission into the local SMC and returns the mission name |
load: aMission with: aHash |
String |
Loads aMission into the local SMC and returns the mission name. Interfaces are supplied in aHash. |
missions |
P2Object |
Answers an array containing all the loaded mission names |
start: aMissionName |
self |
Starts aMissionName running. This involves making sure all the policies are hooked up to the event bus and that all the policies active. |
stop: aMissionName |
self |
Stops aMissionName. This involves making all the policies inactive. |
unload: aMissionName |
self |
Unloads aMissionName from the SMC. If the mission is running then it is stopped first. |