Class RunwayState

java.lang.Object
org.ddolib.examples.layered.alp.RunwayState
All Implemented Interfaces:
Comparable<RunwayState>

public class RunwayState extends Object implements Comparable<RunwayState>
State of a runway : last landing time and last aircraft's class.
  • Field Details

    • prevTime

      public int prevTime
      The previous landing time on this runway.
    • prevClass

      public int prevClass
      The class of the previous aircraft that landed on this runway.
  • Constructor Details

    • RunwayState

      public RunwayState(int prevClass, int prevTime)
      Creates a new runway state.
      Parameters:
      prevClass - the class of the previous aircraft that landed
      prevTime - the previous landing time
    • RunwayState

      public RunwayState(RunwayState other)
      Creates a copy of the given runway state.
      Parameters:
      other - the runway state to copy
  • Method Details