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 multiplePVCoordinatesProvider
instances 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 class
AggregatedPVCoordinatesProvider.Builder
Builder class forAggregatedPVCoordinatesProvider
.static class
AggregatedPVCoordinatesProvider.InvalidPVProvider
Implementation ofPVCoordinatesProvider
that 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 AbsoluteDate
getMaxDate()
Get the last date of the range.AbsoluteDate
getMinDate()
Get the first date of the range.Vector3D
getPosition(AbsoluteDate date, Frame frame)
Get the position of the body in the selected frame.TimeStampedPVCoordinates
getPVCoordinates(AbsoluteDate date, Frame frame)
Get thePVCoordinates
of the body in the selected frame.
-
-
-
Constructor Detail
-
AggregatedPVCoordinatesProvider
public AggregatedPVCoordinatesProvider(TimeSpanMap<PVCoordinatesProvider> map)
Class constructor. Note the providedmap
is used directly. Modification of the map after calling this constructor may result in undefined behavior.- Parameters:
map
- the map ofPVCoordinatesProvider
instances by time.
-
AggregatedPVCoordinatesProvider
public AggregatedPVCoordinatesProvider(TimeSpanMap<PVCoordinatesProvider> map, AbsoluteDate minDate, AbsoluteDate maxDate)
Class constructor. Note the providedmap
is used directly. Modification of the map after calling this constructor may result in undefined behavior.- Parameters:
map
- the map ofPVCoordinatesProvider
instances by time.minDate
- the earliest valid date,null
if always validmaxDate
- the latest valid date,null
if 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:PVCoordinatesProvider
Get the position of the body in the selected frame.- Specified by:
getPosition
in 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:PVCoordinatesProvider
Get thePVCoordinates
of the body in the selected frame.- Specified by:
getPVCoordinates
in interfacePVCoordinatesProvider
- Parameters:
date
- current dateframe
- the frame where to define the position- Returns:
- time-stamped position/velocity of the body (m and m/s)
-
-