public class ParserBuilder extends AbstractBuilder<ParserBuilder>
CCSDS Message
files parsers.
This builder can be used for building all CCSDS Messages parsers types. It is particularly useful in multi-threaded context as parsers cannot be shared between threads and thus several independent parsers must be built in this case.
Constructor and Description |
---|
ParserBuilder()
Simple constructor.
|
ParserBuilder(DataContext dataContext)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
AemParser |
buildAemParser()
Build a parser for
Attitude Ephemeris Messages . |
ApmParser |
buildApmParser()
Build a parser for
Attitude Parameters Messages . |
NdmParser |
buildNdmParser()
Build a parser for
Navigation Data Messages . |
OcmParser |
buildOcmParser()
Build a parser for
Orbit Comprehensive Messages . |
OemParser |
buildOemParser()
Build a parser for
Orbit Ephemeris Messages . |
OmmParser |
buildOmmParser()
Build a parser for
Orbit Mean elements Messages . |
OpmParser |
buildOpmParser()
Build a parser for
Orbit Parameters Messages . |
TdmParser |
buildTdmParser()
Build a parser for
Tracking Data Messages . |
protected ParserBuilder |
create(IERSConventions newConventions,
DataContext newDataContext,
AbsoluteDate newMissionReferenceDate,
RangeUnitsConverter newRangeUnitsConverter)
Build an instance.
|
int |
getDefaultInterpolationDegree()
Get the default interpolation degree.
|
double |
getDefaultMass()
Get the default mass.
|
double |
getMu()
Get the gravitational coefficient.
|
ParsedUnitsBehavior |
getParsedUnitsBehavior()
Get the behavior to adopt for handling parsed units.
|
boolean |
isSimpleEOP()
Check if tidal effects are ignored when interpolating EOP.
|
ParserBuilder |
withDefaultInterpolationDegree(int newDefaultInterpolationDegree)
Set up the default interpolation degree.
|
ParserBuilder |
withDefaultMass(double newDefaultMass)
Set up the default mass.
|
ParserBuilder |
withMu(double newMu)
Set up the gravitational coefficient.
|
ParserBuilder |
withParsedUnitsBehavior(ParsedUnitsBehavior newParsedUnitsBehavior)
Set up the behavior to adopt for handling parsed units.
|
ParserBuilder |
withSimpleEOP(boolean newSimpleEOP)
Set up flag for ignoring tidal effects when interpolating EOP.
|
getConventions, getDataContext, getMissionReferenceDate, getRangeUnitsConverter, withConventions, withDataContext, withMissionReferenceDate, withRangeUnitsConverter
@DefaultDataContext public ParserBuilder()
This constructor creates a builder with
IERS conventions
set to IERSConventions.IERS_2010
simple EOP
set to true
data context
set to default context
mission reference date
set to null
gravitational coefficient
set to Double.NaN
default mass
set to Double.NaN
default interpolation degree
set to 1
parsed unit behavior
set to ParsedUnitsBehavior.CONVERT_COMPATIBLE
converter for range units
set to IdentityConverter
public ParserBuilder(DataContext dataContext)
This constructor creates a builder with
IERS conventions
set to IERSConventions.IERS_2010
simple EOP
set to true
mission reference date
set to null
gravitational coefficient
set to Double.NaN
default mass
set to Double.NaN
default interpolation degree
set to 1
parsed unit behavior
set to ParsedUnitsBehavior.CONVERT_COMPATIBLE
converter for range units
set to IdentityConverter
dataContext
- data context used to retrieve frames, time scales, etc.protected ParserBuilder create(IERSConventions newConventions, DataContext newDataContext, AbsoluteDate newMissionReferenceDate, RangeUnitsConverter newRangeUnitsConverter)
create
in class AbstractBuilder<ParserBuilder>
newConventions
- IERS ConventionsnewDataContext
- used to retrieve frames, time scales, etc.newMissionReferenceDate
- reference date for Mission Elapsed Time or Mission Relative Time time systemsnewRangeUnitsConverter
- converter for Range Units
public ParserBuilder withSimpleEOP(boolean newSimpleEOP)
newSimpleEOP
- true if tidal effects are ignored when interpolating EOPpublic boolean isSimpleEOP()
public ParserBuilder withMu(double newMu)
newMu
- gravitational coefficientpublic double getMu()
public ParserBuilder withDefaultMass(double newDefaultMass)
The default mass is used only by OpmParser
.
newDefaultMass
- default masspublic double getDefaultMass()
public ParserBuilder withDefaultInterpolationDegree(int newDefaultInterpolationDegree)
The default interpolation degree is used only by AemParser
and OemParser
.
newDefaultInterpolationDegree
- default interpolation degreepublic int getDefaultInterpolationDegree()
public ParserBuilder withParsedUnitsBehavior(ParsedUnitsBehavior newParsedUnitsBehavior)
newParsedUnitsBehavior
- behavior to adopt for handling parsed unitspublic ParsedUnitsBehavior getParsedUnitsBehavior()
public NdmParser buildNdmParser()
Navigation Data Messages
.public OpmParser buildOpmParser()
Orbit Parameters Messages
.public OmmParser buildOmmParser()
Orbit Mean elements Messages
.public OemParser buildOemParser()
Orbit Ephemeris Messages
.public OcmParser buildOcmParser()
Orbit Comprehensive Messages
.public ApmParser buildApmParser()
Attitude Parameters Messages
.public AemParser buildAemParser()
Attitude Ephemeris Messages
.public TdmParser buildTdmParser()
Tracking Data Messages
.Copyright © 2002-2021 CS GROUP. All rights reserved.