FAtiMA.Core.IIntegrityTester, IReactionNode, java.io.Serializable, java.lang.Cloneablepublic class EmotionalReactionTreeNode extends java.lang.Object implements java.io.Serializable, IReactionNode
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
actionNode |
|
static java.lang.String |
param1Node |
|
static java.lang.String |
param2Node |
|
static java.lang.String |
param3Node |
|
static java.lang.String |
subjectNode |
|
static java.lang.String |
targetNode |
| Constructor | Description |
|---|---|
EmotionalReactionTreeNode(java.lang.String type) |
Creates a new EmotionalReactionTreeNode
|
EmotionalReactionTreeNode(java.lang.String type,
java.lang.String value) |
Deprecated.
do not use this constructor anymore, use
EmotionalReactionTreeNode(String type) instead
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
AddEmotionalReaction(Reaction er) |
Adds an Emotional Reaction rule bellow this node
|
void |
CheckIntegrity(FAtiMA.Core.IntegrityValidator val) |
Checks the integrity of all emotional Reaction rules stored bellow the node,
testing if one of them refers a SpeechAct not defined.
|
java.lang.Object |
clone() |
|
Reaction |
getReaction(FAtiMA.Core.sensorEffector.Event e) |
|
Reaction |
MatchEvent(FAtiMA.Core.sensorEffector.Event e) |
Tries to match a given event with all Reaction rules stored under this node.
|
java.lang.String |
toString() |
Converts the node to a String
|
public static java.lang.String actionNode
public static java.lang.String subjectNode
public static java.lang.String targetNode
public static java.lang.String param1Node
public static java.lang.String param2Node
public static java.lang.String param3Node
public EmotionalReactionTreeNode(java.lang.String type,
java.lang.String value)
type - - the type of the node: action,subject,target,nullvalue - - not used for anythingpublic EmotionalReactionTreeNode(java.lang.String type)
type - - the type of the node: action,subject,target,nullpublic void AddEmotionalReaction(Reaction er)
er - - the Reaction to addpublic void CheckIntegrity(FAtiMA.Core.IntegrityValidator val)
throws FAtiMA.Core.exceptions.UnknownSpeechActException
CheckIntegrity in interface FAtiMA.Core.IIntegrityTesterFAtiMA.Core.exceptions.UnknownSpeechActExceptionpublic Reaction MatchEvent(FAtiMA.Core.sensorEffector.Event e)
e - - the event o match againts the reaction rulespublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in interface IReactionNodeclone in class java.lang.Objectpublic Reaction getReaction(FAtiMA.Core.sensorEffector.Event e)
getReaction in interface IReactionNode