org.orekit.propagation
Class SimpleMassModel

java.lang.Object
  extended by org.orekit.propagation.SimpleMassModel
All Implemented Interfaces:
Cloneable, MassProvider

public class SimpleMassModel
extends Object
implements MassProvider

Simple implementation of MassProvider. The mass DOESNT vary!

Since:
2.1
Version:
$Id: SimpleMassModel.java 16589 2016-09-12 15:38:39Z bignon $
Author:
Rami Houdroge
Concurrency :
immutable

Field Summary
 
Fields inherited from interface org.orekit.propagation.MassProvider
MASS
 
Constructor Summary
SimpleMassModel(double mass, String name)
          Constructor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMassModel

public SimpleMassModel(double mass,
                       String name)
Constructor. Simple variable mass model.
The mass model name specified here is the name to be used with the constructors of the thrust maneuvers.

Parameters:
mass - mass of spacecraft
name - mass model name
Method Detail

getTotalMass

public double getTotalMass()
Return the mass of the spacecraft.

Specified by:
getTotalMass in interface MassProvider
Returns:
spacecraft mass

getTotalMass

public double getTotalMass(SpacecraftState state)
Return the mass of the spacecraft following the order.

Specified by:
getTotalMass in interface MassProvider
Parameters:
state - spacecraft state
Returns:
spacecraft mass

getMass

public double getMass(String partName)
This model represents one part only. The expected partName is the name of the model given at construction time. Return the mass of the given part.

Specified by:
getMass in interface MassProvider
Parameters:
partName - given part
Returns:
mass of part

updateMass

public void updateMass(String partName,
                       double mass)
This model represents one part only. The expected partName is the name of the model given at construction time. Update the mass of the given part.

Specified by:
updateMass in interface MassProvider
Parameters:
partName - given part
mass - mass of the given part

addMassDerivative

public void addMassDerivative(String partName,
                              double flowRate)
This model represents one part only. The expected partName is the name of the model given at construction time. Add the mass derivate of the given part.

Specified by:
addMassDerivative in interface MassProvider
Parameters:
partName - name of part subject to mass variation
flowRate - flow rate of specified part

setMassDerivativeZero

public void setMassDerivativeZero(String partName)
Set mass derivative to zero.

Specified by:
setMassDerivativeZero in interface MassProvider
Parameters:
partName - name of part whose mass derivative is set to zero

getAdditionalEquation

public AdditionalEquations getAdditionalEquation(String name)
Get the mass equation related to the part.

Specified by:
getAdditionalEquation in interface MassProvider
Parameters:
name - part name
Returns:
the associated mass equation

getAllPartsNames

public List<String> getAllPartsNames()
Get the list of the name of the parts.

Specified by:
getAllPartsNames in interface MassProvider
Returns:
the list of the spacecraft parts name.


Copyright © 2016 CNES. All Rights Reserved.