public class CustomEventDetectorTrigger extends Object implements Serializable
CustomEventDetectorTrigger.TriggeringType enum offers the three
possibilities CustomEventDetectorTrigger.TriggeringType.INCREASING, CustomEventDetectorTrigger.TriggeringType.DECREASING or
CustomEventDetectorTrigger.TriggeringType.BOTH. Note that switching function increasing/decreasing nature is measured with
respect to physical time, not with respect to propagation time which may go backwards.| Modifier and Type | Class and Description |
|---|---|
static class |
CustomEventDetectorTrigger.TriggeringType
Choices for triggering the events.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
ALT_DEC_STR |
static String |
ALT_INC_STR |
static String |
AOL_DEC_STR |
static String |
AOL_INC_STR |
static String |
APS_DEC_STR |
static String |
APS_INC_STR |
static String |
DAT_DEC_STR |
static String |
DAT_INC_STR |
static String |
ECL_DEC_STR |
static String |
ECL_INC_STR |
static String |
LTM_DEC_STR |
static String |
LTM_INC_STR |
static String |
NOD_DEC_STR |
static String |
NOD_INC_STR |
static String |
RDA_DEC_STR |
static String |
RDA_INC_STR |
static String |
VFS_DEC_STR |
static String |
VFS_INC_STR |
| Constructor and Description |
|---|
CustomEventDetectorTrigger(int triggerFrom,
Integer triggerStep,
Integer triggerTo,
CustomEventDetectorTrigger.TriggeringType triggerType,
org.orekit.propagation.events.EventDetector.Action action)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.orekit.propagation.events.EventDetector.Action |
eventOccurred(boolean increasing)
Handle an event detection and choose what to do next.
|
org.orekit.propagation.events.EventDetector.Action |
getAction()
Getter for the action to be performed in case of event triggering.
|
fr.cnes.sirius.patrius.events.CodingEventDetector |
getGenericCodingEventDetector(CustomEventDetector eventDetector,
String incEventString,
String decEventString)
Get the coding event detector associated to this event for some given increasing and decreasing
messages.
|
int |
getTriggerFrom()
Getter for the count from which the event must be triggered.
|
Integer |
getTriggerStep()
Getter for the step every which the event must be triggered.
|
Integer |
getTriggerTo()
Getter for the count until which the event must be triggered.
|
CustomEventDetectorTrigger.TriggeringType |
getTriggerType()
Getter for the trigger choice.
|
boolean |
shouldBeRemoved()
This method is called after
eventOccurred(boolean) has been triggered. |
String |
toString() |
public static final String ALT_INC_STR
public static final String ALT_DEC_STR
public static final String AOL_INC_STR
public static final String AOL_DEC_STR
public static final String APS_INC_STR
public static final String APS_DEC_STR
public static final String DAT_INC_STR
public static final String DAT_DEC_STR
public static final String ECL_INC_STR
public static final String ECL_DEC_STR
public static final String LTM_INC_STR
public static final String LTM_DEC_STR
public static final String NOD_INC_STR
public static final String NOD_DEC_STR
public static final String RDA_INC_STR
public static final String RDA_DEC_STR
public static final String VFS_INC_STR
public static final String VFS_DEC_STR
public CustomEventDetectorTrigger(int triggerFrom,
Integer triggerStep,
Integer triggerTo,
CustomEventDetectorTrigger.TriggeringType triggerType,
org.orekit.propagation.events.EventDetector.Action action)
triggerFrom - count at/from which the single/multiple event must be triggered.triggerStep - step every which the multiple event must be triggered. If null, the event will be triggered
only once at the occurrence given by triggerFrom.triggerTo - count until which the multiple event must be triggered. If null, the event will be triggered
until the end of propagation.triggerType - indicates the slope of the switching function that must have an event detection in order to
be triggered.action - action to be performed when the event is triggered.public int getTriggerFrom()
public Integer getTriggerStep()
public Integer getTriggerTo()
public org.orekit.propagation.events.EventDetector.Action getAction()
public boolean shouldBeRemoved()
eventOccurred(boolean) has been triggered. It returns true if the current
detector should be removed after last event detection.public org.orekit.propagation.events.EventDetector.Action eventOccurred(boolean increasing)
increasing - if true, the value of the switching function increases when time increases around event
(note that increase is measured with respect to physical time, not with respect to
propagation which may go backward in time)EventDetector.Action#CONTINUE if the event is triggered or the event action if it is
triggered.public fr.cnes.sirius.patrius.events.CodingEventDetector getGenericCodingEventDetector(CustomEventDetector eventDetector, String incEventString, String decEventString)
eventDetector - this event (it will be copied to avoid changing the original action).incEventString - message for the log when the detector is triggered with increasing g functiondecEventString - message for the log when the detector is triggered with decreasing g functionpublic CustomEventDetectorTrigger.TriggeringType getTriggerType()
Copyright © 2017. All rights reserved.