public class IntervalOccurrenceDetectorWrapper extends fr.cnes.sirius.patrius.events.detectors.IntervalOccurrenceDetector implements CustomEventDetector
| Constructor and Description |
|---|
IntervalOccurrenceDetectorWrapper(CustomEventDetector eventToDetect,
int firstOccurrenceIn,
int lastOccurrenceIn,
int stepIn,
fr.cnes.sirius.patrius.events.EventDetector.Action actionAtOccurrence)
Constructor.
|
IntervalOccurrenceDetectorWrapper(CustomEventDetector eventToDetect,
int firstOccurrenceIn,
int lastOccurrenceIn,
int stepIn,
fr.cnes.sirius.patrius.events.EventDetector.Action actionAtOccurrence,
boolean remove)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
fr.cnes.sirius.patrius.events.EventDetector |
copy() |
fr.cnes.sirius.patrius.events.EventDetector.Action |
eventOccurred(fr.cnes.sirius.patrius.propagation.SpacecraftState s,
boolean increasing,
boolean forward) |
fr.cnes.sirius.patrius.events.EventDetector.Action |
getAction()
Getter for the action to be performed in case of event detection.
|
String |
getCodeDec()
Returns code on decreasing.
|
String |
getCodeInc()
Returns code on increasing.
|
fr.cnes.sirius.patrius.events.postprocessing.CodingEventDetector |
getCodingEventDetector(String incEventString,
String decEventString)
Get the coding event detector for some given increasing and decreasing messages.
|
fr.cnes.sirius.patrius.events.postprocessing.CodingEventDetector |
getCodingEventDetector(String incEventString,
String decEventString,
fr.cnes.sirius.patrius.events.EventDetector.Action action)
Get the coding event detector for some given increasing and decreasing messages.
|
filterEvent, g, getActionAtOccurrence, getCurrentOccurrence, getEvent, getFirstOccurrence, getLastOccurrence, getMaxCheckInterval, getMaxIterationCount, getSlopeSelection, getStep, getThreshold, init, isRemoveAtOccurrence, processEventOccurrence, resetState, shouldBeRemoved, toStringpublic IntervalOccurrenceDetectorWrapper(CustomEventDetector eventToDetect, int firstOccurrenceIn, int lastOccurrenceIn, int stepIn, fr.cnes.sirius.patrius.events.EventDetector.Action actionAtOccurrence)
eventToDetect - event to detectfirstOccurrenceIn - first occurrence of the event to detectlastOccurrenceIn - last occurrence of the event to detectstepIn - step between occurrences of the event to detectactionAtOccurrence - action at event nth occurrencepublic IntervalOccurrenceDetectorWrapper(CustomEventDetector eventToDetect, int firstOccurrenceIn, int lastOccurrenceIn, int stepIn, fr.cnes.sirius.patrius.events.EventDetector.Action actionAtOccurrence, boolean remove)
eventToDetect - event to detectfirstOccurrenceIn - first occurrence of the event to detectlastOccurrenceIn - last occurrence of the event to detectstepIn - step between occurrences of the event to detectactionAtOccurrence - action at event nth occurrenceremove - true if detector should be removed after detection of nth occurrencepublic fr.cnes.sirius.patrius.events.EventDetector.Action eventOccurred(fr.cnes.sirius.patrius.propagation.SpacecraftState s,
boolean increasing,
boolean forward)
throws fr.cnes.sirius.patrius.utils.exception.PatriusException
eventOccurred in interface fr.cnes.sirius.patrius.events.EventDetectoreventOccurred in class fr.cnes.sirius.patrius.events.detectors.IntervalOccurrenceDetectorfr.cnes.sirius.patrius.utils.exception.PatriusExceptionpublic fr.cnes.sirius.patrius.events.EventDetector copy()
copy in interface fr.cnes.sirius.patrius.events.EventDetectorcopy in class fr.cnes.sirius.patrius.events.detectors.IntervalOccurrenceDetectorpublic fr.cnes.sirius.patrius.events.EventDetector.Action getAction()
getAction in interface CustomEventDetectorpublic fr.cnes.sirius.patrius.events.postprocessing.CodingEventDetector getCodingEventDetector(String incEventString, String decEventString)
getCodingEventDetector in interface CustomEventDetectorincEventString - message to be included at the beginning of the message log when the detector is triggered
with increasing g functiondecEventString - message to be included at the beginning of the message log when the detector is triggered
with decreasing g functionpublic fr.cnes.sirius.patrius.events.postprocessing.CodingEventDetector getCodingEventDetector(String incEventString, String decEventString, fr.cnes.sirius.patrius.events.EventDetector.Action action)
incEventString - message to be included at the beginning of the message log
when the detector is triggered with increasing g functiondecEventString - message to be included at the beginning of the message log
when the detector is triggered with decreasing g functionaction - actionpublic String getCodeInc()
getCodeInc in interface CustomEventDetectorpublic String getCodeDec()
getCodeDec in interface CustomEventDetectorCopyright © 2025. All rights reserved.