FAtiMA.Core.IIntegrityTester, FAtiMA.Core.wellFormedNames.IGroundable, IReactionNode, java.io.Serializable, java.lang.Cloneablepublic class Reaction extends java.lang.Object implements java.io.Serializable, FAtiMA.Core.wellFormedNames.IGroundable, IReactionNode
| Modifier and Type | Field | Description |
|---|---|---|
protected java.lang.Float |
_desirability |
|
protected java.lang.Float |
_desirabilityForOther |
|
protected FAtiMA.Core.sensorEffector.Event |
_event |
|
protected java.lang.Float |
_like |
|
protected FAtiMA.Core.wellFormedNames.Symbol |
_other |
|
protected java.lang.Float |
_praiseworthiness |
| Constructor | Description |
|---|---|
Reaction() |
Creates a new empty Emotional Reaction
|
Reaction(FAtiMA.Core.sensorEffector.Event event) |
Creates a new empty Emotional Reaction
|
Reaction(java.lang.Float desirability,
java.lang.Float desirabilityForOther,
java.lang.Float praiseworthiness,
FAtiMA.Core.wellFormedNames.Symbol other) |
Creates a new Emotional Reaction
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
CheckIntegrity(FAtiMA.Core.IntegrityValidator val) |
Checks the integrity of the Reaction by testing if the reaction
references an event with an speechAct not defined.
|
java.lang.Object |
clone() |
|
java.lang.Float |
getDesirability() |
Gets the appraisal variable: Desirability of the event
|
java.lang.Float |
getDesirabilityForOther() |
Gets the appraisal variable: DesirabilityForOther of the event
|
FAtiMA.Core.sensorEffector.Event |
getEvent() |
Gets the event referenced by the emotional reaction
|
java.lang.Float |
getLike() |
|
FAtiMA.Core.wellFormedNames.Symbol |
getOther() |
Gets the name of the character that the appraisal variable
desirabilityForOther refers
|
java.lang.Float |
getPraiseworthiness() |
Gets the appraisal variable: Praiseworthiness of the event
|
Reaction |
getReaction(FAtiMA.Core.sensorEffector.Event e) |
|
boolean |
isGrounded() |
Indicates if the Predicate is grounded (no unbound variables in it's WFN)
Example: Stronger(Luke,John) is grounded while Stronger(John,[X]) is not.
|
void |
MakeGround(FAtiMA.Core.wellFormedNames.Substitution subst) |
Applies a set of substitutions to the object, grounding it.
|
void |
MakeGround(java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindings) |
Applies a set of substitutions to the object, grounding it.
|
boolean |
MatchEvent(FAtiMA.Core.sensorEffector.Event eventPerception) |
tests if a given event matches the emotional Reaction
|
void |
ReplaceUnboundVariables(int variableID) |
Replaces all unbound variables in the object by applying a numeric
identifier to each one.
|
void |
setDesirability(java.lang.Float f) |
Sets the appraisal variable: Desirability
|
void |
setDesirabilityForOther(java.lang.Float f) |
Sets the appraisal variable: DesirabilityForOther
|
void |
setEvent(FAtiMA.Core.sensorEffector.Event event) |
Sets the event that the emotional reaction references
|
void |
setLike(java.lang.Float f) |
|
void |
setPraiseworthiness(java.lang.Float f) |
Sets the appraisal variable: Praiseworhtiness
|
java.lang.String |
toString() |
Converts the emotional Reaction to a String
|
protected java.lang.Float _desirability
protected java.lang.Float _desirabilityForOther
protected java.lang.Float _praiseworthiness
protected java.lang.Float _like
protected FAtiMA.Core.wellFormedNames.Symbol _other
protected FAtiMA.Core.sensorEffector.Event _event
public Reaction()
public Reaction(FAtiMA.Core.sensorEffector.Event event)
event - - the event that this reaction referencespublic Reaction(java.lang.Float desirability,
java.lang.Float desirabilityForOther,
java.lang.Float praiseworthiness,
FAtiMA.Core.wellFormedNames.Symbol other)
desirability - - the desirability of the eventdesirabilityForOther - - the desirability of the event for other agentspraiseworthiness - - the paiseworthiness of the eventother - - which character does the desirabilityForOther variable
referencepublic void CheckIntegrity(FAtiMA.Core.IntegrityValidator val)
throws FAtiMA.Core.exceptions.UnknownSpeechActException
CheckIntegrity in interface FAtiMA.Core.IIntegrityTesterFAtiMA.Core.exceptions.UnknownSpeechActExceptionpublic java.lang.Float getDesirability()
public java.lang.Float getDesirabilityForOther()
public java.lang.Float getLike()
public FAtiMA.Core.sensorEffector.Event getEvent()
public java.lang.Float getPraiseworthiness()
public FAtiMA.Core.wellFormedNames.Symbol getOther()
public boolean MatchEvent(FAtiMA.Core.sensorEffector.Event eventPerception)
eventPerception - - the event to test with the Reactionpublic void setDesirability(java.lang.Float f)
f - - the new value of Desirability for the reactionpublic void setDesirabilityForOther(java.lang.Float f)
f - - the new value of DesirabilityForOther for the reactionpublic void setLike(java.lang.Float f)
public void setEvent(FAtiMA.Core.sensorEffector.Event event)
event - - the new event referenced by the reactionpublic void setPraiseworthiness(java.lang.Float f)
f - - the new value of Praiseworthiness for the reactionpublic void ReplaceUnboundVariables(int variableID)
ReplaceUnboundVariables in interface FAtiMA.Core.wellFormedNames.IGroundablevariableID - - the identifier to be appliedpublic void MakeGround(java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindings)
MakeGround in interface FAtiMA.Core.wellFormedNames.IGroundablebindings - - A list of substitutions of the type "[Variable]/value"Substitutionpublic void MakeGround(FAtiMA.Core.wellFormedNames.Substitution subst)
MakeGround in interface FAtiMA.Core.wellFormedNames.IGroundablesubst - - a substitution of the type "[Variable]/value"Substitutionpublic boolean isGrounded()
isGrounded in interface FAtiMA.Core.wellFormedNames.IGroundablepublic java.lang.Object clone()
clone in interface IReactionNodeclone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic Reaction getReaction(FAtiMA.Core.sensorEffector.Event e)
getReaction in interface IReactionNode