Constructor and Description |
---|
ApmData(CommentsContainer commentsBlock,
ApmQuaternion quaternionBlock,
Euler eulerBlock,
SpinStabilized spinStabilizedBlock,
SpacecraftParameters spacecraftParameters)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addManeuver(Maneuver maneuver)
Add a maneuver.
|
List<String> |
getComments()
Get the comments.
|
Euler |
getEulerBlock()
Get the Euler angles logical block.
|
Maneuver |
getManeuver(int index)
Get a maneuver.
|
List<Maneuver> |
getManeuvers()
Get a list of all maneuvers.
|
int |
getNbManeuvers()
Get the number of maneuvers present in the APM.
|
ApmQuaternion |
getQuaternionBlock()
Get the quaternion logical block.
|
SpacecraftParameters |
getSpacecraftParametersBlock()
Get the spacecraft parameters logical block.
|
SpinStabilized |
getSpinStabilizedBlock()
Get the spin-stabilized 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.
|
public ApmData(CommentsContainer commentsBlock, ApmQuaternion quaternionBlock, Euler eulerBlock, SpinStabilized spinStabilizedBlock, SpacecraftParameters spacecraftParameters)
commentsBlock
- general comments blockquaternionBlock
- quaternion logical blockeulerBlock
- Euler angles logicial block (may be null)spinStabilizedBlock
- spin-stabilized logical block (may be null)spacecraftParameters
- spacecraft parameters logical block (may be null)public void validate(double version)
This method should throw an exception if some mandatory entries are missing or not compatible with version number.
public ApmQuaternion getQuaternionBlock()
public Euler getEulerBlock()
public SpinStabilized getSpinStabilizedBlock()
public SpacecraftParameters getSpacecraftParametersBlock()
public int getNbManeuvers()
public List<Maneuver> getManeuvers()
public Maneuver getManeuver(int index)
index
- maneuver index, counting from 0public void addManeuver(Maneuver maneuver)
maneuver
- maneuver to be setpublic boolean hasManeuvers()
Copyright © 2002-2022 CS GROUP. All rights reserved.