|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--haifa.shopsim.fastkernel.FastShopRun | +--haifa.shopsim.fastkernel.ThreadFastShopRun
Implements a FastShopRun on it's own thread. This is usefull for working with GUI.
Inner classes inherited from class haifa.shopsim.fastkernel.FastShopRun |
FastShopRun.Buffer, FastShopRun.Machine |
Field Summary | |
(package private) int |
counter
|
private java.lang.Thread |
t
The thread. |
Fields inherited from class haifa.shopsim.fastkernel.FastShopRun |
eventQ, expectedLowerBound, finishedJobs, firstBuffers, lastRestUpdateTime, listeners, log, machines, numBusyMachines, numSetJobs, postRunAction, problemSizeChooser, PROGRESS_STEP, Qmap, QPlusMap, randomTimeMaker, restingMap, shopAlgorithm, shopData, startTimeMillis, time, totalFinishedJobs |
Fields inherited from interface haifa.shopsim.ShopSimulation |
MAX_SIM_TIME |
Constructor Summary | |
ThreadFastShopRun(ShopAlgorithm shopAlgorithm_,
ShopData shopData_)
Creates a new FastShopRun, setting the log to stdout. |
|
ThreadFastShopRun(ShopAlgorithm shopAlgorithm_,
ShopData shopData_,
PostRunAction postRunAction_,
java.io.PrintWriter log_)
Creates new FastShopRun. |
Method Summary | |
void |
go()
Start the simulation. |
void |
kill()
|
protected void |
notifyListeners(ShopChangeEvent sce)
Iterate over all of the listeners and send the the ShopChangeEvent. |
void |
run()
|
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.lang.Thread t
int counter
Constructor Detail |
public ThreadFastShopRun(ShopAlgorithm shopAlgorithm_, ShopData shopData_, PostRunAction postRunAction_, java.io.PrintWriter log_)
public ThreadFastShopRun(ShopAlgorithm shopAlgorithm_, ShopData shopData_)
Method Detail |
public void go()
FastShopRun
go
in class FastShopRun
public void kill()
public void run()
run
in interface java.lang.Runnable
protected void notifyListeners(ShopChangeEvent sce)
notifyListeners
in class FastShopRun
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |