Class Apm
- java.lang.Object
-
- org.orekit.files.ccsds.ndm.NdmConstituent<AdmHeader,Segment<AdmMetadata,ApmData>>
-
- org.orekit.files.ccsds.ndm.adm.apm.Apm
-
public class Apm extends NdmConstituent<AdmHeader,Segment<AdmMetadata,ApmData>>
This class stores all the information of the Attitude Parameter Message (APM) File parsed by APMParser. It contains the header and the metadata and a the data lines.- Since:
- 10.2
- Author:
- Bryan Cazabonne
-
-
Field Summary
Fields Modifier and Type Field Description static String
FORMAT_VERSION_KEY
Key for format version.static String
ROOT
Root element for XML files.
-
Constructor Summary
Constructors Constructor Description Apm(AdmHeader header, List<Segment<AdmMetadata,ApmData>> segments, IERSConventions conventions, DataContext dataContext)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attitude
getAttitude(Frame frame, PVCoordinatesProvider pvProvider)
Get the attitude.ApmData
getData()
Get the file data.AdmMetadata
getMetadata()
Get the file metadata.-
Methods inherited from class org.orekit.files.ccsds.ndm.NdmConstituent
getConventions, getDataContext, getHeader, getSegments, setHeader, setSegments, validate
-
-
-
-
Field Detail
-
ROOT
public static final String ROOT
Root element for XML files.- See Also:
- Constant Field Values
-
FORMAT_VERSION_KEY
public static final String FORMAT_VERSION_KEY
Key for format version.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Apm
public Apm(AdmHeader header, List<Segment<AdmMetadata,ApmData>> segments, IERSConventions conventions, DataContext dataContext)
Simple constructor.- Parameters:
header
- file headersegments
- file segmentsconventions
- IERS conventionsdataContext
- used for creating frames, time scales, etc.
-
-
Method Detail
-
getMetadata
public AdmMetadata getMetadata()
Get the file metadata.- Returns:
- file metadata
-
getData
public ApmData getData()
Get the file data.- Returns:
- file data
-
getAttitude
public Attitude getAttitude(Frame frame, PVCoordinatesProvider pvProvider)
Get the attitude.- Parameters:
frame
- reference frame with respect to which attitude must be defined, (may be null if attitude is not orbit-relative and one wants attitude in the same frame as used in the attitude message)pvProvider
- provider for spacecraft position and velocity (may be null if attitude is not orbit-relative)- Returns:
- attitude
-
-