uaa.feral.social
Class Person

java.lang.Object
  extended by uaa.feral.social.Person

public class Person
extends java.lang.Object

Class for the person agent in the simulation

Author:

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

Id

public static int Id
Constructor Detail

Person

public Person()
Default constructor


Person

public Person(Community community,
              int age,
              Sex sex,
              com.vividsolutions.jts.geom.Point location)
Main constructor used for a person

Parameters:
community - the community the person belongs to
age - initial age
sex - the sex
location - person's initial location
Method Detail

getDecisionCost

public double getDecisionCost()

setDecisionCost

public void setDecisionCost(double decisionCost)

getImportance

public double getImportance()

setImportance

public void setImportance(double importance)

moveTo

public void moveTo(com.vividsolutions.jts.geom.Point newPoint)
Method to move an agent (in animation mode) to a location

Parameters:
newPoint -

getWaterUseModel

public WaterUseModel getWaterUseModel()

getIcon

public gov.nasa.worldwind.render.UserFacingIcon getIcon()

setIcon

public void setIcon(gov.nasa.worldwind.render.UserFacingIcon icon)

setWaterUseModel

public void setWaterUseModel(WaterUseModel waterUseModel)

initV

public void initV(com.vividsolutions.jts.geom.Point newPoint)
Method for visualization of a person, used in animation mode


runWaterUseMode

public void runWaterUseMode()
Method for launching agent water use model (not currently used, as the behavior is done through the community)


getAge

public int getAge()

setAge

public void setAge(int age)

getSex

public Sex getSex()

setSex

public void setSex(Sex sex)

getType

public AgentType getType()

setType

public void setType(AgentType type)

isAlive

public boolean isAlive()

setAlive

public void setAlive(boolean alive)

getId

public int getId()

setId

public void setId(int id)

getCommunity

public Community getCommunity()

setCommunity

public void setCommunity(Community community)

getShape

public gov.nasa.worldwind.render.Renderable getShape()

getQuantityBelief

public double getQuantityBelief()

setQuantityBelief

public void setQuantityBelief(double quantityBelief)

getQuantityChangeBelief

public double getQuantityChangeBelief()

setQuantityChangeBelief

public void setQuantityChangeBelief(double quantityChangeBelief)

getSourcePreference

public double getSourcePreference()

setSourcePreference

public void setSourcePreference(double sourcePreference)

getQualityBelief

public double getQualityBelief()

setQualityBelief

public void setQualityBelief(double qualityBelief)

getQualityChangeBelief

public double getQualityChangeBelief()

setQualityChangeBelief

public void setQualityChangeBelief(double qualityChangeBelief)

getOtherSourceQuantityBelief

public double getOtherSourceQuantityBelief()

setOtherSourceQuantityBelief

public void setOtherSourceQuantityBelief(double otherSourceQuantityBelief)

getOtherSourceQuantityChangeBelief

public double getOtherSourceQuantityChangeBelief()

setOtherSourceQuantityChangeBelief

public void setOtherSourceQuantityChangeBelief(double otherSourceQuantityChangeBelief)

getOtherSourceQualityChangeBelief

public double getOtherSourceQualityChangeBelief()

setOtherSourceQualityChangeBelief

public void setOtherSourceQualityChangeBelief(double otherSourceQualityChangeBelief)

getOtherSourceQualityBelief

public double getOtherSourceQualityBelief()

setOtherSourceQualityBelief

public void setOtherSourceQualityBelief(double otherSourceQualityBelief)

getX

public double getX()

getY

public double getY()

isAccuratePerception

public boolean isAccuratePerception()

setAccuratePerception

public void setAccuratePerception(boolean accuratePerception)

getWaterConsumed

public double getWaterConsumed()

setWaterConsumed

public void setWaterConsumed(double waterConsumed)

getSourceVisited

public int getSourceVisited()

setSourceVisited

public void setSourceVisited(int sourceVisited)

getLocation

public com.vividsolutions.jts.geom.Point getLocation()

setLocation

public void setLocation(com.vividsolutions.jts.geom.Point location)

getAgentType

public AgentType getAgentType()

setAgentType

public void setAgentType(AgentType agentType)

getStatus

public Status getStatus()

setStatus

public void setStatus(Status status)

setX

public void setX(double x)

setY

public void setY(double y)

getMotivation

public double getMotivation()

setMotivation

public void setMotivation(double motivation)

getComply

public int getComply()

setComply

public void setComply(int comply)