public class CustomRecurrentRelativeDateDetector extends fr.cnes.sirius.patrius.propagation.events.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. maxCheck (1.e10 s) and threshold
(1.0e-9 s).
|
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.propagation.events.EventDetector.Action action)
Recurrent detector 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() |
double |
g(fr.cnes.sirius.patrius.propagation.SpacecraftState s) |
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.
|
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, getTimeScale
addEventDate, eventOccurred, getDate
getActionAtEntry, getActionAtExit, getInertialFrame, getMaxCheckInterval, getMaxIterationCount, getPropagationDelayType, getSignalEmissionDate, getSignalReceptionDate, getSlopeSelection, getThreshold, isRemoveAtEntry, isRemoveAtExit, logEventsOverTimeInterval, resetState, setEpsilonSignalPropagation, setMaxCheckInterval, setPropagationDelayType, shouldBeRemoved
public 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.propagation.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.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 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 double getStep()
public boolean isRecurring()
public fr.cnes.sirius.patrius.propagation.events.EventDetector.Action getAction()
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.