|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objectcz.cuni.amis.pogamut.ut2004.examples.emotionalbot.ALMA
public class ALMA
Provides the basic interface between Pogamut and ALMA. This code is based on the AffectEngine.java class provided with ALMA as an example implementation.
| Field Summary | |
|---|---|
double |
currentTime
Current level time in seconds (contains also milliseconds after dot) |
static de.affect.manage.AffectManager |
fAM
The ALMA Java implementation |
static Logger |
log
Console logging |
EmotionalBot |
myAgent
The agent this PogamutALMA instance is for. |
| Constructor Summary | |
|---|---|
ALMA(EmotionalBot agent)
The constructor that sets up ALMA engine. |
|
| Method Summary | |
|---|---|
de.affect.xml.AffectInputDocument.AffectInput |
createAffectInput(String actor,
de.affect.xml.AffectInputDocument.AffectInput.BasicEEC eec)
Creates an AffectInput document containing an BasicEEC Element and returns a AffectInput object This type eec element is constructed elsewhere |
de.affect.xml.AffectInputDocument.AffectInput |
createAffectInputBasicEEC(String actor,
double desirability,
double praiseworthiness,
double appealingness,
double likelihood,
double liking,
double realization,
String elicitor,
String agency)
Creates an AffectInput document containing an BasicEEC Element and returns a AffectInput object |
List<de.affect.emotion.Emotion> |
getAllEmotionsForElicitor(String agentName,
String elicitor)
Gets all emotions for target agent, that are felt toward the elicitor provided. |
List<de.affect.emotion.Emotion> |
getCurrentEmotions(String agentName)
Gets the ALMA current emotions (in characters focus) for target agent. |
de.affect.mood.Mood |
getCurrentMood(String agentName)
Returns current mood for target agent. |
de.affect.emotion.Emotion |
getDominantEmotion(String agentName)
Gets dominant emotion for the input agent. |
de.affect.emotion.Emotion |
getEmotionForElicitor(String agentName,
String elicitor,
de.affect.emotion.EmotionType type)
Gets emotion for target agent name of input type and for input elicitor. |
void |
processAffectInput(de.affect.xml.AffectInputDocument.AffectInput ai,
String event)
The processAffectInput passes instance of AffectInput to AffectManager
event string is here just for logging |
void |
update(de.affect.manage.event.AffectUpdateEvent event)
Listens to affect updates computed by ALMA. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public EmotionalBot myAgent
public static de.affect.manage.AffectManager fAM
public double currentTime
public static Logger log
| Constructor Detail |
|---|
public ALMA(EmotionalBot agent)
agent - | Method Detail |
|---|
public void update(de.affect.manage.event.AffectUpdateEvent event)
update in interface de.affect.manage.event.AffectUpdateListenerevent - public de.affect.mood.Mood getCurrentMood(String agentName)
agentName -
public List<de.affect.emotion.Emotion> getAllEmotionsForElicitor(String agentName,
String elicitor)
agentName - elicitor -
public de.affect.emotion.Emotion getEmotionForElicitor(String agentName,
String elicitor,
de.affect.emotion.EmotionType type)
agentName - elicitor - type -
public de.affect.emotion.Emotion getDominantEmotion(String agentName)
agentName -
public List<de.affect.emotion.Emotion> getCurrentEmotions(String agentName)
agentName -
public de.affect.xml.AffectInputDocument.AffectInput createAffectInputBasicEEC(String actor,
double desirability,
double praiseworthiness,
double appealingness,
double likelihood,
double liking,
double realization,
String elicitor,
String agency)
actor - desirability - agency - praiseworthiness - appealingness - liking - likelihood - elicitor - realization -
public de.affect.xml.AffectInputDocument.AffectInput createAffectInput(String actor,
de.affect.xml.AffectInputDocument.AffectInput.BasicEEC eec)
actor - eec -
public void processAffectInput(de.affect.xml.AffectInputDocument.AffectInput ai,
String event)
processAffectInput passes instance of AffectInput to AffectManager
event string is here just for logging
ai - event -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||