Class BirdSimulation

java.lang.Object
  extended bySimulation
      extended byBirdSimulation

public class BirdSimulation
extends Simulation

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


Field Summary
 EggAgent egg
           
(package private)  FrameSequence myFrames
           
 
Fields inherited from class Simulation
agents, frames, output, world
 
Constructor Summary
BirdSimulation()
           
 
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

egg

public EggAgent egg

myFrames

FrameSequence myFrames
Constructor Detail

BirdSimulation

public BirdSimulation()
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