public class MobilePart extends AbstractPart
Constructor and Description |
---|
MobilePart(String name,
IPart parentPart,
TransformStateProvider transformProvider)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
UpdatableFrame |
getFrame() |
TransformStateProvider |
getTransformProvider()
Returns the transform linking the part to its parent part.
|
void |
updateFrame(AbsoluteDate date)
Update frame at provided date.
|
void |
updateFrame(SpacecraftState s)
Update frame with provided spacecraft state.
|
void |
updateFrame(Transform t) |
addProperty, getName, getParent, getPartLevel, getProperty, hasProperty
public MobilePart(String name, IPart parentPart, TransformStateProvider transformProvider)
name
- the name of the partparentPart
- the parent parttransformProvider
- transformation between the part's frame and the parent's onepublic final void updateFrame(AbsoluteDate date)
date
- datepublic final void updateFrame(Transform t) throws PatriusException
t
- new transformation to be applied
Updates the part's frame with a new definition of its Transform.PatriusException
- if update failspublic final void updateFrame(SpacecraftState s) throws PatriusException
s
- spacecraft statePatriusException
- thrown if update failspublic final UpdatableFrame getFrame()
public final TransformStateProvider getTransformProvider()
Copyright © 2023 CNES. All rights reserved.