@SCJAllowed public abstract class Mission extends java.lang.Object
Mission objects.
Each Mission object is implemented as a subclass of this
abstract Mission class.
- public static Mission getCurrentMission();
getCurrentMission's value inside a
mission constructor, and what is it during mission
initialize: it can be replaced by specific
parameters for handlers that need it.
getCurrentMission function can be replaced by
specific parameters for handlers that need it.| Constructor and Description |
|---|
Mission() |
| Modifier and Type | Method and Description |
|---|---|
static Mission |
getCurrentMission() |
MissionSequencer |
getSequencer() |
abstract long |
missionMemorySize()
The application developer is required to implement this method.
|
void |
requestTermination()
This method provides a standard interface for requesting termination of a mission.
|
boolean |
terminationPending()
Checks if the current mission is trying to terminate.
|
@SCJAllowed public Mission()
@SCJAllowed public static Mission getCurrentMission()
@SCJAllowed public MissionSequencer getSequencer()
@SCJAllowed(value=SUPPORT) public abstract long missionMemorySize()
MissionMemory, measured in bytes.@SCJAllowed public final void requestTermination()
The infrastructure shall:
Mission,
AperiodicEvents,
Mission's event handlers
cleanup method for each of the
ManagedSchedulables associated with this mission, and
cleanup method associated with this mission.
An application-specific subclass of Mission may override
this method in order to insert application-specific code to communicate
the intent to shutdown to specific ManagedSchedulables.
Control returns from requestTermination after it has
arranged for the required activities to be performed.
Note that those activities may not have completed.
public final boolean terminationPending()
Mission object's
Mission.requestTermination method has been invoked.