Enum Class ReversibleConveyor.Direction

java.lang.Object
java.lang.Enum<ReversibleConveyor.Direction>
com.amalgamasimulation.discreterate.ReversibleConveyor.Direction
All Implemented Interfaces:
Serializable, Comparable<ReversibleConveyor.Direction>, Constable
Enclosing class:
ReversibleConveyor<T>

public static enum ReversibleConveyor.Direction extends Enum<ReversibleConveyor.Direction>
Defines the direction of movement of the conveyor.
Author:
Alexander Morozov
  • Enum Constant Details

    • FORWARD

      public static final ReversibleConveyor.Direction FORWARD
      Movement from the beginning of the conveyor to the end of the conveyor. Relative to the polyline by which the conveyor is defined - from the first point of the polyline to the last point of the polyline. The same as a Conveyor element.
    • BACKWARD

      public static final ReversibleConveyor.Direction BACKWARD
      Movement from the end of the conveyor to the beginning of the conveyor. Relative to the polyline by which the conveyor is defined - from the last point of the polyline to the first point of the polyline.
  • Method Details

    • values

      public static ReversibleConveyor.Direction[] 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 ReversibleConveyor.Direction 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