crowdmodel.agents
Class BehaviourRule

java.lang.Object
  extended by crowdmodel.agents.MemoryElement
      extended by crowdmodel.agents.Rule
          extended by crowdmodel.agents.BehaviourRule
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
LocomotionRule, ManipulationRule

public class BehaviourRule
extends Rule
implements java.lang.Comparable

A behaviour rule represents an interaction (or manipulation) with the external world. Implements a body/motor movement.

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
BehaviourRule()
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 void updateActivation()
          Overrides the update activation function of a general memory element, as I keep track of the behaviours given their activation level in a treeSet: d_behaviours This gives rise to a dynamical hierarchy (changeable ordening, TOCHECK is dit een 5-cent version van een 5dollar word) After the activation of a behaviour is updated By removing from and immediately adding the behaviour to the treeSet the
 
Methods inherited from class crowdmodel.agents.Rule
execute
 
Methods inherited from class crowdmodel.agents.MemoryElement
approxB, contextActivation, getActivation, getID, getLastPrimeTime, getName, prime, setThisAgent, setThisMemory, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BehaviourRule

public BehaviourRule()
Method Detail

updateActivation

public void updateActivation()
Overrides the update activation function of a general memory element, as I keep track of the behaviours given their activation level in a treeSet: d_behaviours This gives rise to a dynamical hierarchy (changeable ordening, TOCHECK is dit een 5-cent version van een 5dollar word) After the activation of a behaviour is updated By removing from and immediately adding the behaviour to the treeSet the

Overrides:
updateActivation in class MemoryElement

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable