Package org.orekit.files.general
Class OrekitEphemerisFile.OrekitSatelliteEphemeris
- java.lang.Object
-
- org.orekit.files.general.OrekitEphemerisFile.OrekitSatelliteEphemeris
-
- All Implemented Interfaces:
EphemerisFile.SatelliteEphemeris<TimeStampedPVCoordinates,OrekitEphemerisFile.OrekitEphemerisSegment>
- Enclosing class:
- OrekitEphemerisFile
public static class OrekitEphemerisFile.OrekitSatelliteEphemeris extends Object implements EphemerisFile.SatelliteEphemeris<TimeStampedPVCoordinates,OrekitEphemerisFile.OrekitEphemerisSegment>
Inner class ofOrekitEphemerisFile
that defines theOrekitEphemerisFile.OrekitSatelliteEphemeris
corresponding object for this ephemeris type.
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_INTERPOLATION_SIZE
Defines the default interpolation sample size if it is not specified on a segment.
-
Constructor Summary
Constructors Constructor Description OrekitSatelliteEphemeris(String id)
Standard constructor for building the satellite Ephemeris object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrekitEphemerisFile.OrekitEphemerisSegment
addNewSegment(List<SpacecraftState> states)
Injects pre-computed satellite states into this ephemeris file object, returning the generatedOrekitEphemerisFile.OrekitEphemerisSegment
that has been stored internally.OrekitEphemerisFile.OrekitEphemerisSegment
addNewSegment(List<SpacecraftState> states, int interpolationSampleSize)
Injects pre-computed satellite states into this ephemeris file object, returning the generatedOrekitEphemerisFile.OrekitEphemerisSegment
that has been stored internally.OrekitEphemerisFile.OrekitEphemerisSegment
addNewSegment(List<SpacecraftState> states, CelestialBody body, int interpolationSampleSize)
Injects pre-computed satellite states into this ephemeris file object, returning the generatedOrekitEphemerisFile.OrekitEphemerisSegment
that has been stored internally.OrekitEphemerisFile.OrekitEphemerisSegment
addNewSegment(List<SpacecraftState> states, CelestialBody body, int interpolationSampleSize, TimeScale timeScale)
Injects pre-computed satellite states into this ephemeris file object, returning the generatedOrekitEphemerisFile.OrekitEphemerisSegment
that has been stored internally.String
getId()
Get the satellite ID.double
getMu()
Get the standard gravitational parameter for the satellite.List<OrekitEphemerisFile.OrekitEphemerisSegment>
getSegments()
Get the segments of the ephemeris.AbsoluteDate
getStart()
Get the start date of the ephemeris.AbsoluteDate
getStop()
Get the end date of the ephemeris.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.files.general.EphemerisFile.SatelliteEphemeris
getPropagator, getPropagator
-
-
-
-
Field Detail
-
DEFAULT_INTERPOLATION_SIZE
public static final int DEFAULT_INTERPOLATION_SIZE
Defines the default interpolation sample size if it is not specified on a segment.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OrekitSatelliteEphemeris
public OrekitSatelliteEphemeris(String id)
Standard constructor for building the satellite Ephemeris object.- Parameters:
id
- the ID of the space object for this data
-
-
Method Detail
-
getId
public String getId()
Get the satellite ID. The satellite ID is unique only within the same ephemeris file.- Specified by:
getId
in interfaceEphemerisFile.SatelliteEphemeris<TimeStampedPVCoordinates,OrekitEphemerisFile.OrekitEphemerisSegment>
- Returns:
- the satellite's ID, never
null
.
-
getMu
public double getMu()
Get the standard gravitational parameter for the satellite.- Specified by:
getMu
in interfaceEphemerisFile.SatelliteEphemeris<TimeStampedPVCoordinates,OrekitEphemerisFile.OrekitEphemerisSegment>
- Returns:
- the gravitational parameter used in
EphemerisFile.SatelliteEphemeris.getPropagator(AttitudeProvider)
, in m³/s².
-
getSegments
public List<OrekitEphemerisFile.OrekitEphemerisSegment> getSegments()
Get the segments of the ephemeris.Ephemeris segments are typically used to split an ephemeris around discontinuous events, such as maneuvers.
- Specified by:
getSegments
in interfaceEphemerisFile.SatelliteEphemeris<TimeStampedPVCoordinates,OrekitEphemerisFile.OrekitEphemerisSegment>
- Returns:
- the segments contained in the ephemeris file for this satellite.
-
getStart
public AbsoluteDate getStart()
Get the start date of the ephemeris.The date returned by this method is equivalent to
getPropagator().getMinDate()
.- Specified by:
getStart
in interfaceEphemerisFile.SatelliteEphemeris<TimeStampedPVCoordinates,OrekitEphemerisFile.OrekitEphemerisSegment>
- Returns:
- ephemeris start date.
-
getStop
public AbsoluteDate getStop()
Get the end date of the ephemeris.The date returned by this method is equivalent to
getPropagator().getMaxDate()
.- Specified by:
getStop
in interfaceEphemerisFile.SatelliteEphemeris<TimeStampedPVCoordinates,OrekitEphemerisFile.OrekitEphemerisSegment>
- Returns:
- ephemeris end date.
-
addNewSegment
@DefaultDataContext public OrekitEphemerisFile.OrekitEphemerisSegment addNewSegment(List<SpacecraftState> states)
Injects pre-computed satellite states into this ephemeris file object, returning the generatedOrekitEphemerisFile.OrekitEphemerisSegment
that has been stored internally. Defaults the celestial body to earth and the interpolation size to the default.This method uses the
default data context
.- Parameters:
states
- a list ofSpacecraftState
that will comprise this new unit.- Returns:
- the generated
OrekitEphemerisFile.OrekitEphemerisSegment
- See Also:
addNewSegment(List, CelestialBody, int, TimeScale)
-
addNewSegment
@DefaultDataContext public OrekitEphemerisFile.OrekitEphemerisSegment addNewSegment(List<SpacecraftState> states, int interpolationSampleSize)
Injects pre-computed satellite states into this ephemeris file object, returning the generatedOrekitEphemerisFile.OrekitEphemerisSegment
that has been stored internally. Defaults the Celestial Body to be EarthsThis method uses the
default data context
.- Parameters:
states
- a list ofSpacecraftState
that will comprise this new unit.interpolationSampleSize
- the number of interpolation samples that should be used when processed by another system- Returns:
- the generated
OrekitEphemerisFile.OrekitEphemerisSegment
- See Also:
addNewSegment(List, CelestialBody, int, TimeScale)
-
addNewSegment
@DefaultDataContext public OrekitEphemerisFile.OrekitEphemerisSegment addNewSegment(List<SpacecraftState> states, CelestialBody body, int interpolationSampleSize)
Injects pre-computed satellite states into this ephemeris file object, returning the generatedOrekitEphemerisFile.OrekitEphemerisSegment
that has been stored internally.This method uses the
default data context
.- Parameters:
states
- a list ofSpacecraftState
that will comprise this new unit.body
- the celestial body the state's frames are with respect tointerpolationSampleSize
- the number of interpolation samples that should be used when processed by another system- Returns:
- the generated
OrekitEphemerisFile.OrekitEphemerisSegment
- See Also:
addNewSegment(List, CelestialBody, int, TimeScale)
-
addNewSegment
public OrekitEphemerisFile.OrekitEphemerisSegment addNewSegment(List<SpacecraftState> states, CelestialBody body, int interpolationSampleSize, TimeScale timeScale)
Injects pre-computed satellite states into this ephemeris file object, returning the generatedOrekitEphemerisFile.OrekitEphemerisSegment
that has been stored internally.- Parameters:
states
- a list ofSpacecraftState
that will comprise this new unit.body
- the celestial body from which the frames are definedinterpolationSampleSize
- the number of interpolation samples that should be used when processed by another systemtimeScale
- the time scale used in the new segment.- Returns:
- the generated
OrekitEphemerisFile.OrekitEphemerisSegment
- Since:
- 10.1
-
-