MissionController

A MissionController is responsible for managing missions in its SMC. It can load, unload, start and stop missions.

Factory Messages
OperationDescription
domainFactory: aDomainFactory policyFactory: anEcaPolicyFactory Creates a MissionController using aDomain as the main mission root.

Operational Messages
OperationReturnDescription
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.
unload: aMissionName self Unloads aMissionName from the SMC. If the mission is running then it is stopped first.
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.
missions P2Object Answers an array containing all the loaded mission names