Package org.orekit.utils
Class AggregatedPVCoordinatesProvider
- java.lang.Object
-
- org.orekit.utils.AggregatedPVCoordinatesProvider
-
- All Implemented Interfaces:
PVCoordinatesProvider
public class AggregatedPVCoordinatesProvider extends Object implements PVCoordinatesProvider
Aggreate multiplePVCoordinatesProviderinstances together This can be used to describe an aircraft or surface vehicle.- Since:
- 11.3
- Author:
- Joe Reed
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAggregatedPVCoordinatesProvider.BuilderBuilder class forAggregatedPVCoordinatesProvider.static classAggregatedPVCoordinatesProvider.InvalidPVProviderImplementation ofPVCoordinatesProviderthat throws an illegal state exception.
-
Constructor Summary
Constructors Constructor Description AggregatedPVCoordinatesProvider(TimeSpanMap<PVCoordinatesProvider> map)Class constructor.AggregatedPVCoordinatesProvider(TimeSpanMap<PVCoordinatesProvider> map, AbsoluteDate minDate, AbsoluteDate maxDate)Class constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbsoluteDategetMaxDate()Get the last date of the range.AbsoluteDategetMinDate()Get the first date of the range.Vector3DgetPosition(AbsoluteDate date, Frame frame)Get the position of the body in the selected frame.TimeStampedPVCoordinatesgetPVCoordinates(AbsoluteDate date, Frame frame)Get thePVCoordinatesof the body in the selected frame.
-
-
-
Constructor Detail
-
AggregatedPVCoordinatesProvider
public AggregatedPVCoordinatesProvider(TimeSpanMap<PVCoordinatesProvider> map)
Class constructor. Note the providedmapis used directly. Modification of the map after calling this constructor may result in undefined behavior.- Parameters:
map- the map ofPVCoordinatesProviderinstances by time.
-
AggregatedPVCoordinatesProvider
public AggregatedPVCoordinatesProvider(TimeSpanMap<PVCoordinatesProvider> map, AbsoluteDate minDate, AbsoluteDate maxDate)
Class constructor. Note the providedmapis used directly. Modification of the map after calling this constructor may result in undefined behavior.- Parameters:
map- the map ofPVCoordinatesProviderinstances by time.minDate- the earliest valid date,nullif always validmaxDate- the latest valid date,nullif always valid
-
-
Method Detail
-
getMinDate
public AbsoluteDate getMinDate()
Get the first date of the range.- Returns:
- the first date of the range
-
getMaxDate
public AbsoluteDate getMaxDate()
Get the last date of the range.- Returns:
- the last date of the range
-
getPosition
public Vector3D getPosition(AbsoluteDate date, Frame frame)
Description copied from interface:PVCoordinatesProviderGet 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)
-
getPVCoordinates
public TimeStampedPVCoordinates getPVCoordinates(AbsoluteDate date, Frame frame)
Description copied from interface:PVCoordinatesProviderGet thePVCoordinatesof the body in the selected frame.- 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)
-
-