crowdmodel.agents
Class BehaviourFact
java.lang.Object
crowdmodel.agents.MemoryElement
crowdmodel.agents.Fact
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
|
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.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 |
d_expectancies
java.util.HashMap<java.lang.String,java.lang.Double> d_expectancies
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
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