public class RoutingMain
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_REVOLUTIONS |
Constructor and Description |
---|
RoutingMain(int width,
int height,
int layerCount,
int numRegionsPerSide,
int threadPoolSize) |
Modifier and Type | Method and Description |
---|---|
int |
getProgress()
Returns the current routing progress in percent (this means: In the range
from 0 to 100)
|
void |
handleGlobalRouteJobFinished(GlobalRouteJob finishedJob) |
void |
handleLocalRouteJobFinished(LocalRouteJob finishedJob)
Handler methods for finished jobs.
|
void |
placePortals()
Places the portals on the borders of the maps of all regions.
|
void |
setBlockage(int sx,
int sy,
int ex,
int ey)
Sets the rectangle defined by (sx, sy) to (ex, ex) in all layers
as a blockage.
|
void |
setBlockage(int sx,
int sy,
int ex,
int ey,
int z)
Sets the rectangle defined by (sx, sy) to (ex, ex) in all layers
as a blockage.
|
void |
setMaxRuntimeMillis(long maxRuntimeMillis) |
void |
submitRouteJob(RouteJob job) |
void |
waitForCompletion() |
public static final int MAX_REVOLUTIONS
public RoutingMain(int width, int height, int layerCount, int numRegionsPerSide, int threadPoolSize)
public int getProgress()
public void setMaxRuntimeMillis(long maxRuntimeMillis)
public void submitRouteJob(RouteJob job)
public void handleLocalRouteJobFinished(LocalRouteJob finishedJob)
public void handleGlobalRouteJobFinished(GlobalRouteJob finishedJob)
public void waitForCompletion()
public void setBlockage(int sx, int sy, int ex, int ey)
public void setBlockage(int sx, int sy, int ex, int ey, int z)
public void placePortals()