|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.cnes.sirius.patrius.assembly.Part
public class Part
-Class to manage the assembly's part (the main part is excluded).
-Contains the part's local frame and properties.
IPart
Constructor Summary | |
---|---|
Part(String inName,
IPart inParentPart,
Transform inTransform)
Constructor of a part with a transformation. |
Method Summary | |
---|---|
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. |
boolean |
hasProperty(PropertyType propertyType)
Checks if a property of the given type exists in this part. |
void |
reinitializeFrame()
Reinitialize the part's frame with the same Transform. |
void |
updateFrame(Transform inTransform)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Part(String inName, IPart inParentPart, Transform inTransform)
inName
- the name of the partinParentPart
- the parent partinTransform
- transformation between the part's frame and the parent's oneMethod Detail |
---|
public final void reinitializeFrame()
IPart
reinitializeFrame
in interface IPart
public final void updateFrame(Transform inTransform) throws OrekitException
updateFrame
in interface IPart
inTransform
- new transformation to be applied
Updates the part's frame with a new definition of its Transform.
OrekitException
- if update failspublic final String getName()
getName
in interface IPart
public final IPart getParent()
getParent
in interface IPart
public final UpdatableFrame getFrame()
getFrame
in interface IPart
public final IPartProperty getProperty(PropertyType propertyType)
IPart
getProperty
in interface IPart
propertyType
- the type of the wanted property
public final boolean hasProperty(PropertyType propertyType)
IPart
hasProperty
in interface IPart
propertyType
- the type
public final int getPartLevel()
getPartLevel
in interface IPart
public final void addProperty(IPartProperty property)
IPart
addProperty
in interface IPart
property
- the property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |