Enum Class PieceOrientation

java.lang.Object
java.lang.Enum<PieceOrientation>
topics.branchandbound.rectangles.PieceOrientation
All Implemented Interfaces:
Serializable, Comparable<PieceOrientation>, Constable

enum PieceOrientation extends Enum<PieceOrientation>

Piece Orientation

Defines the permissible geometric alignments for placing a rectangular Piece onto the algorithmic execution board.

The orientation dictates how the intrinsic dimensions of the piece map directly to the 2D matrix grid:

  • HORIZONTAL: The piece maintains its native dimensions, extending x units across columns and y units down rows.
  • VERTICAL: The piece's dimensions are mathematically transposed, extending y units across columns and x units down rows.
Author:
vicegd
See Also:
  • Enum Constant Details

    • HORIZONTAL

      public static final PieceOrientation HORIZONTAL
      Represents the default structural alignment.
    • VERTICAL

      public static final PieceOrientation VERTICAL
      Represents a 90-degree rotational transposition.
  • Method Details

    • values

      public static PieceOrientation[] 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 PieceOrientation 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