Mission Triggers can be used to trigger an action during the execution of a Timeline element if a set of criteria is met. The subclass of Trigger should implement the logic for collecting and judging the criteria, and then executing the action. Mission Triggers are used in the Timeline element TimelineElement.
Trigger actions can be listened to, so when subclassing this class, notifyListenersOfEvent should be used to notify listeners of trigger events.
The action to execute. It is up to the trigger's implementation to decide when to call this action. The action should never be called by anything but the trigger. Actions can be implemented without using this property, but in addition notifyListenersOfEvent needs to be used to notify any listeners of the Trigger that an action was executed.
In future subclasses of this property to be provided, this action block will be used to give developers control of an action when a set of criteria has been met. For example, a subclass of this may be a battery threshold trigger. Once the battery passes some threshold developers will be able to define the action they want to trigger.