Class Inertia
java.lang.Object
org.orekit.files.ccsds.section.CommentsContainer
org.orekit.files.ccsds.ndm.adm.apm.Inertia
- All Implemented Interfaces:
Section
Inertia.
- Since:
- 12.0
- Author:
- Luc Maisonobe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFrame()Get frame in which inertia is specified.Get the inertia matrix.voidsetFrame(FrameFacade frame) Set frame in which inertia is specified.voidsetInertiaMatrixEntry(int j, int k, double entry) Set an entry in the inertia matrix.voidvalidate(double version) Check is all mandatory entries have been initialized.Methods inherited from class org.orekit.files.ccsds.section.CommentsContainer
acceptComments, addComment, checkAllowed, checkNotNaN, checkNotNegative, checkNotNull, getComments, refuseFurtherComments, setComments
-
Constructor Details
-
Inertia
public Inertia()Simple constructor.
-
-
Method Details
-
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.
- Specified by:
validatein interfaceSection- Overrides:
validatein classCommentsContainer- Parameters:
version- format version
-
setFrame
Set frame in which inertia is specified.- Parameters:
frame- frame in which inertia is specified
-
getFrame
Get frame in which inertia is specified.- Returns:
- frame in which inertia is specified
-
getInertiaMatrix
Get the inertia matrix.- Returns:
- the inertia matrix
-
setInertiaMatrixEntry
public void setInertiaMatrixEntry(int j, int k, double entry) Set an entry in the inertia matrix.Both I(j, k) and I(k, j) are set.
- Parameters:
j- row index (must be between 0 and 3 (inclusive)k- column index (must be between 0 and 3 (inclusive)entry- value of the matrix entry
-