Stage#

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).

int getNumber()#

The stage number (activation stage for burn stages, decouple stage otherwise).

java.util.List<Part> getParts()#

The parts that belong to this stage.

Resources resources(boolean cumulative)#

Returns a Stage.resources(boolean) object for this stage.

Parameters:
  • cumulative (boolean) – 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. Defaults to true so decouple-stage calls match the legacy Vessel.ResourcesInDecoupleStage RPC.

Note

This is an RPC method: call resources() (optional cumulative argument). The default cumulative=true matches the legacy Vessel.resourcesInDecoupleStage(int, boolean) RPC. For decouple stages, grouping is the same as that deprecated method. 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.

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.

float getVacuumDeltaV()#

Vacuum delta-v for this stage, in m/s.

float getSeaLevelDeltaV()#

Sea-level delta-v for this stage, in m/s.

float getThrust()#

Thrust in the current situation, in newtons.

float getVacuumThrust()#

Vacuum thrust, in newtons.

float getSeaLevelThrust()#

Sea-level thrust, in newtons.

float getTWR()#

Thrust-to-weight ratio in the current situation.

float getVacuumTWR()#

Vacuum thrust-to-weight ratio.

float getSeaLevelTWR()#

Sea-level thrust-to-weight ratio.

float getSpecificImpulse()#

Specific impulse in the current situation, in seconds.

float getVacuumSpecificImpulse()#

Vacuum specific impulse, in seconds.

float getSeaLevelSpecificImpulse()#

Sea-level specific impulse, in seconds.

float getBurnTime()#

Burn time for this stage, in seconds.

float getStartMass()#

Start mass for this stage, in kg.

float getEndMass()#

End mass for this stage, in kg.

float getDryMass()#

Dry mass for this stage, in kg.

float getFuelMass()#

Fuel mass for this stage, in kg.