public class AStarRouter extends BenchmarkRouter
RoutingFrame.RoutePoint, RoutingFrame.RouteWire, RoutingFrame.RoutingContact, RoutingFrame.RoutingEnd, RoutingFrame.RoutingGeometry, RoutingFrame.RoutingLayer, RoutingFrame.RoutingParameter, RoutingFrame.RoutingPrefs, RoutingFrame.RoutingSegment
Modifier and Type | Field and Description |
---|---|
RoutingFrame.RoutingParameter |
numRegionsPerSide
Number of regions per side.
|
enableOutput, maxRuntime, numThreads
Constructor and Description |
---|
AStarRouter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlgorithmName()
Method to return the name of the routing algorithm (overridden by actual
Routing algorithms).
|
double |
getNodeSize() |
RoutingFrame.RoutingContact |
getVia(RoutingFrame.RoutingLayer l1,
RoutingFrame.RoutingLayer l2) |
double |
nodeCoordXToCell(int n) |
double |
nodeCoordXToCellCentered(int n) |
double |
nodeCoordYToCell(int n) |
double |
nodeCoordYToCellCentered(int n) |
protected void |
runRouting(Cell cell,
java.util.List<RoutingFrame.RoutingSegment> segmentsToRoute,
java.util.List<RoutingFrame.RoutingLayer> allLayers,
java.util.List<RoutingFrame.RoutingContact> allContacts,
java.util.List<RoutingFrame.RoutingGeometry> blockages)
Method to do Routing (overridden by actual Routing algorithms).
|
void |
setBenchmarkParameters(int threads,
int runtime,
int numregionsperside) |
void |
setNodeSize(double nodeSize) |
setBenchmarkParameters
doRouting, getParameters, getRoutingAlgorithms
public RoutingFrame.RoutingParameter numRegionsPerSide
public void setBenchmarkParameters(int threads, int runtime, int numregionsperside)
public java.lang.String getAlgorithmName()
RoutingFrame
getAlgorithmName
in class BenchmarkRouter
public double nodeCoordXToCellCentered(int n)
public double nodeCoordYToCellCentered(int n)
public double nodeCoordXToCell(int n)
public double nodeCoordYToCell(int n)
protected void runRouting(Cell cell, java.util.List<RoutingFrame.RoutingSegment> segmentsToRoute, java.util.List<RoutingFrame.RoutingLayer> allLayers, java.util.List<RoutingFrame.RoutingContact> allContacts, java.util.List<RoutingFrame.RoutingGeometry> blockages)
RoutingFrame
runRouting
in class RoutingFrame
segmentsToRoute
- a list of all routes that need to be made.allLayers
- a list of all layers that can be used in routing.allContacts
- a list of all contacts that can be used in routing.blockages
- a list of all blockage geometry to consider.public RoutingFrame.RoutingContact getVia(RoutingFrame.RoutingLayer l1, RoutingFrame.RoutingLayer l2)
public void setNodeSize(double nodeSize)
public double getNodeSize()