.. default-domain:: java .. highlight:: java .. package:: krpc.client.services.SpaceCenter .. _java-api-stage: Stage ===== .. type:: public class Stage A single stage of a vessel. Obtain activation (burn) stages from ``Vessel.Stages`` / ``Vessel.StageAt``, and decouple stages from ``Vessel.DecoupleStages`` / ``Vessel.DecoupleStageAt``. .. note:: Delta-v, thrust, TWR, specific impulse, burn time and mass members are only available on activation stages. On decouple stages those members throw InvalidOperationException because stock delta-v data does not apply. Thrust is reported in newtons and masses in kilograms (stock values are converted from kilonewtons and tonnes). .. method:: int getNumber() The stage number (activation stage for burn stages, decouple stage otherwise). .. method:: java.util.List getParts() The parts that belong to this stage. .. method:: Resources resources(boolean cumulative) Returns a :meth:`Stage.resources(boolean)` object for this stage. :param boolean cumulative: When ``false``, only resources assigned to this stage. When ``true``, resources for this stage and all later activation or decouple stage numbers are included. On activation stages, unstaged resource containers (for example fuel tanks) are grouped with the first higher activation stage before they are detached. .. note:: This is an RPC method: call ``resources()`` (optional ``cumulative`` argument). For activation stages, unstaged resource containers (for example fuel tanks) are grouped with the first higher activation stage before they detach, matching the C# ``Resources()`` documentation. .. method:: float getDeltaV() Delta-v for this stage in the current situation, in m/s. .. note:: Delta-v is only defined for **activation** stages (``decouple`` is ``false``). Calling this on a decouple stage raises an error. .. method:: float getVacuumDeltaV() Vacuum delta-v for this stage, in m/s. .. method:: float getSeaLevelDeltaV() Sea-level delta-v for this stage, in m/s. .. method:: float getThrust() Thrust in the current situation, in newtons. .. method:: float getVacuumThrust() Vacuum thrust, in newtons. .. method:: float getSeaLevelThrust() Sea-level thrust, in newtons. .. method:: float getTWR() Thrust-to-weight ratio in the current situation. .. method:: float getVacuumTWR() Vacuum thrust-to-weight ratio. .. method:: float getSeaLevelTWR() Sea-level thrust-to-weight ratio. .. method:: float getSpecificImpulse() Specific impulse in the current situation, in seconds. .. method:: float getVacuumSpecificImpulse() Vacuum specific impulse, in seconds. .. method:: float getSeaLevelSpecificImpulse() Sea-level specific impulse, in seconds. .. method:: float getBurnTime() Burn time for this stage, in seconds. .. method:: float getStartMass() The mass of the vessel after the stage activates, in kg. .. method:: float getEndMass() The mass of the vessel when the stage burns out, in kg. .. method:: float getDryMass() The dry mass of the vessel after the stage activates, in kg. .. note:: Includes the parts of all later stages. .. method:: float getFuelMass() The fuel mass of the vessel when the stage activates, in kg. .. note:: Includes the fuel of all later stages, and the fuel left in the parts the stage decouples. The stage burns :meth:`Stage.getStartMass()` minus :meth:`Stage.getEndMass()`.