Class PoliticalSimulation

java.lang.Object
  extended bySimulation
      extended byPoliticalSimulation

public class PoliticalSimulation
extends Simulation

PoliticalSimulation -- using the Simulation class


Field Summary
 
Fields inherited from class Simulation
agents, frames, output, world
 
Constructor Summary
PoliticalSimulation()
           
 
Method Summary
 void endStep(int t)
          EndStep, count the number of each
 String lineForFile()
          lineForFile -- write out number of each party
 void setUp()
          Fill the world with 60 persons
 
Methods inherited from class Simulation
add, closeFile, getAgents, openFile, openFrames, remove, run, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PoliticalSimulation

public PoliticalSimulation()
Method Detail

lineForFile

public String lineForFile()
lineForFile -- write out number of each party

Overrides:
lineForFile in class Simulation

endStep

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

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

setUp

public void setUp()
Fill the world with 60 persons

Overrides:
setUp in class Simulation