Package org.orekit.utils
Class DateDriver
java.lang.Object
org.orekit.utils.ParameterDriver
org.orekit.utils.DateDriver
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionDateDriver(AbsoluteDate base, String name, boolean start) Simple constructor. -
Method Summary
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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.orekit.time.TimeStamped
durationFrom
-
Constructor Details
-
DateDriver
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 Details
-
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
Get the shifted date.- Specified by:
getDatein interfaceTimeStamped- Returns:
- shifted date
-