|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MassProvider
Interface for spacecraft models that provide the mass.
Field Summary | |
---|---|
static String |
MASS
Default prefix for additional equation from MassProvider. |
Method Summary | |
---|---|
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. |
Field Detail |
---|
static final String MASS
Method Detail |
---|
double getTotalMass()
double getTotalMass(SpacecraftState state)
getTotalMass()
)
state
- spacecraft state
double getMass(String partName)
partName
- given part
void updateMass(String partName, double mass) throws OrekitException
partName
- given partmass
- mass of the given part
OrekitException
- thrown if the mass becomes negative (OrekitMessages.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 name
List<String> getAllPartsNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |