Package org.orekit.files.general
Class OrekitEphemerisFile.OrekitSatelliteEphemeris
- java.lang.Object
-
- org.orekit.files.general.OrekitEphemerisFile.OrekitSatelliteEphemeris
-
- All Implemented Interfaces:
EphemerisFile.SatelliteEphemeris
- Enclosing class:
- OrekitEphemerisFile
public static class OrekitEphemerisFile.OrekitSatelliteEphemeris extends Object implements EphemerisFile.SatelliteEphemeris
Inner class ofOrekitEphemerisFilethat defines theOrekitEphemerisFile.OrekitSatelliteEphemeriscorresponding object for this ephemeris type.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_INTERPOLATION_SIZEDefines 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.OrekitEphemerisSegmentaddNewSegment(List<SpacecraftState> states)Injects pre-computed satellite states into this ephemeris file object, returning the generatedOrekitEphemerisFile.OrekitEphemerisSegmentthat has been stored internally.OrekitEphemerisFile.OrekitEphemerisSegmentaddNewSegment(List<SpacecraftState> states, int interpolationSampleSize)Injects pre-computed satellite states into this ephemeris file object, returning the generatedOrekitEphemerisFile.OrekitEphemerisSegmentthat has been stored internally.OrekitEphemerisFile.OrekitEphemerisSegmentaddNewSegment(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.StringgetId()Get the satellite ID.doublegetMu()Get the standard gravitational parameter for the satellite.List<? extends EphemerisFile.EphemerisSegment>getSegments()Get the segments of the ephemeris.AbsoluteDategetStart()Get the start date of the ephemeris.AbsoluteDategetStop()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
-
-
-
-
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()
Description copied from interface:EphemerisFile.SatelliteEphemerisGet the satellite ID. The satellite ID is unique only within the same ephemeris file.- Specified by:
getIdin interfaceEphemerisFile.SatelliteEphemeris- Returns:
- the satellite's ID, never
null.
-
getMu
public double getMu()
Description copied from interface:EphemerisFile.SatelliteEphemerisGet the standard gravitational parameter for the satellite.- Specified by:
getMuin interfaceEphemerisFile.SatelliteEphemeris- Returns:
- the gravitational parameter use in
EphemerisFile.SatelliteEphemeris.getPropagator(), in m^3 / s^2.
-
getSegments
public List<? extends EphemerisFile.EphemerisSegment> getSegments()
Description copied from interface:EphemerisFile.SatelliteEphemerisGet 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- Returns:
- the segments contained in the ephemeris file for this satellite.
-
getStart
public AbsoluteDate getStart()
Description copied from interface:EphemerisFile.SatelliteEphemerisGet the start date of the ephemeris.The date returned by this method is equivalent to
getPropagator().getMinDate().- Specified by:
getStartin interfaceEphemerisFile.SatelliteEphemeris- Returns:
- ephemeris start date.
-
getStop
public AbsoluteDate getStop()
Description copied from interface:EphemerisFile.SatelliteEphemerisGet the end date of the ephemeris.The date returned by this method is equivalent to
getPropagator().getMaxDate().- Specified by:
getStopin interfaceEphemerisFile.SatelliteEphemeris- Returns:
- ephemeris end date.
-
addNewSegment
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.- Parameters:
states- a list ofSpacecraftStatethat will comprise this new unit.- Returns:
- the generated
OrekitEphemerisFile.OrekitEphemerisSegment
-
addNewSegment
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 Earths- 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
-
addNewSegment
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.- 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
-
-