public class APMParser extends ADMParser
Constructor and Description |
---|
APMParser()
Simple constructor.
|
APMParser(DataContext dataContext)
Constructor with data context.
|
Modifier and Type | Method and Description |
---|---|
APMFile |
parse(InputStream stream)
Parse a CCSDS Attitude Data Message.
|
APMFile |
parse(InputStream stream,
String fileName)
Parse a CCSDS Attitude Data Message.
|
APMFile |
parse(String fileName)
Parse a CCSDS Attitude Data Message.
|
APMParser |
withConventions(IERSConventions newConventions)
Set IERS conventions.
|
APMParser |
withDataContext(DataContext dataContext)
Set the data context.
|
APMParser |
withInternationalDesignator(int newLaunchYear,
int newLaunchNumber,
String newLaunchPiece)
Set international designator.
|
APMParser |
withMissionReferenceDate(AbsoluteDate newMissionReferenceDate)
Set initial date.
|
APMParser |
withMu(double newMu)
Set gravitational coefficient.
|
APMParser |
withSimpleEOP(boolean newSimpleEOP)
Set EOP interpolation method.
|
getConventions, getDataContext, getLaunchNumber, getLaunchPiece, getLaunchYear, getMissionReferenceDate, getMu, isSimpleEOP, parseComment, parseDate, parseGeneralStateDataEntry, parseHeaderEntry, parseMetaDataEntry, toRadians
@DefaultDataContext public APMParser()
This class is immutable, and hence thread safe. When parts
must be changed, such as reference date for Mission Elapsed Time or
Mission Relative Time time systems, or the gravitational coefficient or
the IERS conventions, the various withXxx
methods must be called,
which create a new immutable instance with the new parameters. This
is a combination of the
builder design
pattern and a
fluent
interface.
The initial date for Mission Elapsed Time and Mission Relative Time time systems is not set here.
If such time systems are used, it must be initialized before parsing by calling withMissionReferenceDate(AbsoluteDate)
.
This method uses the default data context
. See
withDataContext(DataContext)
.
public APMParser(DataContext dataContext)
This class is immutable, and hence thread safe. When parts
must be changed, such as reference date for Mission Elapsed Time or
Mission Relative Time time systems, or the gravitational coefficient or
the IERS conventions, the various withXxx
methods must be called,
which create a new immutable instance with the new parameters. This
is a combination of the
builder design
pattern and a
fluent
interface.
The initial date for Mission Elapsed Time and Mission Relative Time time systems is not set here.
If such time systems are used, it must be initialized before parsing by calling withMissionReferenceDate(AbsoluteDate)
.
dataContext
- used by the parser.APMParser()
,
withDataContext(DataContext)
public APMParser withMissionReferenceDate(AbsoluteDate newMissionReferenceDate)
withMissionReferenceDate
in class ADMParser
newMissionReferenceDate
- mission reference date to use while parsingADMParser.getMissionReferenceDate()
public APMParser withMu(double newMu)
withMu
in class ADMParser
newMu
- gravitational coefficient to use while parsingADMParser.getMu()
public APMParser withConventions(IERSConventions newConventions)
withConventions
in class ADMParser
newConventions
- IERS conventions to use while parsingADMParser.getConventions()
public APMParser withSimpleEOP(boolean newSimpleEOP)
withSimpleEOP
in class ADMParser
newSimpleEOP
- if true, tidal effects are ignored when interpolating EOPADMParser.isSimpleEOP()
public APMParser withInternationalDesignator(int newLaunchYear, int newLaunchNumber, String newLaunchPiece)
This method may be used to ensure the launch year number and pieces are correctly set if they are not present in the CCSDS file header in the OBJECT_ID in the form YYYY-NNN-P{PP}. If they are already in the header, they will be parsed automatically regardless of this method being called or not (i.e. header information override information set here).
withInternationalDesignator
in class ADMParser
newLaunchYear
- launch yearnewLaunchNumber
- launch numbernewLaunchPiece
- piece of launch (from "A" to "ZZZ")public APMParser withDataContext(DataContext dataContext)
withDataContext
in class ADMParser
dataContext
- used for frames, time scales, and celestial bodies.public APMFile parse(InputStream stream)
public APMFile parse(InputStream stream, String fileName)
Copyright © 2002-2020 CS GROUP. All rights reserved.