public class CustomRecurrentRelativeDateDetector extends fr.cnes.sirius.patrius.events.detectors.RelativeDateDetector implements CustomEventDetector
| Modifier and Type | Field and Description |
|---|---|
static String |
DAT_STR
Coding message.
|
static double |
DEFAULT_MAXCHECK
Default maxCheck threshold (s).
|
static double |
DEFAULT_THRESHOLD
Default convergence threshold (s).
|
| Constructor and Description |
|---|
CustomRecurrentRelativeDateDetector(double relativeDate,
fr.cnes.sirius.patrius.time.AbsoluteDate referenceDate,
fr.cnes.sirius.patrius.time.TimeScale offsetTimeScale,
double step)
Recurrent detector constructor with target relative date and reference date.
|
CustomRecurrentRelativeDateDetector(double relativeDate,
fr.cnes.sirius.patrius.time.AbsoluteDate referenceDate,
fr.cnes.sirius.patrius.time.TimeScale offsetTimeScale,
double step,
double maxCheck,
double threshold,
fr.cnes.sirius.patrius.events.EventDetector.Action action)
Recurrent detector constructor with target relative date and reference date.
|
| Modifier and Type | Method and Description |
|---|---|
fr.cnes.sirius.patrius.events.EventDetector |
copy() |
double |
g(fr.cnes.sirius.patrius.propagation.SpacecraftState s) |
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 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() |
getReferenceDate, getRelativeDate, getTimeScaleaddEventDate, eventOccurred, getDatefilterEvent, getActionAtEntry, getActionAtExit, getMaxCheckInterval, getMaxIterationCount, getSlopeSelection, getThreshold, isRemoveAtEntry, isRemoveAtExit, logEventsOverTimeInterval, resetState, setMaxCheckInterval, setMaxIter, shouldBeRemovedpublic static final String DAT_STR
public static final double DEFAULT_THRESHOLD
public static final double DEFAULT_MAXCHECK
public CustomRecurrentRelativeDateDetector(double relativeDate,
fr.cnes.sirius.patrius.time.AbsoluteDate referenceDate,
fr.cnes.sirius.patrius.time.TimeScale offsetTimeScale,
double step)
throws ArithmeticException
relativeDate - target relative date to findreferenceDate - reference date of the eventoffsetTimeScale - time scale in which the relativeDate is expressedstep - period of occurrence detectionArithmeticException - if relativeDate is NaN or if referenceDate contains NaNpublic CustomRecurrentRelativeDateDetector(double relativeDate,
fr.cnes.sirius.patrius.time.AbsoluteDate referenceDate,
fr.cnes.sirius.patrius.time.TimeScale offsetTimeScale,
double step,
double maxCheck,
double threshold,
fr.cnes.sirius.patrius.events.EventDetector.Action action)
throws ArithmeticException
relativeDate - target relative datereferenceDate - reference date of the eventoffsetTimeScale - time scale in which the relativeDate is expressedstep - period of occurrence detectionmaxCheck - maximum checking interval (s)threshold - convergence threshold (s)action - action to be performed in case of event detectionArithmeticException - if referenceDate contains NaN or if relativeDate is NaNpublic void init(fr.cnes.sirius.patrius.propagation.SpacecraftState s0,
fr.cnes.sirius.patrius.time.AbsoluteDate t)
init in interface fr.cnes.sirius.patrius.events.EventDetectorinit in class fr.cnes.sirius.patrius.events.AbstractDetectorpublic double g(fr.cnes.sirius.patrius.propagation.SpacecraftState s)
throws fr.cnes.sirius.patrius.utils.exception.PatriusException
g in interface fr.cnes.sirius.patrius.events.EventDetectorg in class fr.cnes.sirius.patrius.events.detectors.DateDetectorfr.cnes.sirius.patrius.utils.exception.PatriusExceptionpublic fr.cnes.sirius.patrius.events.postprocessing.CodingEventDetector getCodingEventDetector(String incEventString, String decEventString)
getCodingEventDetector in interface CustomEventDetectorincEventString - 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.events.EventDetector copy()
copy in interface fr.cnes.sirius.patrius.events.EventDetectorcopy in class fr.cnes.sirius.patrius.events.detectors.RelativeDateDetectorpublic double getStep()
public boolean isRecurring()
public fr.cnes.sirius.patrius.events.EventDetector.Action getAction()
getAction in interface CustomEventDetectorgetAction in class fr.cnes.sirius.patrius.events.detectors.DateDetectorpublic String getCodeInc()
getCodeInc in interface CustomEventDetectorpublic String getCodeDec()
getCodeDec in interface CustomEventDetectorCopyright © 2025. All rights reserved.