Class PoliticalSimulation
java.lang.Object
Simulation
PoliticalSimulation
public class PoliticalSimulation
- extends Simulation
PoliticalSimulation -- using the Simulation class
- Author:
- Mark Guzdial, Barb Ericson
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 |
PoliticalSimulation
public PoliticalSimulation()
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