|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--uchicago.src.sim.engine.SimModelImpl
|
+--uchicago.src.sim.Schelling.SchellingGis
This is an implementation of the classic Thomas Schelling model of segregation. Models of Segregation (in Strategic Theory and Its Applications). Thomas C. Schelling The American Economic Review, Vol. 59, No. 2, Papers and Proceedings of the Eighty-first Annual Meeting of the American Economic Association. (May, 1969), pp. 488-493. Agents are randomly placed on a grid (which, in our case, is a set of gis polygons). Each agent as a tolerance for agents who are a different color. Each time step, the agents evaluate their neighborhood. If the number of different agents in their neighborhood is greater than their tolerances, the agents will move to an unoccupied location. The neighborhood in this particular model is defined as the Delaunay triangulation of the centroids of the polygons. Keep in mind that there is no guarantee that the centroid will be inside the polygon. For a better description of Delaunay triangulation @see uchicago.src.sim.space.Delauany.
| Field Summary |
| Fields inherited from class uchicago.src.sim.engine.SimModelImpl |
descriptors, modelManipulator |
| Constructor Summary | |
SchellingGis()
This builds the model based on on a shapefile. |
|
| Method Summary | |
void |
begin()
Begins a simulation run. |
double |
getDensity()
|
String[] |
getInitParam()
Gets the names of the initial model parameters to set. |
String |
getName()
Gets the name of the model/simulation. |
double |
getPerGreen()
|
Schedule |
getSchedule()
Gets the Schedule created by the model. |
double |
getTolerance()
|
static void |
main(String[] args)
|
void |
setDensity(double density)
|
void |
setPerGreen(double perGreen)
|
void |
setTolerance(double tolerance)
|
void |
setup()
Prepares a model for a new run, typically by deallocating objects or setting them to some reasonable default. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SchellingGis()
| Method Detail |
public double getTolerance()
public void setTolerance(double tolerance)
public double getPerGreen()
public void setPerGreen(double perGreen)
public double getDensity()
public void setDensity(double density)
public String[] getInitParam()
SimModel
public void begin()
SimModel
public void setup()
SimModel
public Schedule getSchedule()
SimModel
public String getName()
SimModel
public static void main(String[] args)
|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||