Class RegisteredPropellant
java.lang.Object
com.github.jbgust.jsrm.application.RegisteredPropellant
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SolidPropellantgetSolidPropellant(int propellantId) Return the propellantstatic IntegerregisterPropellant(SolidPropellant solidPropellant) Use to register custom propellant, if the propellant is already registered the function return it's ID
-
Constructor Details
-
RegisteredPropellant
public RegisteredPropellant()
-
-
Method Details
-
registerPropellant
Use to register custom propellant, if the propellant is already registered the function return it's ID- Parameters:
solidPropellant- the propellant you want to register for usage in calculation- Returns:
- the id of the propellant (used by RegisteredPropellant.getSolidPropellant())
-
getSolidPropellant
Return the propellant- Parameters:
propellantId- the id of the propellant- Returns:
- the propellant
- Throws:
UnregisteredPropellantException- if the propellant is not registered
-