public final class TankProperty extends Parameterizable implements IPartProperty
Warning: a part should either have a MassProperty or a TankProperty, never both
Constructor and Description |
---|
TankProperty(double massIn)
Constructor.
|
TankProperty(TankProperty tankPropertyIn)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
getMass()
Getter for the mass.
|
MassProperty |
getMassProperty()
Getter for the underlying mass property.
|
String |
getPartName()
Getter for the part name owning the property.
|
PropertyType |
getType()
Get the type of the property.
|
void |
setPartName(String nameIn)
Setter for the part name owning the property.
|
String |
toString() |
addParameter, getParameters, supportsParameter
public TankProperty(double massIn) throws PatriusException
massIn
- massPatriusException
- thrown if mass is negativepublic TankProperty(TankProperty tankPropertyIn)
tankPropertyIn
- tank propertypublic void setPartName(String nameIn)
nameIn
- the part name owning the propertypublic String getPartName()
public double getMass()
public MassProperty getMassProperty()
public PropertyType getType()
getType
in interface IPartProperty
Copyright © 2021 CNES. All rights reserved.