public class RelativeDateDetector extends DateDetector
EventDetector.ActionDEFAULT_MAXCHECK, DEFAULT_THRESHOLDactionAtEntry, actionAtExit, DEFAULT_MAXITER, removeAtEntry, removeAtExit, shouldBeRemovedFlagDECREASING, INCREASING, INCREASING_DECREASING| Constructor and Description |
|---|
RelativeDateDetector(double relativeDateIn,
AbsoluteDate referenceDateIn,
TimeScale offsetTimeScale)
Constructor with target relative date and reference date. maxCheck (1.e10 s) and threshold
(1.0e-9 s).
|
RelativeDateDetector(double relativeDateIn,
AbsoluteDate referenceDateIn,
TimeScale offsetTimeScale,
double maxCheck,
double threshold,
EventDetector.Action action)
Constructor with target relative date and reference date. maxCheck, threshold and action are
also configurable.
|
| 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, getDatefilterEvent, getActionAtEntry, getActionAtExit, getMaxCheckInterval, getMaxIterationCount, getSlopeSelection, getThreshold, init, isRemoveAtEntry, isRemoveAtExit, logEventsOverTimeInterval, resetState, setMaxCheckInterval, setMaxIter, shouldBeRemovedpublic 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 EventDetectorcopy in class DateDetectorCopyright © 2025 CNES. All rights reserved.