|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.engine.SimModelImpl
uchicago.src.sim.engine.SimpleModel
uchicago.src.repastdemos.asynchAgents.AsynchAgentsModel
public class AsynchAgentsModel
A model illustrating the use of the asynchronous agents and schedule.
| Field Summary | |
|---|---|
protected Office |
office
|
| Fields inherited from class uchicago.src.sim.engine.SimpleModel |
|---|
agentList, autoStep, isGui, name, params, schedule, seed, shuffle, startAt |
| Fields inherited from class uchicago.src.sim.engine.SimModelImpl |
|---|
descriptors, modelManipulator |
| Constructor Summary | |
|---|---|
AsynchAgentsModel()
|
|
| Method Summary | |
|---|---|
void |
begin()
Begins a simulation run. |
protected void |
buildDisplay()
This builds the display surface for the office |
protected void |
buildGraphs()
This builds the error graphs. |
int |
getEmployeeCount()
|
java.lang.String[] |
getInitParam()
Gets the names of the initial model parameters to set. |
java.lang.String |
getName()
Gets the name of this model. |
int |
getOfficeHeight()
|
int |
getOfficeWidth()
|
int |
getTasksAssignedPerTick()
|
static void |
main(java.lang.String[] args)
|
void |
setEmployeeCount(int employeeCount)
|
void |
setOfficeHeight(int officeHeight)
|
void |
setOfficeWidth(int officeWidth)
|
void |
setTasksAssignedPerTick(int val)
|
void |
setup()
Sets up the model for the next run, clears out all the old employees and the old displays |
protected void |
step()
|
| Methods inherited from class uchicago.src.sim.engine.SimpleModel |
|---|
atEnd, atPause, buildModel, buildSchedule, getNextDoubleFromTo, getNextIntFromTo, getSchedule, postStep, preStep, run, runAutoStep, setRngSeed, setStoppingTime, setStoppingTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Office office
| Constructor Detail |
|---|
public AsynchAgentsModel()
| Method Detail |
|---|
public java.lang.String[] getInitParam()
SimModel
getInitParam in interface SimModelgetInitParam in class SimpleModelpublic void begin()
SimModel
begin in interface SimModelbegin in class SimpleModelprotected void buildDisplay()
protected void buildGraphs()
public void setup()
setup in interface SimModelsetup in class SimpleModelprotected void step()
step in class SimpleModelpublic java.lang.String getName()
SimpleModel
getName in interface SimModelgetName in class SimpleModelpublic int getEmployeeCount()
public void setEmployeeCount(int employeeCount)
employeeCount - The number of employees in the office.public int getOfficeHeight()
public void setOfficeHeight(int officeHeight)
officeHeight - the officeHeightpublic int getOfficeWidth()
public void setOfficeWidth(int officeWidth)
officeWidth - the officeWidthpublic int getTasksAssignedPerTick()
public void setTasksAssignedPerTick(int val)
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||