|
|||||||||||
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.segModelPolygonRandom.UrbanAgent
THis class extends the basicPolygon class and allows polgygons to be agents
Field Summary | |
(package private) double |
area
|
(package private) int |
gisAgentIndex
|
(package private) boolean |
happy
|
(package private) double |
id
|
(package private) SegGISModelRandom |
model
|
private java.util.ArrayList |
myNeighbors
|
(package private) int[] |
neighbors
|
(package private) int |
numberOfTimeChanged
|
(package private) com.bbn.openmap.omGraphics.OMGraphic |
omGraphic
|
(package private) double |
population
|
(package private) java.lang.String |
socclass
|
(package private) com.vividsolutions.jts.geom.MultiPolygon |
the_geom
|
(package private) java.lang.String |
type
|
(package private) java.lang.String |
ward
|
Constructor Summary | |
UrbanAgent()
|
Method Summary | |
double |
determineLandUse()
|
void |
evaluateAndSetHappiness(java.util.ArrayList urbanAgentList)
Evaluates and sets the agents happyness based on its surrounding neighbourhood and the agents indervidial prefferences for differnet types of agents. |
double |
getAREA()
|
double |
getAreaJTS()
|
java.awt.Paint |
getFillPaint()
|
com.vividsolutions.jts.geom.Geometry |
getGeometry()
|
int |
getGisAgentIndex()
|
boolean |
getHappyness()
Gets the current agents Happyness (either true or false) |
double |
getid_id()
|
java.util.ArrayList |
getMyNeighbors()
Gets the agents neighbours |
int[] |
getNeighbors()
|
int |
getNumberOfTimeChanged()
|
com.bbn.openmap.omGraphics.OMGraphic |
getOMGraphic()
|
double |
getPopModel()
|
double |
getPOPU()
|
java.lang.String |
getSOC()
|
java.lang.String |
getSocialClass()
|
java.lang.String |
getType()
Gets the agents type |
java.lang.String |
getWARD_ID()
|
java.lang.String[] |
gisPropertyList()
|
void |
move(java.util.ArrayList urbanAgentList,
java.lang.String type)
If the agent is unhappy in its current location it moves to an empty area. |
void |
postStep(java.util.ArrayList urbanAgentList)
|
void |
preStep()
|
void |
setAREA(double area)
|
void |
setGisAgentIndex(int index)
|
void |
setHappyness(boolean residentHappy)
Sets the current agents Happyness(either true or false) |
void |
setid_id(java.lang.Double id_id)
|
void |
setModel(SegGISModelRandom model)
|
void |
setMyNeighbors(java.util.ArrayList arraylist)
Sets the agents neighbours |
void |
setNeighbors(int[] neighbors)
|
void |
setNumberOfTimeChanged(int num)
|
void |
setOMGraphic(com.bbn.openmap.omGraphics.OMGraphic arg0)
|
void |
setPopModel(double popu)
|
void |
setPOPU(java.lang.Double popu)
|
void |
setSocialClass(java.lang.String soc)
|
void |
setType(java.lang.String string)
Sets the agents type |
void |
setWARD_ID(java.lang.String ward_id)
|
void |
step(java.util.ArrayList urbanAgentList)
Does the agent move? |
void |
testNeighbours(int[] neighbors)
used as a test to see that the neigbourhood calculation was working currectly |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
SegGISModelRandom model
int gisAgentIndex
int[] neighbors
java.lang.String type
double area
double population
int numberOfTimeChanged
private java.util.ArrayList myNeighbors
double id
com.bbn.openmap.omGraphics.OMGraphic omGraphic
com.vividsolutions.jts.geom.MultiPolygon the_geom
java.lang.String socclass
java.lang.String ward
boolean happy
Constructor Detail |
public UrbanAgent()
Method Detail |
public void step(java.util.ArrayList urbanAgentList)
urbanAgentList
- public void move(java.util.ArrayList urbanAgentList, java.lang.String type)
urbanAgentList
- type
- public boolean getHappyness()
public void setHappyness(boolean residentHappy)
residentHappy
- public void evaluateAndSetHappiness(java.util.ArrayList urbanAgentList)
urbanAgentList
- public void setMyNeighbors(java.util.ArrayList arraylist)
arraylist
- public java.util.ArrayList getMyNeighbors()
public void setType(java.lang.String string)
string
- public java.lang.String getType()
public void preStep()
public void postStep(java.util.ArrayList urbanAgentList)
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(SegGISModelRandom model)
public java.lang.String[] gisPropertyList()
gisPropertyList
in interface anl.repast.gis.GisAgent
public void setNeighbors(int[] neighbors)
setNeighbors
in interface anl.repast.gis.GisAgent
public int[] getNeighbors()
getNeighbors
in interface anl.repast.gis.GisAgent
public void testNeighbours(int[] neighbors)
neighbors
- public java.awt.Paint getFillPaint()
getFillPaint
in interface anl.repast.gis.OpenMapAgent
public double getAREA()
public void setAREA(double area)
public com.vividsolutions.jts.geom.Geometry getGeometry()
public double getAreaJTS()
public int getNumberOfTimeChanged()
public void setNumberOfTimeChanged(int num)
public void setPOPU(java.lang.Double popu)
public double getPOPU()
public void setPopModel(double popu)
public double getPopModel()
public void setSocialClass(java.lang.String soc)
public java.lang.String getSocialClass()
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 double getid_id()
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |