org.mrd.repast.control
Class ThinController

java.lang.Object
  |
  +--uchicago.src.sim.engine.BaseController
        |
        +--org.mrd.repast.control.ThinController
All Implemented Interfaces:
uchicago.src.sim.engine.IController, uchicago.src.sim.engine.SimEventListener

public class ThinController
extends uchicago.src.sim.engine.BaseController

Author:
Administrator To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Field Summary
protected  org.apache.commons.logging.Log log
           
 
Fields inherited from class uchicago.src.sim.engine.BaseController
done, doStep, executeBegin, go, isGui, listenerList, model, monitor, params, pauseActionsExecuted, pauseAt, pauseAtAction, pauseSim, persistentObj, runFinished, runThread, schedule, simRun, sleepValue, time
 
Constructor Summary
ThinController()
           
ThinController(boolean gUI)
          Creates a ThinController, specifying whether this is a graphical controller or not.
 
Method Summary
 void exitSim()
          Exits a simulation.
 long getRunCount()
           
 void initSim()
           
 boolean isBatch()
          Getter for property batch.
 boolean isGUI()
          Getter for property gUI.
protected  void onTickCountUpdate()
           
 void setBatch(boolean batch)
          Setter for property batch.
 void setGUI(boolean gUI)
          Setter for property gUI.
 void simEventPerformed(uchicago.src.sim.engine.SimEvent evt)
          Listens for SimEvents and responds accordingly.
 void startSim()
           
 
Methods inherited from class uchicago.src.sim.engine.BaseController
addSimEventListener, beginModel, fireSimEvent, getCellDepth, getCellHeight, getCellWidth, getCurrentTime, getDefaultModelParameters, getModel, getModelParameters, getPauseAt, getPersistentObj, getRandomSeed, getSchedule, notifyMonitor, pauseSim, putPersistentObj, removeSimEventListener, setCellDepth, setCellHeight, setCellWidth, setModel, setPauseAt, setRandomSeed, setSchedule, setupSchedule, stopSim
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.apache.commons.logging.Log log
Constructor Detail

ThinController

public ThinController()

ThinController

public ThinController(boolean gUI)
Creates a ThinController, specifying whether this is a graphical controller or not. The isGui parameter only determines what value is returned by the isGUI method, nothing more.

Method Detail

initSim

public void initSim()

startSim

public void startSim()
Specified by:
startSim in interface uchicago.src.sim.engine.IController
Overrides:
startSim in class uchicago.src.sim.engine.BaseController

exitSim

public void exitSim()
Exits a simulation.


onTickCountUpdate

protected void onTickCountUpdate()
Specified by:
onTickCountUpdate in class uchicago.src.sim.engine.BaseController

simEventPerformed

public void simEventPerformed(uchicago.src.sim.engine.SimEvent evt)
Listens for SimEvents and responds accordingly.

Parameters:
evt -

isBatch

public boolean isBatch()
Getter for property batch.

Specified by:
isBatch in interface uchicago.src.sim.engine.IController
Overrides:
isBatch in class uchicago.src.sim.engine.BaseController
Returns:
Value of property batch.

setBatch

public void setBatch(boolean batch)
Setter for property batch.

Parameters:
batch - New value of property batch.

getRunCount

public long getRunCount()

isGUI

public boolean isGUI()
Getter for property gUI.

Returns:
Value of property gUI.

setGUI

public void setGUI(boolean gUI)
Setter for property gUI.

Parameters:
gUI - New value of property gUI.


Copyright © 2000-2003 Mark Robert Diggory. All Rights Reserved.