public class RelativeDateDetector extends DateDetector
EventDetector.Action
DEFAULT_MAXCHECK, DEFAULT_THRESHOLD
DECREASING, 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, getDate, shouldBeRemoved
getMaxCheckInterval, getMaxIterationCount, getSlopeSelection, getThreshold, init, resetState
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 © 2019 CNES. All rights reserved.