public class RoutingArray
extends java.lang.Object
Constructor and Description |
---|
RoutingArray(Cell c,
int numLayers,
java.util.List<RoutingFrame.RoutingGeometry> blocked,
double minWidth)
set size of array and blocked rectangles
|
RoutingArray(int size_x,
int size_y,
int numLayers,
Tupel[] blocked)
set size of array and blocked tupels
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Tupel> |
getBlocked() |
void |
markReserved()
Converts initial reservations of start and end points with their netID to the representation needed by algorithm.
|
void |
reserveForRouting(Tupel[] tupels,
int netID)
Reserves Tupels for routing.
|
Route |
route(Tupel start,
Tupel end,
int netID)
Deprecated.
|
Route |
route(Tupel start,
Tupel end,
ThreadBorders border,
int netID)
Start routing between start and end in given borders
|
void |
setBlocked(java.util.List<RoutingFrame.RoutingGeometry> blockages)
Set RoutingGeometries as blocked
|
void |
setBlocked(Tupel[] blocked)
mark tupels in array as blocked
|
public RoutingArray(int size_x, int size_y, int numLayers, Tupel[] blocked)
size_x
- size in x directionsize_y
- size in y directionnumLayers
- size in z directionblocked
- blocked tupelspublic RoutingArray(Cell c, int numLayers, java.util.List<RoutingFrame.RoutingGeometry> blocked, double minWidth)
c
- CellnumLayers
- count of layersblocked
- blocked RoutingGeometriesminWidth
- width of wirespublic void setBlocked(Tupel[] blocked)
blocked
- blocked tupelspublic void reserveForRouting(Tupel[] tupels, int netID)
tupels
- Tupels to reservenetID
- segment which reserves tupelspublic java.util.ArrayList<Tupel> getBlocked()
public void setBlocked(java.util.List<RoutingFrame.RoutingGeometry> blockages)
blockages
- routing geometries@Deprecated public Route route(Tupel start, Tupel end, int netID)
start
- end
- netID
- public Route route(Tupel start, Tupel end, ThreadBorders border, int netID)
start
- start pointend
- end pointborder
- border to route innetID
- id of the routepublic void markReserved()