public class WorkerThread
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
protected static boolean[][][] |
regionBoundaries |
protected static int |
size_x |
protected static int |
size_y |
static boolean |
X_DIRECTION |
static boolean |
Y_DIRECTION |
Constructor and Description |
---|
WorkerThread(int id) |
Modifier and Type | Method and Description |
---|---|
protected static Tupel |
getMiddlePoint(Tupel p) |
static void |
init(WorkerThread[] workerObjects,
int countLayers,
RoutingArray ra,
java.util.List<RoutingFrame.RoutingSegment> segmentsToRoute,
int maxRunTime,
boolean output) |
void |
run()
The Worker will do the three following things:
1.) Change the RoutingSegments to RoutingParts which have more information inside it for routing.
|
public static final boolean X_DIRECTION
public static final boolean Y_DIRECTION
protected static boolean[][][] regionBoundaries
protected static int size_x
protected static int size_y
public WorkerThread(int id)
id
- must be a unique number. the numbers 0 to n-1 must be given, when n threads shall workpublic static void init(WorkerThread[] workerObjects, int countLayers, RoutingArray ra, java.util.List<RoutingFrame.RoutingSegment> segmentsToRoute, int maxRunTime, boolean output)
workerObjects
- the WorkerObjects as an arraycountLayers
- on how much layers will be routedra
- the RoutingArraysegmentsToRoute
- the segments to route, got from Electric
This method has to be called before any other method!public void run()
run
in interface java.lang.Runnable