crowdmodel.agents
Class BehaviourFact

java.lang.Object
  extended by crowdmodel.agents.MemoryElement
      extended by crowdmodel.agents.Fact
          extended by crowdmodel.agents.BehaviourFact

public class BehaviourFact
extends Fact

Describes a specific type of Fact (MemoryElement) related to the behaviours an agent has. A behaviour fact typically contains the expectations an agent has in executing this behaviour related to the 4 goals an individual has TODO refer to pages in thesis

Author:
Nanda Wijermans

Field Summary
(package private)  java.util.HashMap<java.lang.String,java.lang.Double> d_expectancies
           
 
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
BehaviourFact(java.lang.String name, double expIdentity, double expSocial, double expSafety, double expSubs)
          Constructor creates a behaviour fact given the initial expectation setting
 
Method Summary
 double getExpectancy(java.lang.String goalName)
          Returns the expectancy of the goal asked for this is the expectancy an agent has in fulfilling the desired goal when executing this behaviour
 void setExpectancy(java.lang.String goalName, double expectancy)
          Sets an expectancy value of a specified goal
 
Methods inherited from class crowdmodel.agents.Fact
getRetrievalTime
 
Methods inherited from class crowdmodel.agents.MemoryElement
approxB, contextActivation, getActivation, getID, getLastPrimeTime, getName, 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_expectancies

java.util.HashMap<java.lang.String,java.lang.Double> d_expectancies
Constructor Detail

BehaviourFact

public BehaviourFact(java.lang.String name,
                     double expIdentity,
                     double expSocial,
                     double expSafety,
                     double expSubs)
Constructor creates a behaviour fact given the initial expectation setting

Method Detail

setExpectancy

public void setExpectancy(java.lang.String goalName,
                          double expectancy)
Sets an expectancy value of a specified goal


getExpectancy

public double getExpectancy(java.lang.String goalName)
Returns the expectancy of the goal asked for this is the expectancy an agent has in fulfilling the desired goal when executing this behaviour