|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.engine.BaseController
uchicago.src.sim.engine.BatchController
uchicago.src.sim.engine.RemoteBatchController
public class RemoteBatchController
The Controller that handles a single remote model.
| Field Summary | |
|---|---|
protected long |
batchCount
|
protected HomeController |
control
|
| Fields inherited from class uchicago.src.sim.engine.BatchController |
|---|
autoRecording, batchListeners, dynNameList, finished, nameList, nameParam, pArray, recorder, stopped |
| Fields inherited from class uchicago.src.sim.engine.BaseController |
|---|
done, doStep, executeBegin, exitOnExit, go, isGui, listenerList, model, monitor, params, pauseActionsExecuted, pauseAt, pauseAtAction, pauseSim, persistentObj, runFinished, runThread, schedule, simRun, sleepValue, time |
| Constructor Summary | |
|---|---|
RemoteBatchController()
No-arg constructor for making Active |
|
RemoteBatchController(HomeController c)
Create a RemoteController using a HomeController |
|
| Method Summary | |
|---|---|
java.lang.Object |
beginRemoteRun()
|
void |
exitSim()
Exits the entire simulation. |
java.lang.Object |
getPersistentObj(java.lang.Object key)
retrieve a persistent object |
boolean |
getPutPersistentObject(java.lang.Object key,
java.lang.Object value)
|
long |
getRunCount()
Gets the number of the current batch run |
void |
putPersistentObj(java.lang.Object key,
java.lang.Object val)
Store a persistent object |
void |
quit()
|
void |
setModel(SimModel model)
Sets the model to be controlled by this BatchController. |
void |
setModelClass(java.lang.Class modelClass)
Instantiate the model |
void |
setModelClass(java.lang.String modelClass)
Instantiate the model |
protected void |
setModelParameters()
|
void |
start()
Starts an individual run of the simulation |
void |
stopRun()
Stops an individual run of the simulation, increments the parameters appropriately, and if necessary starts another run. |
| Methods inherited from class uchicago.src.sim.engine.BatchController |
|---|
addBatchListener, begin, doWriteHeader, endSim, fireBatchEvent, incrementBatchCount, isAutoRecording, isBatch, isGUI, onTickCountUpdate, removeBatchListener, setAutoRecording, setWriteHeader, simEventPerformed |
| Methods inherited from class uchicago.src.sim.engine.BaseController |
|---|
addSimEventListener, beginModel, fireSimEvent, getCellDepth, getCellHeight, getCellWidth, getCurrentTime, getDefaultModelParameters, getExitOnExit, getModel, getModelParameters, getPauseAt, getRandomSeed, getSchedule, notifyMonitor, pauseSim, removeSimEventListener, setCellDepth, setCellHeight, setCellWidth, setExitOnExit, setPauseAt, setRandomSeed, setSchedule, setupSchedule, startSim, stopSim |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected long batchCount
protected HomeController control
| Constructor Detail |
|---|
public RemoteBatchController()
public RemoteBatchController(HomeController c)
c - | Method Detail |
|---|
public void setModel(SimModel model)
setModel in interface IControllersetModel in class BatchControllermodel - the model to be controlled by this BatchControllerprotected void setModelParameters()
public void stopRun()
stopRun in class BatchControllerpublic long getRunCount()
BatchController
getRunCount in interface IControllergetRunCount in class BatchControllerpublic void start()
BatchController
start in class BatchControllerpublic void setModelClass(java.lang.Class modelClass)
modelClass - public void setModelClass(java.lang.String modelClass)
modelClass -
public void putPersistentObj(java.lang.Object key,
java.lang.Object val)
putPersistentObj in interface IControllerputPersistentObj in class BaseControllerkey - val - public java.lang.Object getPersistentObj(java.lang.Object key)
getPersistentObj in interface IControllergetPersistentObj in class BaseControllerkey -
public boolean getPutPersistentObject(java.lang.Object key,
java.lang.Object value)
public java.lang.Object beginRemoteRun()
throws java.lang.Exception
java.lang.Exceptionpublic void exitSim()
IController
exitSim in interface IControllerexitSim in class BatchControllerpublic void quit()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||