|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcrowdmodel.agents.Physiology
public class Physiology
Physiology is one of the architecture main types.
Architecture consists out of a sensor, motor, memory and physiology part.
All there is to describe behaviour, influences factors, processes, characteristics etc.
need to be described in either one of the (derived) main parts of the architecture
Physiology: describes the bio-state of an individual.
It represents the bodily state, characteristics of a human being. Here those
elements are described that are important to represent all non-mental aspects
apart from sensing (e.g. arousal, energy, etc).
Physiology is affected by the external world as well as the mental state of an
individual. On its turn it affects the internal state of an individual.
In the current version physiology includes 3 factors:
- arousal : indicates the level of awareness/alertness (indicated by increased hartbeat + bloodpressure) *check this description + add refs*
- bladder : related to subsistence, based on our festival context: physiological link to go to the toilet
- stomach : related to subsistence, based on our festival context: physiological link to go to the bar
Field Summary | |
---|---|
private double |
d_arousal
|
private double |
d_bladder
|
private java.lang.String |
d_domPhysioString
|
private double |
d_domPhysioValue
|
private double |
d_energy
|
private double |
d_stomach
|
private CrowdAgent |
d_thisAgent
|
private boolean |
d_thisAgentFlag
|
Constructor Summary | |
---|---|
Physiology()
Constructor sets the initial values of arousal, bladder and stomach |
Method Summary | |
---|---|
double |
getArousal()
Returns the arousal level of an individual |
double |
getBladderLevel()
The level of the bladder. [0,1] Full bladder (1) leads to urge to go to the toilet via increase in subsistence dominance |
double |
getDomPhysioLevel()
Returns the dominant influence value given (subsistence-related) physiology This is used to set the satisfaction level of the subsistence goal. |
java.lang.String |
getDomPhysiology()
Returns the dominant influence given (subsistence-related) physiology |
double |
getEnergy()
Returns the energy level of an individual Note: is not used right now! |
double |
getStomachLevel()
The level of the stomach. [0,1] Empty stomach (0) leads to urge to eat/drink something at the bar via subsistence dominance |
protected void |
setArousal(double arousal)
Sets the arousal level of an individual |
protected void |
setBladderLevel(double bladderLevel)
Sets the bladderLevel |
protected void |
setDomPhysiology()
Sets the dominant influence given (subsistence-related) physiology Here the bladder (urge to go to the toilet) and stomach (urge to have eat or drink) are the competitors. |
protected void |
setEnergy(double energy)
Sets the energy level of an individual Note: is not used right now! |
protected void |
setStomachLevel(double stomachLevel)
Sets the stomachLevel |
protected void |
setThisAgent(CrowdAgent thisAgent)
Sets the Agent to whom this physiology belongs This allows for the 'direct' access of methods/vars concerning physiology by the functions in Physiology; As Inheritance works only in one direction, this works around it by being able to access the agent it self The function checks whether this has already been assigned, at this is only done once while initialising. |
void |
updateArousal(double density)
Describes the level of density purely based upon the locally perceived density. |
protected void |
updateBladder()
Updates the bladder level in case nothing is affecting the bladder externally. |
protected void |
updateStomach()
Updates the stomach level in case nothing is affecting the stomach externally. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private CrowdAgent d_thisAgent
private boolean d_thisAgentFlag
private double d_energy
private double d_arousal
private double d_bladder
private double d_stomach
private java.lang.String d_domPhysioString
private double d_domPhysioValue
Constructor Detail |
---|
public Physiology()
Method Detail |
---|
protected void setThisAgent(CrowdAgent thisAgent)
thisAgent
- public double getBladderLevel()
protected void setBladderLevel(double bladderLevel)
bladder
- protected void updateBladder()
public double getStomachLevel()
protected void setStomachLevel(double stomachLevel)
protected void updateStomach()
public double getEnergy()
protected void setEnergy(double energy)
public double getArousal()
protected void setArousal(double arousal)
arousal
- protected void setDomPhysiology()
public java.lang.String getDomPhysiology()
public double getDomPhysioLevel()
public void updateArousal(double density)
density
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |