public class NthOccurrenceDetectorWrapper extends fr.cnes.sirius.patrius.events.detectors.NthOccurrenceDetector implements CustomEventDetector
| Constructor and Description |
|---|
NthOccurrenceDetectorWrapper(CustomEventDetector eventToDetect,
int occurrenceIn,
fr.cnes.sirius.patrius.events.EventDetector.Action actionAtOccurrence)
Constructor.
|
NthOccurrenceDetectorWrapper(CustomEventDetector eventToDetect,
int occurrenceIn,
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 |
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.
|
getOccurenceeventOccurred, filterEvent, g, getActionAtOccurrence, getCurrentOccurrence, getEvent, getFirstOccurrence, getLastOccurrence, getMaxCheckInterval, getMaxIterationCount, getSlopeSelection, getStep, getThreshold, init, isRemoveAtOccurrence, processEventOccurrence, resetState, shouldBeRemoved, toStringpublic NthOccurrenceDetectorWrapper(CustomEventDetector eventToDetect, int occurrenceIn, fr.cnes.sirius.patrius.events.EventDetector.Action actionAtOccurrence)
eventToDetect - event to detectoccurrenceIn - occurrence of the event to detectactionAtOccurrence - action at event nth occurrencepublic NthOccurrenceDetectorWrapper(CustomEventDetector eventToDetect, int occurrenceIn, fr.cnes.sirius.patrius.events.EventDetector.Action actionAtOccurrence, boolean remove)
eventToDetect - event to detectoccurrenceIn - occurrence 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 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.