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 of
OrekitEphemerisFile that defines the
OrekitEphemerisFile.OrekitSatelliteEphemeris corresponding object for this ephemeris type.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefines the default interpolation sample size if it is not specified on a segment. -
Constructor Summary
ConstructorsConstructorDescriptionStandard constructor for building the satellite Ephemeris object. -
Method Summary
Modifier and TypeMethodDescriptionaddNewSegment(List<SpacecraftState> states) Injects pre-computed satellite states into this ephemeris file object, returning the generatedOrekitEphemerisFile.OrekitEphemerisSegmentthat has been stored internally.addNewSegment(List<SpacecraftState> states, int interpolationSampleSize) Injects pre-computed satellite states into this ephemeris file object, returning the generatedOrekitEphemerisFile.OrekitEphemerisSegmentthat has been stored internally.addNewSegment(List<SpacecraftState> states, CelestialBody body, int interpolationSampleSize) Injects pre-computed satellite states into this ephemeris file object, returning the generatedOrekitEphemerisFile.OrekitEphemerisSegmentthat has been stored internally.addNewSegment(List<SpacecraftState> states, CelestialBody body, int interpolationSampleSize, TimeScale timeScale) Injects pre-computed satellite states into this ephemeris file object, returning the generatedOrekitEphemerisFile.OrekitEphemerisSegmentthat has been stored internally.getId()Get the satellite ID.doublegetMu()Get the standard gravitational parameter for the satellite.Get the segments of the ephemeris.getStart()Get the start date of the ephemeris.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, waitMethods inherited from interface org.orekit.files.general.EphemerisFile.SatelliteEphemeris
getPropagator, getPropagator
-
Field Details
-
DEFAULT_INTERPOLATION_SIZE
public static final int DEFAULT_INTERPOLATION_SIZEDefines the default interpolation sample size if it is not specified on a segment.- See Also:
-
-
Constructor Details
-
OrekitSatelliteEphemeris
Standard constructor for building the satellite Ephemeris object.- Parameters:
id- the ID of the space object for this data
-
-
Method Details
-
getId
Get the satellite ID. The satellite ID is unique only within the same ephemeris file.- Specified by:
getIdin 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:
getMuin interfaceEphemerisFile.SatelliteEphemeris<TimeStampedPVCoordinates,OrekitEphemerisFile.OrekitEphemerisSegment> - Returns:
- the gravitational parameter used in
EphemerisFile.SatelliteEphemeris.getPropagator(AttitudeProvider), in m³/s².
-
getSegments
Get the segments of the ephemeris.Ephemeris segments are typically used to split an ephemeris around discontinuous events, such as maneuvers.
- Specified by:
getSegmentsin interfaceEphemerisFile.SatelliteEphemeris<TimeStampedPVCoordinates,OrekitEphemerisFile.OrekitEphemerisSegment> - Returns:
- the segments contained in the ephemeris file for this satellite.
-
getStart
Get the start date of the ephemeris.The date returned by this method is equivalent to
getPropagator().getMinDate().- Specified by:
getStartin interfaceEphemerisFile.SatelliteEphemeris<TimeStampedPVCoordinates,OrekitEphemerisFile.OrekitEphemerisSegment> - Returns:
- ephemeris start date.
-
getStop
Get the end date of the ephemeris.The date returned by this method is equivalent to
getPropagator().getMaxDate().- Specified by:
getStopin 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.OrekitEphemerisSegmentthat 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 ofSpacecraftStatethat will comprise this new unit.- Returns:
- the generated
OrekitEphemerisFile.OrekitEphemerisSegment - See Also:
-
addNewSegment
@DefaultDataContext public OrekitEphemerisFile.OrekitEphemerisSegment addNewSegment(List<SpacecraftState> states, int interpolationSampleSize) Injects pre-computed satellite states into this ephemeris file object, returning the generatedOrekitEphemerisFile.OrekitEphemerisSegmentthat has been stored internally. Defaults the Celestial Body to be EarthsThis method uses the
default data context.- Parameters:
states- a list ofSpacecraftStatethat 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
@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.OrekitEphemerisSegmentthat has been stored internally.This method uses the
default data context.- Parameters:
states- a list ofSpacecraftStatethat 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
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.OrekitEphemerisSegmentthat has been stored internally.- Parameters:
states- a list ofSpacecraftStatethat 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
-