public class NthOccurrenceDetectorWrapper extends fr.cnes.sirius.patrius.propagation.events.NthOccurrenceDetector implements CustomEventDetector
Constructor and Description |
---|
NthOccurrenceDetectorWrapper(CustomEventDetector eventToDetect,
int occurrenceIn,
fr.cnes.sirius.patrius.propagation.events.EventDetector.Action actionAtOccurrence)
Constructor.
|
NthOccurrenceDetectorWrapper(CustomEventDetector eventToDetect,
int occurrenceIn,
fr.cnes.sirius.patrius.propagation.events.EventDetector.Action actionAtOccurrence,
boolean remove)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
fr.cnes.sirius.patrius.propagation.events.EventDetector |
copy() |
fr.cnes.sirius.patrius.propagation.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.CodingEventDetector |
getCodingEventDetector(String incEventString,
String decEventString)
Get the coding event detector for some given increasing and decreasing messages.
|
fr.cnes.sirius.patrius.events.CodingEventDetector |
getCodingEventDetector(String incEventString,
String decEventString,
fr.cnes.sirius.patrius.propagation.events.EventDetector.Action action)
Get the coding event detector for some given increasing and decreasing messages.
|
getOccurence
eventOccurred, g, getActionAtOccurrence, getCurrentOccurrence, getEvent, getFirstOccurrence, getLastOccurrence, getMaxCheckInterval, getMaxIterationCount, getSlopeSelection, getStep, getThreshold, init, isRemoveAtOccurrence, resetState, shouldBeRemoved, toString
public NthOccurrenceDetectorWrapper(CustomEventDetector eventToDetect, int occurrenceIn, fr.cnes.sirius.patrius.propagation.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.propagation.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.propagation.events.EventDetector copy()
copy
in interface fr.cnes.sirius.patrius.propagation.events.EventDetector
copy
in class fr.cnes.sirius.patrius.propagation.events.IntervalOccurrenceDetector
public fr.cnes.sirius.patrius.propagation.events.EventDetector.Action getAction()
getAction
in interface CustomEventDetector
public fr.cnes.sirius.patrius.events.CodingEventDetector getCodingEventDetector(String incEventString, String decEventString)
getCodingEventDetector
in interface CustomEventDetector
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 functionpublic fr.cnes.sirius.patrius.events.CodingEventDetector getCodingEventDetector(String incEventString, String decEventString, fr.cnes.sirius.patrius.propagation.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 CustomEventDetector
public String getCodeDec()
getCodeDec
in interface CustomEventDetector
Copyright © 2018. All rights reserved.