Package org.orekit.forces.empirical
Class AbstractParametricAcceleration
- java.lang.Object
-
- org.orekit.forces.empirical.AbstractParametricAcceleration
-
- All Implemented Interfaces:
ForceModel
,EventDetectorsProvider
,ParameterDriversProvider
- Direct Known Subclasses:
ParametricAcceleration
,TimeSpanParametricAcceleration
public abstract class AbstractParametricAcceleration extends Object implements ForceModel
Abstract class for parametric acceleration.- Since:
- 13.0
- Author:
- Romain Serra
-
-
Field Summary
-
Fields inherited from interface org.orekit.propagation.events.EventDetectorsProvider
DATATION_ACCURACY
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractParametricAcceleration(Vector3D direction, boolean isInertial, AttitudeProvider attitudeOverride)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
dependsOnPositionOnly()
Check if force model depends on position only at a given, fixed date.protected <T extends CalculusFieldElement<T>>
FieldVector3D<T>getAccelerationDirection(FieldSpacecraftState<T> state)
Computes the acceleration's direction in the propagation frame.protected Vector3D
getAccelerationDirection(SpacecraftState state)
Computes the acceleration's direction in the propagation frame.AttitudeProvider
getAttitudeOverride()
Getter for attitude override.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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, 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.ForceModel
acceleration, acceleration, addContribution, addContribution, dependsOnAttitudeRate, init, init
-
Methods inherited from interface org.orekit.utils.ParameterDriversProvider
getNbParametersDriversValue, getParameterDriver, getParameters, getParameters, getParameters, getParameters, getParametersAllValues, getParametersAllValues, getParametersDrivers, isSupported
-
-
-
-
Constructor Detail
-
AbstractParametricAcceleration
protected AbstractParametricAcceleration(Vector3D direction, boolean isInertial, AttitudeProvider attitudeOverride)
-
-
Method Detail
-
getAttitudeOverride
public AttitudeProvider getAttitudeOverride()
Getter for attitude override.- Returns:
- attitude override
-
dependsOnPositionOnly
public boolean dependsOnPositionOnly()
Check if force model depends on position only at a given, fixed date.- Specified by:
dependsOnPositionOnly
in interfaceForceModel
- Returns:
- true if force model depends on position only, false if it depends on velocity, either directly or due to a dependency on attitude
-
getAccelerationDirection
protected Vector3D getAccelerationDirection(SpacecraftState state)
Computes the acceleration's direction in the propagation frame.- Parameters:
state
- state- Returns:
- direction
-
getAccelerationDirection
protected <T extends CalculusFieldElement<T>> FieldVector3D<T> getAccelerationDirection(FieldSpacecraftState<T> state)
Computes the acceleration's direction in the propagation frame.- Type Parameters:
T
- field type- Parameters:
state
- state- Returns:
- direction
-
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
- Specified by:
getEventDetectors
in interfaceForceModel
- 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
- Specified by:
getFieldEventDetectors
in interfaceForceModel
- Type Parameters:
T
- extends CalculusFieldElement<T>- Parameters:
field
- field to which the state belongs- Returns:
- stream of event detectors
-
-