Class CrowdSimulation

java.lang.Object
  extended by Simulation
      extended by CrowdSimulation

public class CrowdSimulation
extends Simulation

Class that simulates a crowd

Author:
Cassy Romano, Barb Ericson

Constructor Summary
CrowdSimulation()
           
 
Method Summary
 void endStep(int t)
          Method to call at the end of a timestep
 NBDAgent getHunter()
          Method to get the hunter
 void setUp()
          Set up the world
 
Methods inherited from class Simulation
add, closeFile, getAgents, getOutput, getWorld, openFile, openFrames, remove, run, run, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CrowdSimulation

public CrowdSimulation()
Method Detail

getHunter

public NBDAgent getHunter()
Method to get the hunter

Returns:
the hunter

setUp

public void setUp()
Set up the world

Overrides:
setUp in class Simulation

endStep

public void endStep(int t)
Method to call at the end of a timestep

Overrides:
endStep in class Simulation
Parameters:
t - the current timestep