public class SimpleMassModel extends Object implements MassProvider
MassProvider. The mass DOESNT vary!MASS| Constructor and Description |
|---|
SimpleMassModel()
Empty constructor for
Externalizable use. |
SimpleMassModel(double mass,
String name)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMassDerivative(String partName,
double flowRate)
This model represents one part only.
|
AdditionalEquations |
getAdditionalEquation(String name)
Get the mass equation related to the part.
|
List<String> |
getAllPartsNames()
Get the list of the name of the parts.
|
double |
getMass(String partName)
This model represents one part only.
|
double |
getTotalMass()
Return the mass of the spacecraft.
|
double |
getTotalMass(SpacecraftState state)
Return the mass of the spacecraft following the order.
|
void |
setMassDerivativeZero(String partName)
Set mass derivative to zero.
|
void |
updateMass(String partName,
double mass)
This model represents one part only.
|
public SimpleMassModel()
Externalizable use.public SimpleMassModel(double mass,
String name)
mass - mass of spacecraftname - mass model namepublic double getTotalMass()
getTotalMass in interface MassProviderpublic double getTotalMass(SpacecraftState state)
MassProvider.getTotalMass())getTotalMass in interface MassProviderstate - spacecraft statepublic double getMass(String partName)
getMass in interface MassProviderpartName - given partpublic void updateMass(String partName, double mass)
updateMass in interface MassProviderpartName - given partmass - mass of the given partpublic void addMassDerivative(String partName, double flowRate)
addMassDerivative in interface MassProviderpartName - name of part subject to mass variationflowRate - flow rate of specified partpublic void setMassDerivativeZero(String partName)
setMassDerivativeZero in interface MassProviderpartName - name of part whose mass derivative is set to zeropublic AdditionalEquations getAdditionalEquation(String name)
getAdditionalEquation in interface MassProvidername - part namepublic List<String> getAllPartsNames()
getAllPartsNames in interface MassProviderCopyright © 2025 CNES. All rights reserved.