public class EdgeCellInfo extends Object
partition cell.| Constructor and Description |
|---|
EdgeCellInfo(Edge edge,
PartitionCell cell,
OrthogonalInterval enterInterval,
OrthogonalInterval exitInterval,
Direction enterDirection,
Direction exitDirection,
int enterSegmentNo)
Creates a new
EdgeCellInfo instance. |
| Modifier and Type | Method and Description |
|---|---|
int |
getBendCount()
Gets the number of bends of the edge within this cell.
|
PartitionCell |
getCell()
Gets the
partition cell within which the edge is routed. |
YList |
getCellSegmentInfos()
Calculates the list of
CellSegmentInfos for the segment parts of this edge that lie within the associated
partition cell. |
Edge |
getEdge()
Gets the edge that is routed within the
partition cell. |
Direction |
getEnterDirection()
Gets the
direction in which the edge enters this cell. |
OrthogonalInterval |
getEnterInterval()
Gets the
interval that the edge uses to enter this cell. |
SegmentGroup |
getEnterSegmentGroup()
Gets the
segment group containing the entering segment. |
int |
getEnterSegmentIndex()
Gets the index of the edge segment that enters this cell.
|
Direction |
getExitDirection()
Gets the
direction in which the edge exits this cell. |
OrthogonalInterval |
getExitInterval()
Gets the
interval that the edge uses to exit this cell. |
SegmentGroup |
getExitSegmentGroup()
Gets the
segment group containing the exiting segment. |
int |
getExitSegmentIndex()
Gets the index of the edge segment that exits this cell.
|
RoutingType |
getType()
Gets the routing type of the edge within this cell.
|
void |
setEnterSegmentGroup(SegmentGroup value)
Sets the
segment group containing the entering segment. |
void |
setEnterSegmentIndex(int value)
Sets the index of the edge segment that enters this cell.
|
void |
setExitSegmentGroup(SegmentGroup value)
Sets the
segment group containing the exiting segment. |
void |
setExitSegmentIndex(int value)
Sets the index of the edge segment that exits this cell.
|
String |
toString()
Returns a string representation of the shape of the edge while crossing the
partition cell. |
public EdgeCellInfo(Edge edge, PartitionCell cell, OrthogonalInterval enterInterval, OrthogonalInterval exitInterval, Direction enterDirection, Direction exitDirection, int enterSegmentNo)
EdgeCellInfo instance.edge - the edge whose routing in the cell is describedcell - the cell in which the edge is routedenterInterval - the interval that the edge uses to enter the cellexitInterval - the interval that the edge uses to exit the cellenterDirection - the direction in which the edge enters the cellexitDirection - the direction in which the edge exits the cellenterSegmentNo - the index of the edge segment that enters the cellpublic int getBendCount()
public PartitionCell getCell()
partition cell within which the edge is routed.public YList getCellSegmentInfos()
CellSegmentInfos for the segment parts of this edge that lie within the associated
partition cell.CellSegmentInfo objects created for the edge and this cellpublic Edge getEdge()
partition cell.public Direction getEnterDirection()
direction in which the edge enters this cell.public OrthogonalInterval getEnterInterval()
interval that the edge uses to enter this cell.public SegmentGroup getEnterSegmentGroup()
segment group containing the entering segment.
When specifying the segment group, the enter interval is updated to use the segment group's
common enter interval.
null. The entering segment does not belong to any segment group.null if the entering segment does not belong to a segment
groupSegmentGroup.getCommonLocationRange(),
setEnterSegmentGroup(SegmentGroup)public int getEnterSegmentIndex()
Values should be non-negative.
IllegalArgumentException - if the given index is negativesetEnterSegmentIndex(int)public Direction getExitDirection()
direction in which the edge exits this cell.public OrthogonalInterval getExitInterval()
interval that the edge uses to exit this cell.public SegmentGroup getExitSegmentGroup()
segment group containing the exiting segment.
When specifying the segment group, the exit interval is updated to use the segment group's
common exit interval.
null. The exiting segment does not belong to any segment group.null if the exiting segment does not belong to a segment
groupSegmentGroup.getCommonLocationRange(),
setExitSegmentGroup(SegmentGroup)public int getExitSegmentIndex()
Values should be non-negative.
IllegalArgumentException - if the given index is negativesetExitSegmentIndex(int)public RoutingType getType()
public void setEnterSegmentGroup(SegmentGroup value)
segment group containing the entering segment.
When specifying the segment group, the enter interval is updated to use the segment group's
common enter interval.
null. The entering segment does not belong to any segment group.value - the segment group containing the entering segment or null if the entering segment does not belong to a segment
groupSegmentGroup.getCommonLocationRange(),
getEnterSegmentGroup()public void setEnterSegmentIndex(int value)
Values should be non-negative.
IllegalArgumentException - if the given index is negativevalue - the index of the edge segment that enters this cellgetEnterSegmentIndex()public void setExitSegmentGroup(SegmentGroup value)
segment group containing the exiting segment.
When specifying the segment group, the exit interval is updated to use the segment group's
common exit interval.
null. The exiting segment does not belong to any segment group.value - the segment group containing the exiting segment or null if the exiting segment does not belong to a segment
groupSegmentGroup.getCommonLocationRange(),
getExitSegmentGroup()public void setExitSegmentIndex(int value)
Values should be non-negative.
IllegalArgumentException - if the given index is negativevalue - the index of the edge segment that exits this cellgetExitSegmentIndex()public String toString()
partition cell.