fr.cnes.sirius.patrius.assembly.properties
Class InertiaSimpleProperty

java.lang.Object
  extended by fr.cnes.sirius.patrius.assembly.properties.AbstractInertiaProperty
      extended by fr.cnes.sirius.patrius.assembly.properties.InertiaSimpleProperty
All Implemented Interfaces:
IPartProperty, IInertiaProperty

public class InertiaSimpleProperty
extends AbstractInertiaProperty

This class is a simple inertia property that can be added to a part. The mass center and inertia matrix are simply given by the user in the constructor. They also can be set later.

Since:
1.2
Version:
$Id: InertiaSimpleProperty.java 9374 2013-09-25 09:14:24Z houdroge $
Author:
Thomas Trapier
See Also:
IInertiaProperty
Concurrency :
not thread-safe
Concurrency comment :
the use of frames makes this class not thread-safe

Constructor Summary
InertiaSimpleProperty(Vector3D massCenter, Matrix3D inertiaMatrix, MassProperty mass)
          Constructor for the simple inertia property
InertiaSimpleProperty(Vector3D massCenter, Matrix3D inertiaMatrix, Vector3D inertiaReferencePoint, MassProperty mass)
          Constructor for the simple inertia property; the inertia matrix is expressed with respect to a point that can be different from the mass center.
 
Method Summary
 void setInertiaMatrix(Matrix3D inertiaMatrix)
          Sets the inertia matrix at the mass center of the part.
 void setMassCenter(Vector3D massCenter)
          Sets the mass center.
 
Methods inherited from class fr.cnes.sirius.patrius.assembly.properties.AbstractInertiaProperty
getInertiaMatrix, getMass, getMassCenter, getMassProperty, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InertiaSimpleProperty

public InertiaSimpleProperty(Vector3D massCenter,
                             Matrix3D inertiaMatrix,
                             MassProperty mass)
Constructor for the simple inertia property

Parameters:
massCenter - the mass center
inertiaMatrix - the inertia matrix expressed at the mass center of the part.
mass - the mass property associated to this part

InertiaSimpleProperty

public InertiaSimpleProperty(Vector3D massCenter,
                             Matrix3D inertiaMatrix,
                             Vector3D inertiaReferencePoint,
                             MassProperty mass)
Constructor for the simple inertia property; the inertia matrix is expressed with respect to a point that can be different from the mass center.

Parameters:
massCenter - the mass center
inertiaMatrix - the inertia matrix of the part.
inertiaReferencePoint - the point with respect to the inertia matrix is expressed (in the part frame)
mass - the mass property associated to this part
Method Detail

setMassCenter

public void setMassCenter(Vector3D massCenter)
Sets the mass center.

Overrides:
setMassCenter in class AbstractInertiaProperty
Parameters:
massCenter - the new mass center

setInertiaMatrix

public void setInertiaMatrix(Matrix3D inertiaMatrix)
Sets the inertia matrix at the mass center of the part.

Overrides:
setInertiaMatrix in class AbstractInertiaProperty
Parameters:
inertiaMatrix - the new inetria matrix


Copyright © 2016 CNES. All Rights Reserved.