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)
IPartupdateFrame in interface IPartdate - datepublic final void updateFrame(Transform inTransform) throws PatriusException
updateFrame in interface IPartinTransform - 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)
IPartgetProperty in interface IPartpropertyType - the type of the wanted propertypublic final boolean hasProperty(PropertyType propertyType)
IParthasProperty in interface IPartpropertyType - the typepublic final int getPartLevel()
getPartLevel in interface IPartpublic final void addProperty(IPartProperty property)
IPartaddProperty in interface IPartproperty - the propertypublic final Transform getTransform()
Copyright © 2017 CNES. All rights reserved.