Class OpmData
- java.lang.Object
-
- org.orekit.files.ccsds.ndm.odm.opm.OpmData
-
-
Constructor Summary
Constructors Constructor Description OpmData(StateVector stateVectorBlock, KeplerianElements keplerianElementsBlock, SpacecraftParameters spacecraftParametersBlock, CartesianCovariance covarianceBlock, List<Maneuver> maneuverBlocks, UserDefined userDefinedBlock, double mass)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CartesianCovariance
getCovarianceBlock()
Get the covariance matrix logical block.KeplerianElements
getKeplerianElementsBlock()
Get the Keplerian elements logical block.Maneuver
getManeuver(int index)
Get a maneuver.List<Maneuver>
getManeuvers()
Get a list of all maneuvers.double
getMass()
Get the mass.int
getNbManeuvers()
Get the number of maneuvers present in the APM.SpacecraftParameters
getSpacecraftParametersBlock()
Get the spacecraft parameters logical block.StateVector
getStateVectorBlock()
Get the state vector logical block.UserDefined
getUserDefinedBlock()
Get the user defined parameters logical block.boolean
hasManeuvers()
Get boolean testing whether the APM contains at least one maneuver.void
validate(double version)
Check is all mandatory entries have been initialized.
-
-
-
Constructor Detail
-
OpmData
public OpmData(StateVector stateVectorBlock, KeplerianElements keplerianElementsBlock, SpacecraftParameters spacecraftParametersBlock, CartesianCovariance covarianceBlock, List<Maneuver> maneuverBlocks, UserDefined userDefinedBlock, double mass)
Simple constructor.- Parameters:
stateVectorBlock
- state vector logical blockkeplerianElementsBlock
- Keplerian elements logical block (may be null)spacecraftParametersBlock
- spacecraft parameters logical block (may be null)covarianceBlock
- covariance matrix logical block (may be null)maneuverBlocks
- maneuvers block listuserDefinedBlock
- user-defined logical blockmass
- mass (always defined, even if there is nospacecraftParameters
block
-
-
Method Detail
-
validate
public void validate(double version)
Check is all mandatory entries have been initialized.This method should throw an exception if some mandatory entries are missing or not compatible with version number.
-
getStateVectorBlock
public StateVector getStateVectorBlock()
Get the state vector logical block.- Returns:
- state vector block
-
getKeplerianElementsBlock
public KeplerianElements getKeplerianElementsBlock()
Get the Keplerian elements logical block.- Returns:
- Keplerian elements block (may be null)
-
getSpacecraftParametersBlock
public SpacecraftParameters getSpacecraftParametersBlock()
Get the spacecraft parameters logical block.- Returns:
- spacecraft parameters block (may be null)
-
getCovarianceBlock
public CartesianCovariance getCovarianceBlock()
Get the covariance matrix logical block.- Returns:
- covariance matrix block (may be null)
-
getMass
public double getMass()
Get the mass.- Returns:
- mass
-
getNbManeuvers
public int getNbManeuvers()
Get the number of maneuvers present in the APM.- Returns:
- the number of maneuvers
-
getManeuvers
public List<Maneuver> getManeuvers()
Get a list of all maneuvers.- Returns:
- unmodifiable list of all maneuvers.
-
getManeuver
public Maneuver getManeuver(int index)
Get a maneuver.- Parameters:
index
- maneuver index, counting from 0- Returns:
- maneuver
-
hasManeuvers
public boolean hasManeuvers()
Get boolean testing whether the APM contains at least one maneuver.- Returns:
- true if APM contains at least one maneuver false otherwise
-
getUserDefinedBlock
public UserDefined getUserDefinedBlock()
Get the user defined parameters logical block.- Returns:
- user defined parameters block (may be null)
-
-