public class MedianDate extends Object implements AdditionalStateProvider
Typical use cases for this are estimation of maneuver median date during either orbit determination or maneuver optimization.
Duration
,
TriggerDate
Constructor and Description |
---|
MedianDate(String startName,
String stopName,
String columnName)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getAdditionalState(SpacecraftState state)
Get the additional state.
|
String |
getName()
Get the name of the additional state.
|
boolean |
yield(SpacecraftState state)
Check if this provider should yield so another provider has an opportunity to add missing parts.
|
public MedianDate(String startName, String stopName, String columnName)
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 columnpublic String getName()
getName
in interface AdditionalStateProvider
public boolean yield(SpacecraftState state)
Decision to yield is often based on an additional state being already available
in the provided state
(but it could theoretically also depend on
an additional state derivative being already available
, or any other criterion). If for example a provider needs the state transition
matrix, it could implement this method as:
public boolean yield(final SpacecraftState state) {
return !state.getAdditionalStates().containsKey("STM");
}
The default implementation returns false
, meaning that state data can be
generated
immediately.
The column state can be computed only if the start and stop dates columns are available.
yield
in interface AdditionalStateProvider
state
- state to handlepublic double[] getAdditionalState(SpacecraftState state)
getAdditionalState
in interface AdditionalStateProvider
state
- spacecraft state to which additional state should correspondCopyright © 2002-2022 CS GROUP. All rights reserved.