public class CustomRelativeDateDetector extends fr.cnes.sirius.patrius.events.detectors.RelativeDateDetector implements CustomEventDetector
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_MAXCHECK
Default maxCheck threshold (s).
|
static double |
DEFAULT_THRESHOLD
Default convergence threshold (s).
|
static String |
RDA_DEC_STR
Coding message.
|
static String |
RDA_INC_STR
Coding message.
|
| Constructor and Description |
|---|
CustomRelativeDateDetector(double relativeDate,
fr.cnes.sirius.patrius.time.AbsoluteDate referenceDate,
fr.cnes.sirius.patrius.time.TimeScale offsetTimeScale)
Constructor with target relative date and reference date.
|
CustomRelativeDateDetector(double relativeDate,
fr.cnes.sirius.patrius.time.AbsoluteDate referenceDate,
fr.cnes.sirius.patrius.time.TimeScale offsetTimeScale,
double maxCheck,
double threshold,
fr.cnes.sirius.patrius.events.EventDetector.Action action)
Constructor with target relative date and reference date.
|
| 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 generic coding event detector for a given increasing and decreasing messages.
|
String |
toString() |
getReferenceDate, getRelativeDate, getTimeScaleaddEventDate, eventOccurred, g, getDatefilterEvent, getActionAtEntry, getActionAtExit, getMaxCheckInterval, getMaxIterationCount, getSlopeSelection, getThreshold, init, isRemoveAtEntry, isRemoveAtExit, logEventsOverTimeInterval, resetState, setMaxCheckInterval, setMaxIter, shouldBeRemovedpublic static final String RDA_INC_STR
public static final String RDA_DEC_STR
public static final double DEFAULT_THRESHOLD
public static final double DEFAULT_MAXCHECK
public CustomRelativeDateDetector(double relativeDate,
fr.cnes.sirius.patrius.time.AbsoluteDate referenceDate,
fr.cnes.sirius.patrius.time.TimeScale offsetTimeScale)
throws ArithmeticException
relativeDate - target relative date to find.referenceDate - reference date of the event.offsetTimeScale - time scale in which the relativeDate is expressed.ArithmeticException - if relativeDate is NaN or if referenceDate contains NaN.public CustomRelativeDateDetector(double relativeDate,
fr.cnes.sirius.patrius.time.AbsoluteDate referenceDate,
fr.cnes.sirius.patrius.time.TimeScale offsetTimeScale,
double maxCheck,
double threshold,
fr.cnes.sirius.patrius.events.EventDetector.Action action)
throws ArithmeticException
relativeDate - target relative date.referenceDate - reference date of the event.offsetTimeScale - time scale in which the relativeDate is expressed.maxCheck - maximum checking interval (s).threshold - convergence threshold (s).action - action to be performed in case of event detection.ArithmeticException - if referenceDate contains NaN or if relativeDate is NaN.public 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 fr.cnes.sirius.patrius.events.EventDetector.Action getAction()
CustomEventDetectorgetAction 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.