public static class PartitionCell.PartitionCellBorder extends Object
PartitionCell
.Modifier and Type | Field and Description |
---|---|
static PartitionCell.PartitionCellBorder |
EAST
A type constant that defines the right border of a
PartitionCell . |
static PartitionCell.PartitionCellBorder |
NORTH
A type constant that defines the upper border of a
PartitionCell . |
static PartitionCell.PartitionCellBorder |
SOUTH
A type constant that defines the bottom border of a
PartitionCell . |
static PartitionCell.PartitionCellBorder |
WEST
A type constant that defines the left border of a
PartitionCell . |
Modifier and Type | Method and Description |
---|---|
PartitionCell.PartitionCellBorder |
getMirrorBorder()
Gets the type of the border that is on the opposite side of the border defined by this type.
|
static PartitionCell.PartitionCellBorder |
valueOfEnterDirection(Direction direction)
Returns the type of the border that is passed through when entering a
PartitionCell in the given direction. |
static PartitionCell.PartitionCellBorder |
valueOfExitDirection(Direction direction)
Returns the type of the border that is passed through when exiting a
PartitionCell in the given direction. |
static PartitionCell.PartitionCellBorder |
valueOfPortCandidate(PortCandidate pc)
Returns the type of the border that is defined by the given
PortCandidate . |
static PartitionCell.PartitionCellBorder |
valueOfPortConstraint(PortConstraint pc)
Returns the type of the border that is defined by the given
PortConstraint . |
public static final PartitionCell.PartitionCellBorder EAST
PartitionCell
.public static final PartitionCell.PartitionCellBorder NORTH
PartitionCell
.public static final PartitionCell.PartitionCellBorder SOUTH
PartitionCell
.public static final PartitionCell.PartitionCellBorder WEST
PartitionCell
.public PartitionCell.PartitionCellBorder getMirrorBorder()
public static final PartitionCell.PartitionCellBorder valueOfEnterDirection(Direction direction)
PartitionCell
in the given direction.direction
- the direction in which a PartitionCell
has been enteredPartitionCell
PartitionCell
public static final PartitionCell.PartitionCellBorder valueOfExitDirection(Direction direction)
PartitionCell
in the given direction.direction
- the direction in which a PartitionCell
has been exitedPartitionCell
PartitionCell
public static final PartitionCell.PartitionCellBorder valueOfPortCandidate(PortCandidate pc)
PortCandidate
.
The border type corresponds to the direction
of the given PortCandidate
.
pc
- the port candidate for which the border type is returnedPortCandidate
public static final PartitionCell.PartitionCellBorder valueOfPortConstraint(PortConstraint pc)
PortConstraint
.
The border type corresponds to the side
of the given PortConstraint
.
pc
- the port constraint for which the border type is returnedPortConstraint