|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--DisplayPanel | +--WarehouseApplication
Application simulating warehouse operation.
Field Summary | |
protected double |
bias
Bias towards removing a lot in this simulation. |
protected static int |
delay
Delay time for all simulations. |
protected static Random |
generator
Random number generator for all simulations. |
protected int |
lots
Number of lots to be placed in this simulation. |
protected int |
maxSize
Maximum size of a lot in this simulation. |
protected boolean |
stopNow
Whether or not this simulation is stopped. |
Constructor Summary | |
WarehouseApplication()
Constructs the GUI for the application. |
Method Summary | |
protected void |
addStrategies()
Adds the device drivers for use in this simulation. |
void |
addStrategy(ACraneStrategy s)
Adds a strategy for use in this simulation. |
protected void |
createActionsPanel()
Creates the actions panel for simulation actions. |
protected void |
delay()
Delays this simulation. |
protected ACraneStrategy |
getStrategy(int index)
Gets the strategy at the given index. |
protected void |
initializeSlider()
Sets slider parameters. |
protected void |
installControlPanel()
Installs the control panel for the simulation. |
protected void |
installCraneView()
Installs the view for the warehouse crane. |
protected void |
installWarehouseView()
Installs the view for the warehouse. |
static void |
main(String[] args)
Creates a new application GUI in its own window. |
static double |
nextDouble()
Returns the next random double value produced by the random number generator. |
void |
run()
Runs this simulation. |
protected void |
start()
Starts a new simulation. |
protected void |
stop()
Stops the current simulation. |
protected void |
updateDelay()
Updates the delay value for animation slowdown by storing the value of the slider. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static int delay
protected static Random generator
protected boolean stopNow
protected int lots
protected int maxSize
protected double bias
Constructor Detail |
public WarehouseApplication()
Method Detail |
public void run()
run
in interface Runnable
public void addStrategy(ACraneStrategy s)
protected void delay()
protected void start()
protected void stop()
protected void updateDelay()
protected ACraneStrategy getStrategy(int index)
index
- the index of the desired strategyprotected void createActionsPanel()
protected void initializeSlider()
protected void installCraneView()
protected void installWarehouseView()
protected void installControlPanel()
protected void addStrategies()
public static double nextDouble()
public static void main(String[] args)
args
- command-line arguments (ignored)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |