Package org.orekit.utils
Class DateDriver
- java.lang.Object
-
- org.orekit.utils.ParameterDriver
-
- org.orekit.utils.DateDriver
-
- All Implemented Interfaces:
TimeStamped
public class DateDriver extends ParameterDriver implements TimeStamped
Parameter driver
allowing to drive a date.- Since:
- 11.1
- Author:
- Luc Maisonobe
-
-
Field Summary
-
Fields inherited from class org.orekit.utils.ParameterDriver
SPAN
-
-
Constructor Summary
Constructors Constructor Description DateDriver(AbsoluteDate base, String name, boolean start)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbsoluteDate
getBaseDate()
Get the base (unshifted) date.AbsoluteDate
getDate()
Get the shifted date.boolean
isStart()
Check if driver corresponds to a start date.-
Methods inherited from class org.orekit.utils.ParameterDriver
addObserver, addSpanAtDate, addSpans, getMaxValue, getMinValue, getName, getNameSpan, getNamesSpanMap, getNbOfValues, getNormalizedValue, getNormalizedValue, getObservers, getReferenceDate, getReferenceValue, getScale, getTransitionDates, getValue, getValue, getValue, getValue, getValueContinuousEstimation, getValues, getValueSpanMap, getValueStepEstimation, isContinuousEstimation, isSelected, removeObserver, replaceObserver, setContinuousEstimation, setMaxValue, setMinValue, setName, setNormalizedValue, setNormalizedValue, setReferenceDate, setReferenceValue, setScale, setSelected, setValue, setValue, setValueSpanMap, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.orekit.time.TimeStamped
durationFrom
-
-
-
-
Constructor Detail
-
DateDriver
public DateDriver(AbsoluteDate base, String name, boolean start)
Simple constructor.At construction, the parameter is configured as not selected, the reference date is set to
null
, the value (i.e. the date offset) is set to 0, the scale is set to 1 and the minimum and maximum values are set to negative and positive infinity respectively.- Parameters:
base
- base date corresponding to shift = 0name
- name of the parameterstart
- if true, the driver corresponds to a start date
-
-
Method Detail
-
getBaseDate
public AbsoluteDate getBaseDate()
Get the base (unshifted) date.- Returns:
- base (unshifted) date
-
isStart
public boolean isStart()
Check if driver corresponds to a start date.- Returns:
- true if driver corresponds to a start date
-
getDate
public AbsoluteDate getDate()
Get the shifted date.- Specified by:
getDate
in interfaceTimeStamped
- Returns:
- shifted date
-
-