public class Opm extends NdmConstituent<Header,Segment<CommonMetadata,OpmData>> implements TimeStamped
Modifier and Type | Field and Description |
---|---|
static String |
FORMAT_VERSION_KEY
Key for format version.
|
static String |
ROOT
Root element for XML files.
|
Constructor and Description |
---|
Opm(Header header,
List<Segment<CommonMetadata,OpmData>> segments,
IERSConventions conventions,
DataContext dataContext,
double mu)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
CartesianOrbit |
generateCartesianOrbit()
Generate a Cartesian orbit.
|
KeplerianOrbit |
generateKeplerianOrbit()
Generate a keplerian orbit.
|
SpacecraftState |
generateSpacecraftState()
Generate spacecraft state from the
CartesianOrbit generated by generateCartesianOrbit. |
OpmData |
getData()
Get the file data.
|
AbsoluteDate |
getDate()
Get the date.
|
Maneuver |
getManeuver(int index)
Get a maneuver.
|
List<Maneuver> |
getManeuvers()
Get a list of all maneuvers.
|
CommonMetadata |
getMetadata()
Get the file metadata.
|
int |
getNbManeuvers()
Get the number of maneuvers present in the OPM.
|
TimeStampedPVCoordinates |
getPVCoordinates()
Get the position/velocity coordinates contained in the OPM.
|
boolean |
hasManeuvers()
check whether the OPM contains at least one maneuver.
|
getConventions, getDataContext, getHeader, getSegments, validate
public static final String ROOT
public static final String FORMAT_VERSION_KEY
public Opm(Header header, List<Segment<CommonMetadata,OpmData>> segments, IERSConventions conventions, DataContext dataContext, double mu)
header
- file headersegments
- file segmentsconventions
- IERS conventionsdataContext
- used for creating frames, time scales, etc.mu
- gravitational coefficient to use for building Cartesian/Keplerian orbitspublic CommonMetadata getMetadata()
public OpmData getData()
public AbsoluteDate getDate()
getDate
in interface TimeStamped
public int getNbManeuvers()
public List<Maneuver> getManeuvers()
public Maneuver getManeuver(int index)
index
- maneuver index, counting from 0public boolean hasManeuvers()
public TimeStampedPVCoordinates getPVCoordinates()
public CartesianOrbit generateCartesianOrbit()
public KeplerianOrbit generateKeplerianOrbit()
public SpacecraftState generateSpacecraftState()
CartesianOrbit
generated by generateCartesianOrbit.Copyright © 2002-2022 CS GROUP. All rights reserved.