crowdmodel.agents
Class Fact

java.lang.Object
  extended by crowdmodel.agents.MemoryElement
      extended by crowdmodel.agents.Fact
Direct Known Subclasses:
BehaviourFact, PersonFact

public abstract class Fact
extends MemoryElement

Fact is a type of memoryElement. Memory has 3 types of elements: Facts, Rules and Goals A fact defines a unit of declerative knowledge (a chunk) \\TODO refer to the pages of thesis

Author:
Nanda Wijermans

Field Summary
 
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
Fact()
           
 
Method Summary
 double getRetrievalTime()
          Returns the retrievalTime of this element The behaviour selection process is time dependent, the retrieval of a fact in memory takes time, which is here calculated based upon the activation level this element has.
 
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
 

Constructor Detail

Fact

public Fact()
Method Detail

getRetrievalTime

public double getRetrievalTime()
Returns the retrievalTime of this element The behaviour selection process is time dependent, the retrieval of a fact in memory takes time, which is here calculated based upon the activation level this element has. activation : [-infinity,infinity] following an natural logaritm function
we limit this by [-6,6] as the activation is a ln(x) and given the range of the average memoryElement lies more or less between this range. So the finesses between this range should be reflected in terms of time, larger or smaller numbers are not relevant as it either approaches the max or min amount of retrieval time. The translation between the activation and the retrieval time follows an sigmoid function As this has the characteristics (steep decrease in time, as the activation time rises, however also follows a smoothed threshold when activation is lower than zero.