|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuchicago.src.sim.engine.SimModelImpl
uk.ac.ucl.casa.andrew.phd.segModelPolygon.SegGISModelPolygon
This is the same model as segModelPoygonRandom but instead of distributing agents randomly throughout the environment, it reads in attributes from the selected shapefile and assigns each agent the desired colour. Everything else in the model is the same for example, agents preferences etc. To create more space the original shapefile has to be altered.
Nested Class Summary | |
(package private) class |
SegGISModelPolygon.happystatsBlue
|
(package private) class |
SegGISModelPolygon.happystatsReds
|
(package private) class |
SegGISModelPolygon.unhappystatsBlue
|
(package private) class |
SegGISModelPolygon.unhappystatsReds
|
(package private) class |
SegGISModelPolygon.unoccupiedstats
|
Field Summary | |
(package private) static java.lang.String |
datasource1
|
(package private) javax.swing.JFileChooser |
fileChooser
|
(package private) OpenMapData |
gisData
|
(package private) static java.lang.String |
neighbourhoodFile1
|
private uchicago.src.sim.gui.Legend |
newlegend
|
(package private) anl.repast.gis.display.OpenMapDisplay |
omDisplay
|
private uchicago.src.sim.analysis.OpenSequenceGraph |
recorderHappyAgentsGraph
|
private uchicago.src.sim.analysis.DataRecorder |
recorderLanduse
|
(package private) static boolean |
saveDataOn
|
(package private) uchicago.src.sim.engine.Schedule |
schedule
|
private int |
simulationSpeed
|
(package private) static boolean |
snapshotOn
|
(package private) int |
STEP_NUM
|
(package private) double |
toleranceBlue
|
(package private) double |
toleranceRed
|
(package private) double |
totalArea
|
(package private) java.util.ArrayList |
urbanAgentList
|
Fields inherited from class uchicago.src.sim.engine.SimModelImpl |
descriptors, modelManipulator |
Constructor Summary | |
SegGISModelPolygon()
|
Method Summary | |
void |
begin()
|
void |
buildDisplay()
|
void |
buildModel()
|
void |
buildSchedule()
Schedules the execution of the specified method (ie step)on the specified object(ie this model) to start at the specified clock tick and continue every tick thereafter. |
void |
closeModel()
Checks to see if all the agents are happy. |
void |
createShapefileForUrbanAgent()
|
java.lang.String[] |
getInitParam()
|
java.lang.String |
getName()
|
java.util.ArrayList |
getNeighborAgents(int[] neighbors)
Tells the polgon agent what is next to what neighbours comes from .GAL file |
boolean |
getSaveDataOn()
|
uchicago.src.sim.engine.Schedule |
getSchedule()
Schedule manages the execution of BasicAction accoriding to the simulation clock. |
boolean |
getSnapshotOn()
|
int |
getSTEP_NUM()
|
double |
getToleranceBlue()
|
double |
getToleranceRed()
|
java.util.ArrayList |
getUrbanAgentList()
|
static void |
main(java.lang.String[] args)
|
void |
postStep()
|
void |
preStep()
|
void |
reset()
The reset mmethod is called whenever the model is reset. |
void |
saveGALFile()
|
void |
saveShapefile()
Any change to the urban layer is saved to a new shapefile Which is time stamped and a new GAL file is also created which corresponds to the new shapefile created |
void |
setSaveDataOn(boolean show)
|
void |
setSnapshotOn(boolean show)
|
void |
setSTEP_NUM(int step_num)
|
void |
setToleranceBlue(double d)
|
void |
setToleranceRed(double d)
|
void |
setup()
|
void |
setUrbanAgentList(java.util.ArrayList agentList)
|
void |
step()
|
void |
takesnapshot()
|
Methods inherited from class uchicago.src.sim.engine.SimModelImpl |
addPropertyListener, addSimEventListener, clearMediaProducers, clearPropertyListeners, fireBooleanPropertyEvent, fireEndSim, fireNumericPropertyEvent, fireObjectPropertyEvent, firePauseSim, fireSimEvent, fireStopSim, fireStringPropertyEvent, generateNewSeed, getController, getMediaProducers, getModelManipulator, getParameterDescriptors, getPropertiesValues, getRngSeed, getTickCount, pause, registerDisplaySurface, registerMediaProducer, removePropertyListener, removeSimEventListener, setController, setRngSeed, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
javax.swing.JFileChooser fileChooser
double toleranceRed
double toleranceBlue
double totalArea
static java.lang.String datasource1
static java.lang.String neighbourhoodFile1
OpenMapData gisData
anl.repast.gis.display.OpenMapDisplay omDisplay
java.util.ArrayList urbanAgentList
static boolean snapshotOn
static boolean saveDataOn
uchicago.src.sim.engine.Schedule schedule
int STEP_NUM
private int simulationSpeed
private uchicago.src.sim.analysis.DataRecorder recorderLanduse
private uchicago.src.sim.analysis.OpenSequenceGraph recorderHappyAgentsGraph
private uchicago.src.sim.gui.Legend newlegend
Constructor Detail |
public SegGISModelPolygon()
Method Detail |
public static void main(java.lang.String[] args)
public void begin()
public void buildModel()
public void buildDisplay()
public void buildSchedule()
public void closeModel()
public void step()
public void preStep()
public void postStep()
public java.util.ArrayList getNeighborAgents(int[] neighbors)
neighbors
-
public void setup()
public void reset()
public uchicago.src.sim.engine.Schedule getSchedule()
public void saveShapefile()
public void createShapefileForUrbanAgent()
public void takesnapshot()
public void saveGALFile()
public java.lang.String getName()
public java.lang.String[] getInitParam()
public boolean getSaveDataOn()
public void setSaveDataOn(boolean show)
public boolean getSnapshotOn()
public void setSnapshotOn(boolean show)
public void setToleranceRed(double d)
public double getToleranceRed()
public void setToleranceBlue(double d)
public double getToleranceBlue()
public java.util.ArrayList getUrbanAgentList()
public void setUrbanAgentList(java.util.ArrayList agentList)
public int getSTEP_NUM()
public void setSTEP_NUM(int step_num)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |