public class Part extends Object implements IPart
-Class to manage the assembly's part (the main part is excluded).
-Contains the part's local frame and properties.
IPart
Constructor and Description |
---|
Part(String inName,
IPart inParentPart,
Transform inTransform)
Constructor of a part with a transformation.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(IPartProperty property)
Adds a property to the part.
|
UpdatableFrame |
getFrame() |
String |
getName() |
IPart |
getParent() |
int |
getPartLevel() |
IPartProperty |
getProperty(PropertyType propertyType)
Returns a property of the part : if in this part, one exists of the given type.
|
Transform |
getTransform()
Returns the transform linking the part to its parent part.
|
boolean |
hasProperty(PropertyType propertyType)
Checks if a property of the given type exists in this part.
|
void |
updateFrame(AbsoluteDate date)
Update frame at provided date.
|
void |
updateFrame(Transform inTransform) |
public final void updateFrame(AbsoluteDate date)
IPart
updateFrame
in interface IPart
date
- datepublic final void updateFrame(Transform inTransform) throws PatriusException
updateFrame
in interface IPart
inTransform
- new transformation to be applied
Updates the part's frame with a new definition of its Transform.PatriusException
- if update failspublic final String getName()
public final IPart getParent()
public final UpdatableFrame getFrame()
public final IPartProperty getProperty(PropertyType propertyType)
IPart
getProperty
in interface IPart
propertyType
- the type of the wanted propertypublic final boolean hasProperty(PropertyType propertyType)
IPart
hasProperty
in interface IPart
propertyType
- the typepublic final int getPartLevel()
getPartLevel
in interface IPart
public final void addProperty(IPartProperty property)
IPart
addProperty
in interface IPart
property
- the propertypublic final Transform getTransform()
Copyright © 2019 CNES. All Rights Reserved.