|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcrowdmodel.agents.MemoryElement
crowdmodel.agents.Goal
public class Goal
Goal is a type of memoryElement. Memory has 3 types of elements: Goals, Facts, and Rules A Goal represents the drives/desired stated of an agent In this structure an agent has four abstract goals (identity, social, safety, subsistence) Identity : represents the goal to be a unique person //TODO check beschrijving Social : represents the goal to belong to a group Safety : represents the goal to remain safe Subsistence : represent the goal to keep energy (sleep, eat, drink, etc) The theoretical grounding for this can be found in: - behaviour is goal-driven: - needs: Max Neef (1993), Wander Jager (2000,2001) - motives: Maslow (1943) - biological drives: ...MIT encyclopedia //TODO refer to page in thesis
Field Summary | |
---|---|
private double |
d_dominance
|
private double |
d_preference
|
private double |
d_satisfaction
|
Fields inherited from class crowdmodel.agents.MemoryElement |
---|
d_activation, d_baseLevel, d_contextLevel, d_id, d_name, d_thisAgent, d_thisAgentFlag, d_thisMemory, d_thisMemoryFlag |
Constructor Summary | |
---|---|
Goal(java.lang.String name,
double satis,
double pref)
Constructor creates a goal and initialises it with a initial level of satisfaction and a preferred level of satisfaction of this goal |
Method Summary | |
---|---|
double |
getD_dominance()
Returns the dominance of the current goal |
java.lang.String |
getName()
Returns the name label of goal |
double |
getPreference()
Returns the preferred level of fulfilment of this goal |
double |
getSatisfaction()
Returns the current level of satisfaction of this goal |
void |
setPreference(double pref)
Sets the preferred fulfilment of this goal |
void |
setSatisfaction(double satis)
Sets the current level of satisfaction of this goal and also calculates the new value for dominance |
void |
updateDominance()
Calculates the dominance of the current goal based on the preferred level of fulfilment and the real level of fulfilment dominance = preferred level - current level |
Methods inherited from class crowdmodel.agents.MemoryElement |
---|
approxB, contextActivation, getActivation, getID, getLastPrimeTime, prime, setThisAgent, setThisMemory, toString, updateActivation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private double d_satisfaction
private double d_preference
private double d_dominance
Constructor Detail |
---|
public Goal(java.lang.String name, double satis, double pref)
Method Detail |
---|
public void updateDominance()
public void setSatisfaction(double satis)
public double getSatisfaction()
public void setPreference(double pref)
public double getPreference()
public java.lang.String getName()
getName
in class MemoryElement
public double getD_dominance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |