Class Duration
- All Implemented Interfaces:
AdditionalDataProvider<double[]>
Typical use cases for this are estimation of maneuver duration during either orbit determination or maneuver optimization.
- Since:
- 11.1
- Author:
- Luc Maisonobe
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[]getAdditionalData(SpacecraftState state) Get the additional data.getName()Get the name of the additional data.booleanyields(SpacecraftState state) Check if this provider should yield so another provider has an opportunity to add missing parts.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.propagation.AdditionalDataProvider
init, update
-
Constructor Details
-
Duration
Simple constructor.- Parameters:
startName- name of the parameter corresponding to the start datestopName- name of the parameter corresponding to the stop datecolumnName- name of the parameter corresponding to the column
-
-
Method Details
-
getName
Get the name of the additional data.If a provider just modifies one of the basic elements (orbit, attitude or mass) without adding any new data, it should return the empty string as its name.
- Specified by:
getNamein interfaceAdditionalDataProvider<double[]>- Returns:
- name of the additional data (names containing "orekit" with any case are reserved for the library internal use)
-
yields
Check if this provider should yield so another provider has an opportunity to add missing parts.Decision to yield is often based on an additional data being
already availablein the providedstate(but it could theoretically also depend on an additional state derivative beingalready available, or any other criterion). If for example a provider needs the state transition matrix, it could implement this method as:public boolean yields(final SpacecraftState state) { return !state.hasAdditionalData("STM"); }The default implementation returns
false, meaning that state data can begeneratedimmediately.The column state can be computed only if the start and stop dates columns are available.
- Specified by:
yieldsin interfaceAdditionalDataProvider<double[]>- Parameters:
state- state to handle- Returns:
- true if this provider should yield so another provider has an opportunity to add missing parts as the state is incrementally built up
-
getAdditionalData
Get the additional data.- Specified by:
getAdditionalDatain interfaceAdditionalDataProvider<double[]>- Parameters:
state- spacecraft state to which additional data should correspond- Returns:
- additional state corresponding to spacecraft state
-