public class IntervalOccurrenceDetectorWrapper extends fr.cnes.sirius.patrius.propagation.events.IntervalOccurrenceDetector implements CustomEventDetector
Constructor and Description |
---|
IntervalOccurrenceDetectorWrapper(CustomEventDetector eventToDetect,
int firstOccurrenceIn,
int lastOccurrenceIn,
int stepIn,
fr.cnes.sirius.patrius.propagation.events.EventDetector.Action actionAtOccurrence)
Constructor.
|
IntervalOccurrenceDetectorWrapper(CustomEventDetector eventToDetect,
int firstOccurrenceIn,
int lastOccurrenceIn,
int stepIn,
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 |
eventOccurred(fr.cnes.sirius.patrius.propagation.SpacecraftState s,
boolean increasing,
boolean forward) |
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.
|
g, getActionAtOccurrence, getCurrentOccurrence, getEvent, getFirstOccurrence, getLastOccurrence, getMaxCheckInterval, getMaxIterationCount, getSlopeSelection, getStep, getThreshold, init, isRemoveAtOccurrence, resetState, shouldBeRemoved, toString
public IntervalOccurrenceDetectorWrapper(CustomEventDetector eventToDetect, int firstOccurrenceIn, int lastOccurrenceIn, int stepIn, fr.cnes.sirius.patrius.propagation.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.propagation.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.propagation.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.propagation.events.EventDetector
eventOccurred
in class fr.cnes.sirius.patrius.propagation.events.IntervalOccurrenceDetector
fr.cnes.sirius.patrius.utils.exception.PatriusException
public 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.