Class CrowdSimulation
java.lang.Object
Simulation
CrowdSimulation
public class CrowdSimulation
- extends Simulation
Class that simulates a crowd
- Author:
- Cassy Romano, Barb Ericson
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 |
CrowdSimulation
public CrowdSimulation()
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