Class ApmData
- java.lang.Object
-
- org.orekit.files.ccsds.ndm.adm.apm.ApmData
-
-
Constructor Summary
Constructors Constructor Description ApmData(CommentsContainer commentsBlock, AbsoluteDate epoch, ApmQuaternion quaternionBlock, Euler eulerBlock, AngularVelocity angularVelocityBlock, SpinStabilized spinStabilizedBlock, Inertia inertia)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addManeuver(Maneuver maneuver)
Add a maneuver.AngularVelocity
getAngularVelocityBlock()
Get the angular velocity logical block.Attitude
getAttitude(Frame frame, PVCoordinatesProvider pvProvider)
Get the attitude.List<String>
getComments()
Get the comments.AbsoluteDate
getEpoch()
Get the epoch of the data.Euler
getEulerBlock()
Get the Euler angles logical block.Inertia
getInertiaBlock()
Get the inertia 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.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.
-
-
-
Constructor Detail
-
ApmData
public ApmData(CommentsContainer commentsBlock, AbsoluteDate epoch, ApmQuaternion quaternionBlock, Euler eulerBlock, AngularVelocity angularVelocityBlock, SpinStabilized spinStabilizedBlock, Inertia inertia)
Simple constructor.- Parameters:
commentsBlock
- general comments blockepoch
- epoch of the dataquaternionBlock
- quaternion logical block (may be null in ADM V2 or later)eulerBlock
- Euler angles logicial block (may be null)angularVelocityBlock
- angular velocity block (may be null)spinStabilizedBlock
- spin-stabilized logical block (may be null)inertia
- inertia logical block (may be null)
-
-
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.
-
getEpoch
public AbsoluteDate getEpoch()
Get the epoch of the data.- Returns:
- epoch the epoch
- Since:
- 12.0
-
getQuaternionBlock
public ApmQuaternion getQuaternionBlock()
Get the quaternion logical block.- Returns:
- quaternion block
-
getEulerBlock
public Euler getEulerBlock()
Get the Euler angles logical block.- Returns:
- Euler angles block (may be null)
-
getAngularVelocityBlock
public AngularVelocity getAngularVelocityBlock()
Get the angular velocity logical block.- Returns:
- angular velocity block (may be null)
- Since:
- 12.0
-
getSpinStabilizedBlock
public SpinStabilized getSpinStabilizedBlock()
Get the spin-stabilized logical block.- Returns:
- spin-stabilized block (may be null)
-
getInertiaBlock
public Inertia getInertiaBlock()
Get the inertia logical block.- Returns:
- inertia block (may be null)
-
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
-
addManeuver
public void addManeuver(Maneuver maneuver)
Add a maneuver.- Parameters:
maneuver
- maneuver to be set
-
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
-
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
- Since:
- 12.0
-
-