public interface MassProvider extends Cloneable
Modifier and Type | Field and Description |
---|---|
static String |
MASS
Default prefix for additional equation from MassProvider.
|
Modifier and Type | Method and Description |
---|---|
void |
addMassDerivative(String partName,
double flowRate)
Add the mass derivate of the given part.
|
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)
Return the mass of the given part.
|
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)
Update the mass of the given part.
|
static final String MASS
double getTotalMass()
double getTotalMass(SpacecraftState state)
getTotalMass()
)state
- spacecraft statedouble getMass(String partName)
partName
- given partvoid updateMass(String partName, double mass) throws PatriusException
partName
- given partmass
- mass of the given partPatriusException
- thrown if the mass becomes negative (PatriusMessages.SPACECRAFT_MASS_BECOMES_NEGATIVE)void setMassDerivativeZero(String partName)
partName
- name of part whose mass derivative is set to zerovoid addMassDerivative(String partName, double flowRate)
partName
- name of part subject to mass variationflowRate
- flow rate of specified partAdditionalEquations getAdditionalEquation(String name)
name
- part nameCopyright © 2017 CNES. All rights reserved.