public class SimpleMassModel extends Object implements MassProvider
MassProvider
. The mass DOESNT vary!MASS
Constructor and Description |
---|
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(double mass, String name)
mass
- mass of spacecraftname
- mass model namepublic double getTotalMass()
getTotalMass
in interface MassProvider
public double getTotalMass(SpacecraftState state)
MassProvider.getTotalMass()
)getTotalMass
in interface MassProvider
state
- spacecraft statepublic double getMass(String partName)
getMass
in interface MassProvider
partName
- given partpublic void updateMass(String partName, double mass)
updateMass
in interface MassProvider
partName
- given partmass
- mass of the given partpublic void addMassDerivative(String partName, double flowRate)
addMassDerivative
in interface MassProvider
partName
- name of part subject to mass variationflowRate
- flow rate of specified partpublic void setMassDerivativeZero(String partName)
setMassDerivativeZero
in interface MassProvider
partName
- name of part whose mass derivative is set to zeropublic AdditionalEquations getAdditionalEquation(String name)
getAdditionalEquation
in interface MassProvider
name
- part namepublic List<String> getAllPartsNames()
getAllPartsNames
in interface MassProvider
Copyright © 2018 CNES. All Rights Reserved.