|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ucl.casa.andrew.phd.segModelFourTypes.UrbanAgent
Extends basic polygon agent and acts as a container for resident agents
Field Summary | |
(package private) int |
actualPopBlue
|
(package private) int |
actualPopGreen
|
(package private) int |
actualPopRed
|
(package private) int |
actualPopWhite
|
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) int |
greenPopPercentage
|
(package private) int |
greenPopulationRedisdents
|
(package private) double |
id
|
(package private) int |
landuse
|
(package private) static org.apache.log4j.Category |
log
|
(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
|
(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
|
(package private) int |
whitePopPercentage
|
(package private) int |
whitePopulationRedisdents
|
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()
|
int |
getGREEN()
|
int |
getGREENNO()
|
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()
|
int |
getWHITE()
|
int |
getWHITENO()
|
java.lang.String[] |
gisPropertyList()
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) |
static java.util.HashMap |
percentageResidentTypes(java.util.ArrayList residents)
|
double |
popDensity(boolean popdensityOff)
popDensity Method * * initially there is a problems with rounding errors of % * around 3% but this changes as the model developes. |
void |
postStep(java.util.ArrayList urbanAgentList)
Updates the urban fabric |
void |
preStep()
|
com.bbn.openmap.omGraphics.OMPoint |
randomPoint()
chosing the randon placement of points within the polygon OMPoint is the class, randomPoint is the variable |
static void |
reset()
need to reset this as unionGeometry is a static not an instance if it is not reset the program will only run for one shp. |
void |
setAREA(double area)
|
void |
setBLUE(int blue)
|
void |
setBLUENO(int actualPopBlue)
|
void |
setdeterminepop(int determinepop)
|
void |
setGisAgentIndex(int index)
|
void |
setGREEN(int green)
|
void |
setGREENNO(int actualPopGreen)
|
void |
setid_id(java.lang.Double id_id)
|
void |
setLANDUSE(int landuse)
|
void |
setModel(SegGISModel model)
|
void |
setNeighbors(int[] neighbors)
|
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 buildModel method, creates resident agents for each urban agent. |
void |
setSOC(java.lang.String soc)
|
void |
setUpResidents()
Set up initial position of the omCircle agents which is called in the buildmodel method of SegGISModel. |
void |
setWARD_ID(java.lang.String ward_id)
|
void |
setWHITE(int white)
|
void |
setWHITENO(int actualPopWhite)
|
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 |
static org.apache.log4j.Category log
private java.util.ArrayList residentAgents
private java.util.ArrayList urbanAgentList
SegGISModel model
int gisAgentIndex
int[] neighbors
int landuse
int type
double area
double population
int actualPopRed
int actualPopBlue
int actualPopGreen
int actualPopWhite
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 greenPopPercentage
int whitePopPercentage
int redPopulationRedisdents
int bluePopulationRedisdents
int greenPopulationRedisdents
int whitePopulationRedisdents
int totalPopulationRedisdents
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)
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
GisAgent.gisPropertyList()
public void setNeighbors(int[] neighbors)
setNeighbors
in interface anl.repast.gis.GisAgent
public int[] getNeighbors()
getNeighbors
in interface anl.repast.gis.GisAgent
public void setREDNO(int actuualPopRed)
public int getREDNO()
public void setBLUENO(int actualPopBlue)
public int getBLUENO()
public void setGREENNO(int actualPopGreen)
public int getGREENNO()
public void setWHITENO(int actualPopWhite)
public int getWHITENO()
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 setGREEN(int green)
public int getGREEN()
public void setWHITE(int white)
public int getWHITE()
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 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 |