public final class MassProperty extends Parameterizable implements IPartProperty
Constructor and Description |
---|
MassProperty(double inMass)
Constructor of this property.
|
MassProperty(Parameter inMass)
Constructor of this property using a
Parameter . |
Modifier and Type | Method and Description |
---|---|
double |
getMass()
Gets the mass of the part.
|
PropertyType |
getType()
Get the type of the property.
|
void |
updateMass(double newMass)
Updates the mass of the part.
|
addParameter, getParameters, supportsParameter
public MassProperty(double inMass) throws PatriusException
inMass
- The mass of the part.PatriusException
- if inMass is negative (PatriusMessages.MASS_ARGUMENT_IS_NEGATIVE)public MassProperty(Parameter inMass) throws PatriusException
Parameter
.inMass
- The mass of the part.PatriusException
- if inMass is negative (PatriusMessages.MASS_ARGUMENT_IS_NEGATIVE)public double getMass()
public void updateMass(double newMass) throws PatriusException
newMass
- the massPatriusException
- if newMass is negative (PatriusMessages.MASS_ARGUMENT_IS_NEGATIVE)public PropertyType getType()
getType
in interface IPartProperty
Copyright © 2019 CNES. All rights reserved.