public abstract class AbstractManeuverTriggers extends Object implements ManeuverTriggers
Modifier | Constructor and Description |
---|---|
protected |
AbstractManeuverTriggers()
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
<T extends CalculusFieldElement<T>> |
addResetter(Field<T> field,
FieldManeuverTriggersResetter<T> resetter)
Add a resetter.
|
void |
addResetter(ManeuverTriggersResetter resetter)
Add a resetter.
|
protected <T extends CalculusFieldElement<T>> |
applyResetters(FieldSpacecraftState<T> state)
Apply resetters.
|
protected SpacecraftState |
applyResetters(SpacecraftState state)
Apply resetters.
|
TimeSpanMap<Boolean> |
getFirings()
Get the firings detected during last propagation.
|
<T extends CalculusFieldElement<T>> |
init(FieldSpacecraftState<T> initialState,
FieldAbsoluteDate<T> target)
Initialization method called at propagation start.
|
void |
init(SpacecraftState initialState,
AbsoluteDate target)
Initialization method called at propagation start.
|
protected <T extends CalculusFieldElement<T>> |
initializeResetters(FieldSpacecraftState<T> initialState,
FieldAbsoluteDate<T> target)
Initialize resetters.
|
protected void |
initializeResetters(SpacecraftState initialState,
AbsoluteDate target)
Initialize resetters.
|
boolean |
isFiring(AbsoluteDate date,
double[] parameters)
Find out if the maneuver is firing or not.
|
<S extends CalculusFieldElement<S>> |
isFiring(FieldAbsoluteDate<S> date,
S[] parameters)
Find out if the maneuver is firing or not.
|
protected abstract boolean |
isFiringOnInitialState(SpacecraftState initialState,
boolean isForward)
Method to check if the thruster is firing on initialization.
|
protected <T extends CalculusFieldElement<T>> |
notifyResetters(FieldSpacecraftState<T> state,
boolean start)
Notify resetters.
|
protected void |
notifyResetters(SpacecraftState state,
boolean start)
Notify resetters.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEventsDetectors, getFieldEventsDetectors, getName, getParametersDrivers
protected AbstractManeuverTriggers()
public void init(SpacecraftState initialState, AbsoluteDate target)
The default implementation does nothing.
init
in interface ManeuverTriggers
initialState
- initial spacecraft state (at the start of propagation).target
- date of propagation. Not equal to initialState.getDate()
.public <T extends CalculusFieldElement<T>> void init(FieldSpacecraftState<T> initialState, FieldAbsoluteDate<T> target)
The default implementation does nothing.
init
in interface ManeuverTriggers
T
- type of the elementsinitialState
- initial spacecraft state (at the start of propagation).target
- date of propagation. Not equal to initialState.getDate()
.protected abstract boolean isFiringOnInitialState(SpacecraftState initialState, boolean isForward)
initialState
- initial spacecraft stateisForward
- if true, propagation will be in the forward directionpublic boolean isFiring(AbsoluteDate date, double[] parameters)
isFiring
in interface ManeuverTriggers
date
- current dateparameters
- maneuver triggers parameterspublic <S extends CalculusFieldElement<S>> boolean isFiring(FieldAbsoluteDate<S> date, S[] parameters)
isFiring
in interface ManeuverTriggers
S
- type of the field elementsdate
- current dateparameters
- maneuver triggers parameterspublic TimeSpanMap<Boolean> getFirings()
public void addResetter(ManeuverTriggersResetter resetter)
resetter
- resetter to addpublic <T extends CalculusFieldElement<T>> void addResetter(Field<T> field, FieldManeuverTriggersResetter<T> resetter)
T
- type of the field elementsfield
- field to which the state belongsresetter
- resetter to addprotected void initializeResetters(SpacecraftState initialState, AbsoluteDate target)
initialState
- initial statetarget
- target date for the propagationprotected void notifyResetters(SpacecraftState state, boolean start)
state
- spacecraft state at trigger date (before applying the maneuver)start
- if true, the trigger is the start of the maneuverprotected SpacecraftState applyResetters(SpacecraftState state)
state
- spacecraft state at trigger dateprotected <T extends CalculusFieldElement<T>> void initializeResetters(FieldSpacecraftState<T> initialState, FieldAbsoluteDate<T> target)
T
- type of the field elementsinitialState
- initial statetarget
- target date for the propagationprotected <T extends CalculusFieldElement<T>> void notifyResetters(FieldSpacecraftState<T> state, boolean start)
T
- type of the field elementsstate
- spacecraft state at trigger date (before applying the maneuver)start
- if true, the trigger is the start of the maneuverprotected <T extends CalculusFieldElement<T>> FieldSpacecraftState<T> applyResetters(FieldSpacecraftState<T> state)
T
- type of the field elementsstate
- spacecraft state at trigger dateCopyright © 2002-2022 CS GROUP. All rights reserved.