Class Piece
java.lang.Object
topics.branchandbound.rectangles.Piece
Rectangular Piece
Represents a distinct rectangular entity defined by its width and height, utilized as the fundamental unit of placement within the 2D bin packing variants of the Branch and Bound algorithm.
The piece's effective footprint on the board is determined dynamically by
the algorithmic engine based on its assigned PieceOrientation.
- Author:
- vicegd
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPiece(int x, int y) Constructs a new rectangular piece with the specified dimensions. -
Method Summary
-
Field Details
-
x
int xThe primary horizontal dimension (width). -
y
int yThe primary vertical dimension (height).
-
-
Constructor Details
-
Piece
public Piece(int x, int y) Constructs a new rectangular piece with the specified dimensions.- Parameters:
x- The width of the piece.y- The height of the piece.
-