public class CustomRelativeDateDetector extends fr.cnes.sirius.patrius.propagation.events.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. maxCheck (1.e10 s) and threshold
(1.0e-9 s).
|
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.propagation.events.EventDetector.Action action)
Constructor with target relative date and reference date. maxCheck, threshold and action are
also configurable.
|
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 generic coding event detector for a given increasing and decreasing messages.
|
String |
toString() |
getReferenceDate, getRelativeDate, getTimeScale
addEventDate, eventOccurred, g, getDate
getActionAtEntry, getActionAtExit, getInertialFrame, getMaxCheckInterval, getMaxIterationCount, getPropagationDelayType, getSignalEmissionDate, getSignalReceptionDate, getSlopeSelection, getThreshold, init, isRemoveAtEntry, isRemoveAtExit, logEventsOverTimeInterval, resetState, setEpsilonSignalPropagation, setMaxCheckInterval, setPropagationDelayType, shouldBeRemoved
public 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.propagation.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.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.RelativeDateDetector
public fr.cnes.sirius.patrius.propagation.events.EventDetector.Action getAction()
CustomEventDetector
getAction
in interface CustomEventDetector
getAction
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.