Class PythonManeuverTriggers
- java.lang.Object
-
- org.orekit.forces.maneuvers.trigger.PythonManeuverTriggers
-
- All Implemented Interfaces:
ManeuverTriggers
,EventDetectorsProvider
,ParameterDriversProvider
public class PythonManeuverTriggers extends Object implements ManeuverTriggers
-
-
Field Summary
Fields Modifier and Type Field Description protected long
pythonObject
Part of JCC Python interface to object-
Fields inherited from interface org.orekit.propagation.events.EventDetectorsProvider
DATATION_ACCURACY
-
-
Constructor Summary
Constructors Constructor Description PythonManeuverTriggers()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends CalculusFieldElement<T>>
voidaddResetter(Field<T> field, FieldManeuverTriggersResetter<T> resetter)
Add a resetter.void
addResetter(ManeuverTriggersResetter resetter)
Add a resetter.void
finalize()
Stream<EventDetector>
getEventDetectors()
Get the discrete events related to the model.<T extends CalculusFieldElement<T>>
Stream<FieldEventDetector<T>>getFieldEventDetectors(Field<T> field)
Get the discrete events related to the model.List<ParameterDriver>
getParametersDrivers()
Get the drivers for parameters.void
init(SpacecraftState initialState, AbsoluteDate target)
Initialization method called at propagation start.boolean
isFiring(AbsoluteDate date, double[] parameters)
Find out if the maneuver is firing or not.<T extends CalculusFieldElement<T>>
booleanisFiring(FieldAbsoluteDate<T> date, T[] parameters)
Find out if the maneuver is firing or not.void
pythonDecRef()
long
pythonExtension()
void
pythonExtension(long pythonObject)
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.propagation.events.EventDetectorsProvider
getEventDetectors, getFieldEventDetectors
-
Methods inherited from interface org.orekit.forces.maneuvers.trigger.ManeuverTriggers
getName, init
-
Methods inherited from interface org.orekit.utils.ParameterDriversProvider
getNbParametersDriversValue, getParameterDriver, getParameters, getParameters, getParameters, getParameters, getParametersAllValues, getParametersAllValues, isSupported
-
-
-
-
Method Detail
-
pythonExtension
public void pythonExtension(long pythonObject)
-
pythonExtension
public long pythonExtension()
-
finalize
public void finalize() throws Throwable
-
pythonDecRef
public void pythonDecRef()
-
init
public void init(SpacecraftState initialState, AbsoluteDate target)
Initialization method called at propagation start.The default implementation does nothing.
- Specified by:
init
in interfaceManeuverTriggers
- Parameters:
initialState
- initial spacecraft state (at the start of propagation).target
- date of propagation. Not equal toinitialState.getDate()
.
-
isFiring
public boolean isFiring(AbsoluteDate date, double[] parameters)
Find out if the maneuver is firing or not.- Specified by:
isFiring
in interfaceManeuverTriggers
- Parameters:
date
- current dateparameters
- maneuver triggers parameters- Returns:
- true if the maneuver is firing, false otherwise
-
isFiring
public <T extends CalculusFieldElement<T>> boolean isFiring(FieldAbsoluteDate<T> date, T[] parameters)
Find out if the maneuver is firing or not.- Specified by:
isFiring
in interfaceManeuverTriggers
- Type Parameters:
T
- type of the field elements- Parameters:
date
- current dateparameters
- maneuver triggers parameters- Returns:
- true if the maneuver is firing, false otherwise
-
addResetter
public void addResetter(ManeuverTriggersResetter resetter)
Add a resetter.- Specified by:
addResetter
in interfaceManeuverTriggers
- Parameters:
resetter
- resetter to add
-
addResetter
public <T extends CalculusFieldElement<T>> void addResetter(Field<T> field, FieldManeuverTriggersResetter<T> resetter)
Add a resetter.- Specified by:
addResetter
in interfaceManeuverTriggers
- Type Parameters:
T
- type of the field elements- Parameters:
field
- field to which the state belongsresetter
- resetter to add
-
getEventDetectors
public Stream<EventDetector> getEventDetectors()
Get the discrete events related to the model.This method is not intended to be called several time, only once by a propagator, as it has the side effect of rebuilding the events detectors when called
- Specified by:
getEventDetectors
in interfaceEventDetectorsProvider
- Returns:
- stream of event detectors
-
getFieldEventDetectors
public <T extends CalculusFieldElement<T>> Stream<FieldEventDetector<T>> getFieldEventDetectors(Field<T> field)
Get the discrete events related to the model.This method is not intended to be called several time, only once by a propagator, as it has the side effect of rebuilding the events detectors when called
- Specified by:
getFieldEventDetectors
in interfaceEventDetectorsProvider
- Type Parameters:
T
- extends CalculusFieldElement<T>- Parameters:
field
- field to which the state belongs- Returns:
- stream of event detectors
-
getParametersDrivers
public List<ParameterDriver> getParametersDrivers()
Description copied from interface:ParameterDriversProvider
Get the drivers for parameters.- Specified by:
getParametersDrivers
in interfaceParameterDriversProvider
- Returns:
- drivers for parameters
-
-