java.io.Serializable, java.lang.Cloneablepublic class ActionTendencies
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.ArrayList<Action> |
_actions |
|
protected java.util.HashMap<java.lang.String,java.lang.Long> |
_filteredActions |
| Constructor | Description |
|---|---|
ActionTendencies() |
Create a new ActionTendenciesSet
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
AddAction(Action action) |
Adds a Action to the ActionTendencies Set
|
void |
CheckIntegrity(FAtiMA.Core.IntegrityValidator val) |
Checks the Integrity of all the actions by testing if any of them refers
to a SpeechAct not defined
|
void |
ClearFilters() |
|
java.lang.Object |
clone() |
|
java.util.ArrayList<Action> |
getActions() |
|
void |
IgnoreActionForDuration(FAtiMA.Core.ValuedAction va,
long time) |
Temporarly deactives an action tendency.
|
protected boolean |
isIgnored(FAtiMA.Core.ValuedAction va) |
|
void |
Print() |
|
FAtiMA.Core.emotionalState.BaseEmotion |
RecognizeEmotion(FAtiMA.Core.AgentModel am,
FAtiMA.Core.wellFormedNames.Name action) |
|
void |
ReinforceActionTendency(java.lang.String action) |
|
FAtiMA.Core.ValuedAction |
SelectAction(FAtiMA.Core.AgentModel am) |
Selects the most appropriate ActionTendency given the character's
emotional state
|
protected java.util.ArrayList<Action> _actions
protected java.util.HashMap<java.lang.String,java.lang.Long> _filteredActions
public void AddAction(Action action)
action - public java.util.ArrayList<Action> getActions()
public void CheckIntegrity(FAtiMA.Core.IntegrityValidator val)
throws FAtiMA.Core.exceptions.UnknownSpeechActException
val - - an IntegrityValidator used do detect undefined speechActsFAtiMA.Core.exceptions.UnknownSpeechActException - - thrown when an action references a SpeechAct not definedIntegrityValidatorpublic void IgnoreActionForDuration(FAtiMA.Core.ValuedAction va,
long time)
va - - the action tendency to be deactivatedtime - - the amount of time that the action should be deactivatedpublic void ClearFilters()
protected boolean isIgnored(FAtiMA.Core.ValuedAction va)
public FAtiMA.Core.ValuedAction SelectAction(FAtiMA.Core.AgentModel am)
am - - the agent's emotional state that influences the actions
performedpublic FAtiMA.Core.emotionalState.BaseEmotion RecognizeEmotion(FAtiMA.Core.AgentModel am,
FAtiMA.Core.wellFormedNames.Name action)
public void ReinforceActionTendency(java.lang.String action)
public void Print()
public java.lang.Object clone()
clone in class java.lang.Object