Class PoliticalSimulation

java.lang.Object
  extended by Simulation
      extended by PoliticalSimulation

public class PoliticalSimulation
extends Simulation

PoliticalSimulation -- using the Simulation class

Author:
Mark Guzdial, Barb Ericson

Constructor Summary
PoliticalSimulation()
           
 
Method Summary
 void endStep(int t)
          EndStep, count the number of each
 void setUp()
          Fill the world with 60 persons
 String toString()
          return an information string
 
Methods inherited from class Simulation
add, closeFile, getAgents, getOutput, getWorld, openFile, openFrames, remove, run, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PoliticalSimulation

public PoliticalSimulation()
Method Detail

setUp

public void setUp()
Fill the world with 60 persons

Overrides:
setUp in class Simulation

toString

public String toString()
return an information string

Overrides:
toString in class Simulation
Returns:
the information string with the number of each party

endStep

public void endStep(int t)
EndStep, count the number of each

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