Package eu.iv4xr.framework.mainConcepts
Interface IEmotionState
public interface IEmotionState
A generic interface for representing the emotional state of an agent. Since
this is only an interface, you need to provide a concrete implementation of
it. To use it, attach it to an emotional-test-agent using
EmotiveTestAgent.attachEmotionState(IEmotionState)
. Then, whenever
the agent is updated (through a call to its EmotiveTestAgent.update()
method), it will also update the emotion-state attached to it by calling the
method updateEmotion(EmotiveTestAgent)
.- Author:
- Wish
-
Method Summary
Modifier and TypeMethodDescriptionThis will return all the current/latest emotions stored in the emotion state.void
updateEmotion(EmotiveTestAgent agent)
This should implement how the emotion state is updated.
-
Method Details
-
getCurrentEmotion
This will return all the current/latest emotions stored in the emotion state. hy -
updateEmotion
This should implement how the emotion state is updated. The method is called by the agent whenever the methodEmotiveTestAgent.update()
is called, passing to it a reference to the agent to which this emotion state is attached to. This allows this method to inspect the agent state to calculate what emotion that would induce.- Parameters:
agent
- TheEmotiveTestAgent
to which this emotion-state is attached to.
-