crowdmodel.agents
Class Goal

java.lang.Object
  extended by crowdmodel.agents.MemoryElement
      extended by crowdmodel.agents.Goal

public class Goal
extends MemoryElement

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

Author:
Nanda Wijermans

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

d_satisfaction

private double d_satisfaction

d_preference

private double d_preference

d_dominance

private double d_dominance
Constructor Detail

Goal

public 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 Detail

updateDominance

public 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


setSatisfaction

public void setSatisfaction(double satis)
Sets the current level of satisfaction of this goal and also calculates the new value for dominance


getSatisfaction

public double getSatisfaction()
Returns the current level of satisfaction of this goal


setPreference

public void setPreference(double pref)
Sets the preferred fulfilment of this goal


getPreference

public double getPreference()
Returns the preferred level of fulfilment of this goal


getName

public java.lang.String getName()
Returns the name label of goal

Overrides:
getName in class MemoryElement
Returns:
Name of the memory element

getD_dominance

public double getD_dominance()
Returns the dominance of the current goal

Returns: