Class CrowdSimulation

java.lang.Object
  extended bySimulation
      extended byCrowdSimulation

public class CrowdSimulation
extends Simulation

BirdSimulation A flock of 10 birds investigate a mysterious egg, which suddenly shows itself to be a monster!


Field Summary
 NBDAgent hunter
           
(package private)  FrameSequence myFrames
           
 
Fields inherited from class Simulation
agents, frames, output, world
 
Constructor Summary
CrowdSimulation()
           
 
Method Summary
 void endStep(int t)
          End of step processing
 void setUp()
          Set up the world with 10 birds and the mysterious egg
 
Methods inherited from class Simulation
add, closeFile, getAgents, lineForFile, openFile, openFrames, remove, run, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hunter

public NBDAgent hunter

myFrames

FrameSequence myFrames
Constructor Detail

CrowdSimulation

public CrowdSimulation()
Method Detail

setUp

public void setUp()
Set up the world with 10 birds and the mysterious egg

Overrides:
setUp in class Simulation

endStep

public void endStep(int t)
Description copied from class: Simulation
End of step processing

Overrides:
endStep in class Simulation
Parameters:
t - timestep count