|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuaa.feral.social.Person
public class Person
Class for the person agent in the simulation
Field Summary | |
---|---|
static int |
Id
|
Constructor Summary | |
---|---|
Person()
Default constructor |
|
Person(Community community,
int age,
Sex sex,
com.vividsolutions.jts.geom.Point location)
Main constructor used for a person |
Method Summary | |
---|---|
int |
getAge()
|
AgentType |
getAgentType()
|
Community |
getCommunity()
|
int |
getComply()
|
double |
getDecisionCost()
|
gov.nasa.worldwind.render.UserFacingIcon |
getIcon()
|
int |
getId()
|
double |
getImportance()
|
com.vividsolutions.jts.geom.Point |
getLocation()
|
double |
getMotivation()
|
double |
getOtherSourceQualityBelief()
|
double |
getOtherSourceQualityChangeBelief()
|
double |
getOtherSourceQuantityBelief()
|
double |
getOtherSourceQuantityChangeBelief()
|
double |
getQualityBelief()
|
double |
getQualityChangeBelief()
|
double |
getQuantityBelief()
|
double |
getQuantityChangeBelief()
|
Sex |
getSex()
|
gov.nasa.worldwind.render.Renderable |
getShape()
|
double |
getSourcePreference()
|
int |
getSourceVisited()
|
Status |
getStatus()
|
AgentType |
getType()
|
double |
getWaterConsumed()
|
WaterUseModel |
getWaterUseModel()
|
double |
getX()
|
double |
getY()
|
void |
initV(com.vividsolutions.jts.geom.Point newPoint)
Method for visualization of a person, used in animation mode |
boolean |
isAccuratePerception()
|
boolean |
isAlive()
|
void |
moveTo(com.vividsolutions.jts.geom.Point newPoint)
Method to move an agent (in animation mode) to a location |
void |
runWaterUseMode()
Method for launching agent water use model (not currently used, as the behavior is done through the community) |
void |
setAccuratePerception(boolean accuratePerception)
|
void |
setAge(int age)
|
void |
setAgentType(AgentType agentType)
|
void |
setAlive(boolean alive)
|
void |
setCommunity(Community community)
|
void |
setComply(int comply)
|
void |
setDecisionCost(double decisionCost)
|
void |
setIcon(gov.nasa.worldwind.render.UserFacingIcon icon)
|
void |
setId(int id)
|
void |
setImportance(double importance)
|
void |
setLocation(com.vividsolutions.jts.geom.Point location)
|
void |
setMotivation(double motivation)
|
void |
setOtherSourceQualityBelief(double otherSourceQualityBelief)
|
void |
setOtherSourceQualityChangeBelief(double otherSourceQualityChangeBelief)
|
void |
setOtherSourceQuantityBelief(double otherSourceQuantityBelief)
|
void |
setOtherSourceQuantityChangeBelief(double otherSourceQuantityChangeBelief)
|
void |
setQualityBelief(double qualityBelief)
|
void |
setQualityChangeBelief(double qualityChangeBelief)
|
void |
setQuantityBelief(double quantityBelief)
|
void |
setQuantityChangeBelief(double quantityChangeBelief)
|
void |
setSex(Sex sex)
|
void |
setSourcePreference(double sourcePreference)
|
void |
setSourceVisited(int sourceVisited)
|
void |
setStatus(Status status)
|
void |
setType(AgentType type)
|
void |
setWaterConsumed(double waterConsumed)
|
void |
setWaterUseModel(WaterUseModel waterUseModel)
|
void |
setX(double x)
|
void |
setY(double y)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int Id
Constructor Detail |
---|
public Person()
public Person(Community community, int age, Sex sex, com.vividsolutions.jts.geom.Point location)
community
- the community the person belongs toage
- initial agesex
- the sexlocation
- person's initial locationMethod Detail |
---|
public double getDecisionCost()
public void setDecisionCost(double decisionCost)
public double getImportance()
public void setImportance(double importance)
public void moveTo(com.vividsolutions.jts.geom.Point newPoint)
newPoint
- public WaterUseModel getWaterUseModel()
public gov.nasa.worldwind.render.UserFacingIcon getIcon()
public void setIcon(gov.nasa.worldwind.render.UserFacingIcon icon)
public void setWaterUseModel(WaterUseModel waterUseModel)
public void initV(com.vividsolutions.jts.geom.Point newPoint)
public void runWaterUseMode()
public int getAge()
public void setAge(int age)
public Sex getSex()
public void setSex(Sex sex)
public AgentType getType()
public void setType(AgentType type)
public boolean isAlive()
public void setAlive(boolean alive)
public int getId()
public void setId(int id)
public Community getCommunity()
public void setCommunity(Community community)
public gov.nasa.worldwind.render.Renderable getShape()
public double getQuantityBelief()
public void setQuantityBelief(double quantityBelief)
public double getQuantityChangeBelief()
public void setQuantityChangeBelief(double quantityChangeBelief)
public double getSourcePreference()
public void setSourcePreference(double sourcePreference)
public double getQualityBelief()
public void setQualityBelief(double qualityBelief)
public double getQualityChangeBelief()
public void setQualityChangeBelief(double qualityChangeBelief)
public double getOtherSourceQuantityBelief()
public void setOtherSourceQuantityBelief(double otherSourceQuantityBelief)
public double getOtherSourceQuantityChangeBelief()
public void setOtherSourceQuantityChangeBelief(double otherSourceQuantityChangeBelief)
public double getOtherSourceQualityChangeBelief()
public void setOtherSourceQualityChangeBelief(double otherSourceQualityChangeBelief)
public double getOtherSourceQualityBelief()
public void setOtherSourceQualityBelief(double otherSourceQualityBelief)
public double getX()
public double getY()
public boolean isAccuratePerception()
public void setAccuratePerception(boolean accuratePerception)
public double getWaterConsumed()
public void setWaterConsumed(double waterConsumed)
public int getSourceVisited()
public void setSourceVisited(int sourceVisited)
public com.vividsolutions.jts.geom.Point getLocation()
public void setLocation(com.vividsolutions.jts.geom.Point location)
public AgentType getAgentType()
public void setAgentType(AgentType agentType)
public Status getStatus()
public void setStatus(Status status)
public void setX(double x)
public void setY(double y)
public double getMotivation()
public void setMotivation(double motivation)
public int getComply()
public void setComply(int comply)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |