public class RelativeDateDetector extends DateDetector
AbstractDetector.PropagationDelayType
EventDetector.Action
DEFAULT_MAXCHECK, DEFAULT_THRESHOLD
actionAtEntry, actionAtExit, removeAtEntry, removeAtExit, shouldBeRemovedFlag
DECREASING, INCREASING, INCREASING_DECREASING
Constructor and Description |
---|
RelativeDateDetector(double relativeDateIn,
AbsoluteDate referenceDateIn,
TimeScale offsetTimeScale)
Constructor with target relative date and reference date.
|
RelativeDateDetector(double relativeDateIn,
AbsoluteDate referenceDateIn,
TimeScale offsetTimeScale,
double maxCheck,
double threshold,
EventDetector.Action action)
Constructor with target relative date and reference date.
|
Modifier and Type | Method and Description |
---|---|
EventDetector |
copy()
A copy of the detector.
|
AbsoluteDate |
getReferenceDate()
Getter for the reference date of the event.
|
double |
getRelativeDate()
Getter for the target relative date in seconds.
|
TimeScale |
getTimeScale()
Getter for the time scale of the event.
|
addEventDate, eventOccurred, g, getAction, getDate
getActionAtEntry, getActionAtExit, getInertialFrame, getMaxCheckInterval, getMaxIterationCount, getPropagationDelayType, getSignalEmissionDate, getSignalReceptionDate, getSlopeSelection, getThreshold, init, isRemoveAtEntry, isRemoveAtExit, logEventsOverTimeInterval, resetState, setEpsilonSignalPropagation, setMaxCheckInterval, setMaxIterSignalPropagation, setPropagationDelayType, shouldBeRemoved
public RelativeDateDetector(double relativeDateIn, AbsoluteDate referenceDateIn, TimeScale offsetTimeScale) throws ArithmeticException
relativeDateIn
- target relative date to find.referenceDateIn
- 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 RelativeDateDetector(double relativeDateIn, AbsoluteDate referenceDateIn, TimeScale offsetTimeScale, double maxCheck, double threshold, EventDetector.Action action) throws ArithmeticException
relativeDateIn
- target relative date.referenceDateIn
- 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 double getRelativeDate()
public AbsoluteDate getReferenceDate()
public TimeScale getTimeScale()
public EventDetector copy()
copy
in interface EventDetector
copy
in class DateDetector
Copyright © 2023 CNES. All rights reserved.