fr.cnes.sirius.patrius.assembly
Interface IPart

All Known Implementing Classes:
MainPart, Part

public interface IPart

-Interface for the assembly's parts.

Since:
1.1 HISTORY VERSION::FA:231:03/04/2014:bad updating of the assembly's tree of frames END-HISTORY
Version:
$Id: IPart.java 17587 2017-05-10 13:31:11Z bignon $
Author:
Thomas Trapier
See Also:
Part, MainPart

Method Summary
 void addProperty(IPartProperty property)
          Adds a property to the part.
 Frame 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)
           
 

Method Detail

getName

String getName()
Returns:
the name of the part

getParent

IPart getParent()
Returns:
the parent part

getFrame

Frame getFrame()
Returns:
the associated frame

getProperty

IPartProperty getProperty(PropertyType propertyType)
Returns a property of the part : if in this part, one exists of the given type.

Parameters:
propertyType - the type of the wanted property
Returns:
the property

addProperty

void addProperty(IPartProperty property)
Adds a property to the part.

Parameters:
property - the property

hasProperty

boolean hasProperty(PropertyType propertyType)
Checks if a property of the given type exists in this part.

Parameters:
propertyType - the type
Returns:
true if the property exists

getPartLevel

int getPartLevel()
Returns:
the level of the part in the tree

updateFrame

void updateFrame(Transform inTransform)
                 throws OrekitException
Parameters:
inTransform - new transformation to be applied Updates the part's frame with a new definition of its Transform.
Throws:
OrekitException - if update fails

reinitializeFrame

void reinitializeFrame()
Reinitialize the part's frame with the same Transform. This method is ONLY USED WHEN INITIALIZING the main part's frame.



Copyright © 2017 CNES. All Rights Reserved.