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:
ExtendedPositionProvider
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractExtendedPositionProvider(T provider)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract <S extends CalculusFieldElement<S>>
FieldPVCoordinatesProvider<S>getFieldProvider(Field<S> field)Build Field provider.Vector3DgetPosition(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 TgetProvider()Protected getter for coordinates provider.TimeStampedPVCoordinatesgetPVCoordinates(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.Vector3DgetVelocity(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, wait
-
Methods inherited from interface org.orekit.utils.ExtendedPositionProvider
toFieldPVCoordinatesProvider
-
-
-
-
Constructor Detail
-
AbstractExtendedPositionProvider
protected AbstractExtendedPositionProvider(T provider)
Constructor.- Parameters:
provider- base coordinates provider
-
-
Method Detail
-
getProvider
protected T getProvider()
Protected getter for coordinates provider.- Returns:
- provider
-
getPosition
public Vector3D getPosition(AbsoluteDate date, Frame frame)
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
public Vector3D getVelocity(AbsoluteDate date, Frame frame)
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
public TimeStampedPVCoordinates getPVCoordinates(AbsoluteDate date, Frame frame)
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
-
-