Package org.orekit.utils
Class AbstractExtendedPositionProvider<T extends PVCoordinatesProvider>
java.lang.Object
org.orekit.utils.AbstractExtendedPositionProvider<T>
- All Implemented Interfaces:
ExtendedPositionProvider,PVCoordinatesProvider
- Direct Known Subclasses:
EphemerisExtendedPositionProvider,GNSSExtendedPositionProvider,KeplerianExtendedPositionProvider,TaylorExtendedPositionProvider,TleExtendedPositionProvider
public abstract class AbstractExtendedPositionProvider<T extends PVCoordinatesProvider>
extends Object
implements ExtendedPositionProvider
Abstract class for position provider based on a given type of provider.
- Since:
- 14.0
- Author:
- Romain Serra
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractExtendedPositionProvider(T provider) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract <S extends CalculusFieldElement<S>>
FieldPVCoordinatesProvider<S> getFieldProvider(Field<S> field) Build Field provider.getPosition(AbsoluteDate date, Frame frame) Get the position of the body in the selected frame.<S extends CalculusFieldElement<S>>
FieldVector3D<S> getPosition(FieldAbsoluteDate<S> date, Frame frame) Get the position in the selected frame.protected TProtected getter for coordinates provider.getPVCoordinates(AbsoluteDate date, Frame frame) Get thePVCoordinatesof the body in the selected frame.<S extends CalculusFieldElement<S>>
TimeStampedFieldPVCoordinates<S> getPVCoordinates(FieldAbsoluteDate<S> date, Frame frame) Get the position-velocity-acceleration in the selected frame.getVelocity(AbsoluteDate date, Frame frame) Get the velocity of the body in the selected frame.<S extends CalculusFieldElement<S>>
FieldVector3D<S> getVelocity(FieldAbsoluteDate<S> date, Frame frame) Get the velocity vector in the selected frame.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.utils.ExtendedPositionProvider
toFieldPVCoordinatesProvider
-
Constructor Details
-
AbstractExtendedPositionProvider
Constructor.- Parameters:
provider- base coordinates provider
-
-
Method Details
-
getProvider
Protected getter for coordinates provider.- Returns:
- provider
-
getPosition
Get the position of the body in the selected frame.- Specified by:
getPositionin interfacePVCoordinatesProvider- Parameters:
date- current dateframe- the frame where to define the position- Returns:
- position of the body (m and)
-
getVelocity
Get the velocity of the body in the selected frame.- Specified by:
getVelocityin interfaceExtendedPositionProvider- Specified by:
getVelocityin interfacePVCoordinatesProvider- Parameters:
date- current dateframe- the frame where to define the velocity- Returns:
- velocity of the body (m/s)
-
getPVCoordinates
Get thePVCoordinatesof the body in the selected frame.- Specified by:
getPVCoordinatesin interfaceExtendedPositionProvider- Specified by:
getPVCoordinatesin interfacePVCoordinatesProvider- Parameters:
date- current dateframe- the frame where to define the position- Returns:
- time-stamped position/velocity of the body (m and m/s)
-
getPosition
public <S extends CalculusFieldElement<S>> FieldVector3D<S> getPosition(FieldAbsoluteDate<S> date, Frame frame) Get the position in the selected frame.- Specified by:
getPositionin interfaceExtendedPositionProvider- Type Parameters:
S- field type- Parameters:
date- current dateframe- the frame where to define the position- Returns:
- position
-
getVelocity
public <S extends CalculusFieldElement<S>> FieldVector3D<S> getVelocity(FieldAbsoluteDate<S> date, Frame frame) Get the velocity vector in the selected frame.- Specified by:
getVelocityin interfaceExtendedPositionProvider- Type Parameters:
S- field type- Parameters:
date- current dateframe- the frame where to define the velocity- Returns:
- velocity
-
getPVCoordinates
public <S extends CalculusFieldElement<S>> TimeStampedFieldPVCoordinates<S> getPVCoordinates(FieldAbsoluteDate<S> date, Frame frame) Get the position-velocity-acceleration in the selected frame.- Specified by:
getPVCoordinatesin interfaceExtendedPositionProvider- Type Parameters:
S- field type- Parameters:
date- current dateframe- the frame where to define the position- Returns:
- position-velocity-acceleration vector
-
getFieldProvider
protected abstract <S extends CalculusFieldElement<S>> FieldPVCoordinatesProvider<S> getFieldProvider(Field<S> field) Build Field provider.- Type Parameters:
S- field- Parameters:
field- field type- Returns:
- Field provider
-