Enum Class Elevator.State

java.lang.Object
java.lang.Enum<Elevator.State>
org.episteme.social.architecture.lift.Elevator.State
All Implemented Interfaces:
Serializable, Comparable<Elevator.State>, Constable
Enclosing class:
Elevator

public static enum Elevator.State extends Enum<Elevator.State>
Functional states of the elevator cabin.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Enum Constant Details

    • IDLE

      public static final Elevator.State IDLE
      Cabin is stationary and unoccupied/unrequested.
    • MOVING

      public static final Elevator.State MOVING
      Cabin is progressing between floors.
    • OPENING

      public static final Elevator.State OPENING
      Door mechanism is engaging.
    • OPEN

      public static final Elevator.State OPEN
      Door is fully retracted.
    • CLOSING

      public static final Elevator.State CLOSING
      Door mechanism is disengaging.
  • Method Details

    • values

      public static Elevator.State[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Elevator.State valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null