public class ALMA extends Object implements de.affect.manage.event.AffectUpdateListener
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
ALMA(EmotionalBot agent)
The constructor that sets up ALMA engine.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public EmotionalBot myAgent
public static de.affect.manage.AffectManager fAM
public double currentTime
public static Logger log
public ALMA(EmotionalBot agent)
agent - 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 loggingai - event - Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.