jchrest.architecture
Class EmotionAssociator

java.lang.Object
  extended by jchrest.architecture.EmotionAssociator

public class EmotionAssociator
extends java.lang.Object

A mechanism for managing the associations between nodes and emotions


Constructor Summary
EmotionAssociator()
           
 
Method Summary
 void addEmotionalTrace(Node node, EmotionalTrace trace)
           
 void computeRW(Emotion emotion, Node node, java.util.List<Node> cues)
           
 Emotion computeVAll(java.util.List<Node> cues)
           
 void emoteAndPropagateAcrossModalities(Stm[] stms, int time)
          Retrieve most recent emotion for each STM, and propagate those to all other nodes still in STM.
 void emotionTraceToStdOut(Node node)
           
 EmotionalTrace getEmotionalTrace(Node node)
           
 Emotion getRWEmotion(Node node)
           
 void learnEmotion(Emotion emotion, Node node, java.util.List<Node> cues, int time)
           
 void setDefaultAlpha(double alpha)
           
 void setRWEmotion(Node node, Emotion emotion)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmotionAssociator

public EmotionAssociator()
Method Detail

addEmotionalTrace

public void addEmotionalTrace(Node node,
                              EmotionalTrace trace)

setDefaultAlpha

public void setDefaultAlpha(double alpha)

getEmotionalTrace

public EmotionalTrace getEmotionalTrace(Node node)

getRWEmotion

public Emotion getRWEmotion(Node node)

setRWEmotion

public void setRWEmotion(Node node,
                         Emotion emotion)

emoteAndPropagateAcrossModalities

public void emoteAndPropagateAcrossModalities(Stm[] stms,
                                              int time)
Retrieve most recent emotion for each STM, and propagate those to all other nodes still in STM.


learnEmotion

public void learnEmotion(Emotion emotion,
                         Node node,
                         java.util.List<Node> cues,
                         int time)

computeVAll

public Emotion computeVAll(java.util.List<Node> cues)

computeRW

public void computeRW(Emotion emotion,
                      Node node,
                      java.util.List<Node> cues)

emotionTraceToStdOut

public void emotionTraceToStdOut(Node node)