|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.ucl.casa.andrew.phd.segregationModelDensity.UrbanAgent
Field Summary | |
(package private) int |
actualPopBlue
|
(package private) int |
actuualPopRed
|
private int |
ageResident
|
(package private) double |
area
|
(package private) int |
bluePopPercentage
|
(package private) int |
bluePopulationRedisdents
|
private static com.vividsolutions.jts.geom.Geometry |
bufferedUnionGeometry
|
(package private) int |
determinepop
|
(package private) int |
gisAgentIndex
|
(package private) double |
id
|
(package private) int |
landuse
|
(package private) SegGISModel |
model
|
(package private) int[] |
neighbors
|
private int |
numResidentAgents
|
(package private) com.bbn.openmap.omGraphics.OMGraphic |
omGraphic
|
private java.lang.Object |
placementOfAgents
|
private com.vividsolutions.jts.geom.Point |
Point
|
(package private) double |
population
|
private com.bbn.openmap.omGraphics.OMPoint |
randomPoints
|
(package private) int |
redPopPercentage
|
(package private) int |
redPopulationRedisdents
|
private static int |
resAge
|
private java.util.ArrayList |
residentAgents
Instance fields * |
(package private) java.lang.String |
socclass
|
private java.lang.String |
socResident
|
(package private) com.vividsolutions.jts.geom.MultiPolygon |
the_geom
|
(package private) int |
totalPopulationRedisdents
|
(package private) int |
totalResCountPerCell
|
(package private) int |
type
|
private static com.vividsolutions.jts.geom.Geometry |
unionGeometry
|
private java.util.ArrayList |
urbanAgentList
|
(package private) java.lang.String |
ward
|
Constructor Summary | |
UrbanAgent()
|
Method Summary | |
static java.util.HashMap |
countResidentTypes(java.util.ArrayList residents)
|
double |
determineLandUse()
|
int |
determinepop()
|
void |
determinPopulationPercentage()
|
double |
getAREA()
|
double |
getAreaJTS()
|
int |
getBLUE()
|
int |
getBLUENO()
|
static com.vividsolutions.jts.geom.Geometry |
getBufferedGeometry(java.util.ArrayList urbanAgentList)
This method creates a new geometry off the bounding area and is used in randomPointforNewAgent method because it was noticed that due to rounding errors of switching from an Vivid slolutions Point to OMCircle (float) that the Lat and often changed by a few 0.00 decimal degrees therefore the new agent would be drawn outside of the area which is a problem when trying to move the agent is steprestrict |
int |
getdeterminepop()
|
java.awt.Paint |
getFillPaint()
|
com.vividsolutions.jts.geom.Geometry |
getGeometry()
|
int |
getGisAgentIndex()
|
java.lang.Double |
getid_id()
|
int |
getLANDUSE()
|
int[] |
getNeighbors()
|
com.bbn.openmap.omGraphics.OMGraphic |
getOMGraphic()
|
java.lang.Double |
getPOPU()
|
int |
getRED()
|
int |
getREDNO()
|
java.lang.String |
getSOC()
|
static com.vividsolutions.jts.geom.Geometry |
getUnion(java.util.ArrayList urbanAgentList)
|
java.lang.String |
getWARD_ID()
|
java.lang.String[] |
gisPropertyList()
(non-Javadoc) |
static java.util.HashMap |
percentageResidentTypes(java.util.ArrayList residents)
|
double |
popDensity(boolean popdensityOff)
initially there is a problems with rounding errors of % around 3% but this changes as the model developes. |
void |
postStep(java.util.ArrayList urbanAgentList)
|
void |
preStep()
|
com.bbn.openmap.omGraphics.OMPoint |
randomPoint()
|
static void |
reset()
|
void |
setAREA(double area)
|
void |
setBLUE(int blue)
|
void |
setBLUENO(int actualPopBlue)
|
void |
setdeterminepop(int determinepop)
|
void |
setGisAgentIndex(int index)
|
void |
setid_id(java.lang.Double id_id)
|
void |
setLANDUSE(int landuse)
|
void |
setModel(SegGISModel model)
|
void |
setNeighbors(int[] neighbors)
(non-Javadoc) |
void |
setOMGraphic(com.bbn.openmap.omGraphics.OMGraphic arg0)
|
void |
setPOPU(java.lang.Double popu)
End of Setting up the population percentages * |
void |
setRED(int red)
|
void |
setREDNO(int actuualPopRed)
|
void |
setResidentAgents(java.util.ArrayList residentAgents)
called by SegGISModel.buildModel method, creates resident agents for each urban agent. |
void |
setSOC(java.lang.String soc)
|
void |
setUpResidents()
|
void |
setWARD_ID(java.lang.String ward_id)
|
java.util.HashMap |
soccialclassShouldbe()
creates a hashmap of the types resident percentages within each urban agent, uesed when the population is being created. |
void |
socialClassOfUrbanAgent()
Takes a list of residents and calucates the landuse within a a polygon based on the agents present. |
void |
step()
|
java.util.ArrayList |
urbanAgentContainsResidents(boolean popdensityOff)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.ArrayList residentAgents
private java.util.ArrayList urbanAgentList
SegGISModel model
int gisAgentIndex
int[] neighbors
int landuse
int type
double area
double population
double id
int determinepop
int totalResCountPerCell
com.bbn.openmap.omGraphics.OMGraphic omGraphic
com.vividsolutions.jts.geom.MultiPolygon the_geom
java.lang.String socclass
java.lang.String ward
private java.lang.Object placementOfAgents
private int numResidentAgents
private com.vividsolutions.jts.geom.Point Point
private com.bbn.openmap.omGraphics.OMPoint randomPoints
private java.lang.String socResident
private int ageResident
private static com.vividsolutions.jts.geom.Geometry unionGeometry
private static com.vividsolutions.jts.geom.Geometry bufferedUnionGeometry
private static int resAge
int redPopPercentage
int bluePopPercentage
int redPopulationRedisdents
int bluePopulationRedisdents
int totalPopulationRedisdents
int actuualPopRed
int actualPopBlue
Constructor Detail |
public UrbanAgent()
Method Detail |
public static void reset()
public static com.vividsolutions.jts.geom.Geometry getBufferedGeometry(java.util.ArrayList urbanAgentList)
urbanAgentList
-
public void setResidentAgents(java.util.ArrayList residentAgents)
residentAgents
- public void socialClassOfUrbanAgent()
public void step()
public void preStep()
public void postStep(java.util.ArrayList urbanAgentList)
public void setUpResidents()
public com.bbn.openmap.omGraphics.OMPoint randomPoint()
public double determineLandUse()
public int getGisAgentIndex()
getGisAgentIndex
in interface anl.repast.gis.GisAgent
public void setGisAgentIndex(int index)
setGisAgentIndex
in interface anl.repast.gis.GisAgent
public void setModel(SegGISModel model)
public java.lang.String[] gisPropertyList()
gisPropertyList
in interface anl.repast.gis.GisAgent
whats diplayed when the layer is selected and then right clicked
first is the name it is displayed as (eg Landuse), secondly the
method that gets the infomation (eg getlandus)
public void setNeighbors(int[] neighbors)
setNeighbors
in interface anl.repast.gis.GisAgent
GisAgent.setNeighbors(int[])
public int[] getNeighbors()
getNeighbors
in interface anl.repast.gis.GisAgent
public java.awt.Paint getFillPaint()
getFillPaint
in interface anl.repast.gis.OpenMapAgent
public double getAREA()
public void setAREA(double area)
public double getAreaJTS()
public void setRED(int red)
public int getRED()
public void setBLUE(int blue)
public int getBLUE()
public void setPOPU(java.lang.Double popu)
public java.lang.Double getPOPU()
public void setLANDUSE(int landuse)
public int getLANDUSE()
public void setSOC(java.lang.String soc)
public java.lang.String getSOC()
public void setWARD_ID(java.lang.String ward_id)
public java.lang.String getWARD_ID()
public void setid_id(java.lang.Double id_id)
public java.lang.Double getid_id()
public int determinepop()
public void determinPopulationPercentage()
public java.util.HashMap soccialclassShouldbe()
public void setdeterminepop(int determinepop)
public int getdeterminepop()
public com.bbn.openmap.omGraphics.OMGraphic getOMGraphic()
getOMGraphic
in interface anl.repast.gis.OpenMapAgent
public void setOMGraphic(com.bbn.openmap.omGraphics.OMGraphic arg0)
setOMGraphic
in interface anl.repast.gis.OpenMapAgent
public void setREDNO(int actuualPopRed)
public int getREDNO()
public void setBLUENO(int actualPopBlue)
public int getBLUENO()
public com.vividsolutions.jts.geom.Geometry getGeometry()
public static com.vividsolutions.jts.geom.Geometry getUnion(java.util.ArrayList urbanAgentList)
public java.util.ArrayList urbanAgentContainsResidents(boolean popdensityOff)
public double popDensity(boolean popdensityOff)
popdensityOff
- public static java.util.HashMap countResidentTypes(java.util.ArrayList residents)
public static java.util.HashMap percentageResidentTypes(java.util.ArrayList residents)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |