public class MainPart extends Object implements IPart
-Contains the assembly's main frame and the main part's properties.
IPart
Constructor and Description |
---|
MainPart(String inName)
Constructor of the main part.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(IPartProperty property)
Adds a property to the part.
|
Frame |
getFrame() |
String |
getName() |
IPart |
getParent()
Returns null : this part has no parent.
|
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.
|
boolean |
isLinkedToOrekitTree() |
void |
setFrame(UpdatableFrame inFrame)
Method to modify the frame of the main part.
|
void |
updateFrame(AbsoluteDate date)
This method implements no action for the main part.
|
void |
updateFrame(Transform inTransform) |
public MainPart(String inName)
inName
- the name of the main partpublic final String getName()
public final IPart getParent()
public final Frame getFrame()
public final IPartProperty getProperty(PropertyType propertyType)
IPart
getProperty
in interface IPart
propertyType
- the type of the wanted propertypublic final void addProperty(IPartProperty property)
IPart
addProperty
in interface IPart
property
- the propertypublic final boolean hasProperty(PropertyType propertyType)
IPart
hasProperty
in interface IPart
propertyType
- the typepublic final int getPartLevel()
getPartLevel
in interface IPart
public void updateFrame(AbsoluteDate date)
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 void setFrame(UpdatableFrame inFrame)
inFrame
- the new frame of the main partpublic final boolean isLinkedToOrekitTree()
Copyright © 2017 CNES. All rights reserved.