|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSimulation
DSSimulation
public class DSSimulation
DSSimulation is a Discrete Event Simulation Instead of asking each agent to act(), we simply process events from a queue.
Field Summary | |
---|---|
protected EventQueue |
events
Queue for Events |
Constructor Summary | |
---|---|
DSSimulation()
No argument constructor |
Method Summary | |
---|---|
void |
addEvent(SimEvent newEvent)
addEvent -- add an event to the queue |
double |
getTime()
getTime -- return what time it is now. |
Methods inherited from class Simulation |
---|
add, closeFile, endStep, getAgents, getOutput, getWorld, openFile, openFrames, remove, run, run, setUp, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected EventQueue events
Constructor Detail |
---|
public DSSimulation()
Method Detail |
---|
public double getTime()
public void addEvent(SimEvent newEvent)
newEvent
- the event to add
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |