Class PythonManeuverTriggers
- java.lang.Object
-
- org.orekit.forces.maneuvers.trigger.PythonManeuverTriggers
-
- All Implemented Interfaces:
ManeuverTriggers
public class PythonManeuverTriggers extends Object implements ManeuverTriggers
-
-
Constructor Summary
Constructors Constructor Description PythonManeuverTriggers()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finalize()
Part of JCC Python interface to objectStream<EventDetector>
getEventsDetectors()
Get the event detectors associated with the triggers.<T extends CalculusFieldElement<T>>
Stream<FieldEventDetector<T>>getFieldEventsDetectors(Field<T> field)
Get the event detectors associated with the triggers.void
init(SpacecraftState initialState, AbsoluteDate target)
Initialization method.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.<T extends CalculusFieldElement<T>>
booleanisFiring_FT(FieldAbsoluteDate<T> date, T[] parameters)
void
pythonDecRef()
Part of JCC Python interface to objectlong
pythonExtension()
Part of JCC Python interface to objectvoid
pythonExtension(long pythonObject)
Part of JCC Python interface to object-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.forces.maneuvers.trigger.ManeuverTriggers
getName, getParametersDrivers, init
-
-
-
-
Method Detail
-
pythonExtension
public void pythonExtension(long pythonObject)
Part of JCC Python interface to object
-
pythonExtension
public long pythonExtension()
Part of JCC Python interface to object
-
finalize
public void finalize() throws Throwable
Part of JCC Python interface to object
-
pythonDecRef
public void pythonDecRef()
Part of JCC Python interface to object
-
init
public void init(SpacecraftState initialState, AbsoluteDate target)
Initialization method. Called in when Maneuver.init(...) is called (from ForceModel.init(...)).- Specified by:
init
in interfaceManeuverTriggers
- Parameters:
initialState
- initial spacecraft state (at the start of propagation).target
- date of propagation. Not equal toinitialState.getDate()
.
-
getEventsDetectors
public Stream<EventDetector> getEventsDetectors()
Get the event detectors associated with the triggers.- Specified by:
getEventsDetectors
in interfaceManeuverTriggers
- Returns:
- the event detectors
-
getFieldEventsDetectors
public <T extends CalculusFieldElement<T>> Stream<FieldEventDetector<T>> getFieldEventsDetectors(Field<T> field)
Get the event detectors associated with the triggers.- Specified by:
getFieldEventsDetectors
in interfaceManeuverTriggers
- Type Parameters:
T
- type of the field elements- Parameters:
field
- field to which the state belongs- Returns:
- the event detectors
-
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
-
isFiring_FT
public <T extends CalculusFieldElement<T>> boolean isFiring_FT(FieldAbsoluteDate<T> date, T[] parameters)
-
-