|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcrowdmodel.agents.MemoryElement
public abstract class MemoryElement
A memoryElement is a component of the Memory. Represents an atom of knowledge in this structure. The forms of knowledge are either a goal, a fact or a rule specified in the derived classes In general, every memoryElement can be activated, which makes it more salient (approachable), and is linked to other memory elements in an associative way (i.e. stronger, weaker links).
Field Summary | |
---|---|
(package private) double |
d_activation
|
protected double |
d_baseLevel
|
protected double |
d_contextLevel
|
(package private) int |
d_id
|
private static int |
d_K
|
private double |
d_n
|
(package private) java.lang.String |
d_name
|
private java.util.LinkedList<java.lang.Double> |
d_T
|
private double |
d_Tfirst
|
(package private) CrowdAgent |
d_thisAgent
|
(package private) boolean |
d_thisAgentFlag
|
(package private) Memory |
d_thisMemory
|
(package private) boolean |
d_thisMemoryFlag
|
private double |
d_tLastPrime
|
Constructor Summary | |
---|---|
MemoryElement()
Constructor |
Method Summary | |
---|---|
void |
approxB()
Function calculates the approximation of the base-level activation of a memoryElement. |
void |
contextActivation()
|
double |
getActivation()
|
int |
getID()
|
double |
getLastPrimeTime()
Returns the tick in which this memoryElement was lastly primed |
java.lang.String |
getName()
|
void |
prime()
Primes a memoryElement Psy terms: This means that a concept in memory is getting more salient/dominant. |
void |
setThisAgent(CrowdAgent thisAgent)
Sets the Agent where this MemoryElement belongs to This allows for the 'direct' access of methods/vars concerning the Agent by the functions in the MemoryElements; The function checks whether this has already been assigned, at this is only done once while initialising. |
void |
setThisMemory(Memory thisMemory)
Sets the Memory where this MemoryElement belongs to This allows for the 'direct' access of methods/vars concerning memory by the functions in the MemoryElements; The function checks whether this has already been assigned, at this is only done once while initialising. |
java.lang.String |
toString()
|
void |
updateActivation()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
int d_id
CrowdAgent d_thisAgent
Memory d_thisMemory
boolean d_thisAgentFlag
boolean d_thisMemoryFlag
java.lang.String d_name
double d_activation
protected double d_baseLevel
protected double d_contextLevel
private static final int d_K
private double d_Tfirst
private java.util.LinkedList<java.lang.Double> d_T
private double d_n
private double d_tLastPrime
Constructor Detail |
---|
public MemoryElement()
Method Detail |
---|
public void prime()
public void contextActivation()
public void approxB()
public void updateActivation()
public void setThisAgent(CrowdAgent thisAgent)
thisAgent
- public void setThisMemory(Memory thisMemory)
thisAgent
- public java.lang.String getName()
public double getActivation()
public int getID()
public java.lang.String toString()
toString
in class java.lang.Object
public double getLastPrimeTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |