public class CustomRecurrentDateDetector extends fr.cnes.sirius.patrius.propagation.events.DateDetector implements CustomEventDetector
Modifier and Type | Field and Description |
---|---|
static String |
DAT_STR
Coding message.
|
DEFAULT_MAXCHECK, DEFAULT_THRESHOLD
Constructor and Description |
---|
CustomRecurrentDateDetector(fr.cnes.sirius.patrius.time.AbsoluteDate referenceDate,
double step)
Recurrent detector constructor with default values. maxCheck (1.0e10 s), threshold (1.0e-9 s) and action (STOP)
by default.
|
CustomRecurrentDateDetector(fr.cnes.sirius.patrius.time.AbsoluteDate referenceDate,
double step,
double maxCheck,
double threshold,
fr.cnes.sirius.patrius.propagation.events.EventDetector.Action action)
Recurrent detector constructor with complete data.
|
Modifier and Type | Method and Description |
---|---|
fr.cnes.sirius.patrius.propagation.events.EventDetector |
copy() |
double |
g(fr.cnes.sirius.patrius.propagation.SpacecraftState s) |
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 generic coding event detector for a given increasing and decreasing messages.
|
double |
getStep()
Returns the detector period.
|
void |
init(fr.cnes.sirius.patrius.propagation.SpacecraftState s0,
fr.cnes.sirius.patrius.time.AbsoluteDate t) |
boolean |
isRecurring()
Returns true if the detector is a recurring detector.
|
String |
toString() |
addEventDate, eventOccurred, getAction, getDate
getActionAtEntry, getActionAtExit, getInertialFrame, getMaxCheckInterval, getMaxIterationCount, getPropagationDelayType, getSignalEmissionDate, getSignalReceptionDate, getSlopeSelection, getThreshold, isRemoveAtEntry, isRemoveAtExit, logEventsOverTimeInterval, resetState, setEpsilonSignalPropagation, setMaxCheckInterval, setPropagationDelayType, shouldBeRemoved
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAction
public static final String DAT_STR
public CustomRecurrentDateDetector(fr.cnes.sirius.patrius.time.AbsoluteDate referenceDate, double step)
referenceDate
- reference datestep
- period of occurrence detectionpublic CustomRecurrentDateDetector(fr.cnes.sirius.patrius.time.AbsoluteDate referenceDate, double step, double maxCheck, double threshold, fr.cnes.sirius.patrius.propagation.events.EventDetector.Action action)
referenceDate
- target datestep
- period of occurrence detectionmaxCheck
- maximum checking interval (s)threshold
- convergence threshold (s)action
- action to be performed in case of event detectionpublic void init(fr.cnes.sirius.patrius.propagation.SpacecraftState s0, fr.cnes.sirius.patrius.time.AbsoluteDate t)
init
in interface fr.cnes.sirius.patrius.propagation.events.EventDetector
init
in class fr.cnes.sirius.patrius.propagation.events.AbstractDetector
public double g(fr.cnes.sirius.patrius.propagation.SpacecraftState s) throws fr.cnes.sirius.patrius.utils.exception.PatriusException
g
in interface fr.cnes.sirius.patrius.propagation.events.EventDetector
g
in class fr.cnes.sirius.patrius.propagation.events.DateDetector
fr.cnes.sirius.patrius.utils.exception.PatriusException
public double getStep()
public boolean isRecurring()
public fr.cnes.sirius.patrius.events.CodingEventDetector getCodingEventDetector(String incEventString, String decEventString)
getCodingEventDetector
in interface CustomEventDetector
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 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.DateDetector
public String getCodeInc()
getCodeInc
in interface CustomEventDetector
public String getCodeDec()
getCodeDec
in interface CustomEventDetector
Copyright © 2023. All rights reserved.