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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitpublic 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 AdditionalStateProviderpublic 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 AdditionalStateProviderstate - state to handlepublic double[] getAdditionalState(SpacecraftState state)
getAdditionalState in interface AdditionalStateProviderstate - spacecraft state to which additional state should correspondCopyright © 2002-2022 CS GROUP. All rights reserved.