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 t) |
public final void updateFrame(AbsoluteDate date)
updateFrame
in interface IPart
date
- datepublic final void updateFrame(Transform t) throws PatriusException
updateFrame
in interface IPart
t
- 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)
getProperty
in interface IPart
propertyType
- the type of the wanted propertypublic final boolean hasProperty(PropertyType propertyType)
hasProperty
in interface IPart
propertyType
- the typepublic final int getPartLevel()
getPartLevel
in interface IPart
public final void addProperty(IPartProperty property)
addProperty
in interface IPart
property
- the propertypublic final Transform getTransform()
Copyright © 2019 CNES. All rights reserved.