Package FAtiMA.Core
Class ValuedAction
java.lang.Object
FAtiMA.Core.ValuedAction
- All Implemented Interfaces:
Serializable
Action that has associated with it an emotion. This emotion was responsible
in part for the selection of the action, and can be used to select between
conflicting actions. The action supported by the strongest emotion wins.
- Author:
- Joao Dias
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionValuedAction(String component, Name action, float value) ValuedAction(String component, Name action, ActiveEmotion emotion) Creates a new ValuedAction -
Method Summary
Modifier and TypeMethodDescriptionGets the Action's nameGets the Emotion that supports this actionfloatGets an emotional value associated with the actionvoidsetEmotion(ActiveEmotion emotion) Sets the Emotion associated with the actiontoString()Converts the ValuedAction to a String
-
Constructor Details
-
ValuedAction
Creates a new ValuedAction- Parameters:
action- - the actionemotion- - the emotion associated to the action
-
ValuedAction
-
-
Method Details
-
getComponent
-
getAction
Gets the Action's name- Returns:
- the action to perform
-
getEmotion
Gets the Emotion that supports this action- Returns:
- the Emotion associated with the action
-
getValue
Gets an emotional value associated with the action- Returns:
- a float representing how emotionally important is the action
-
setEmotion
Sets the Emotion associated with the action- Parameters:
emotion- - the new ActiveEmotion to associate to the action
-
toString
Converts the ValuedAction to a String
-