Class RegisteredPropellant

java.lang.Object
com.github.jbgust.jsrm.application.RegisteredPropellant

public class RegisteredPropellant extends Object
  • Constructor Details

    • RegisteredPropellant

      public RegisteredPropellant()
  • Method Details

    • registerPropellant

      public static Integer registerPropellant(SolidPropellant solidPropellant)
      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

      public static SolidPropellant getSolidPropellant(int propellantId)
      Return the propellant
      Parameters:
      propellantId - the id of the propellant
      Returns:
      the propellant
      Throws:
      UnregisteredPropellantException - if the propellant is not registered