| Constructor and Description |
|---|
BasicMood() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEmotion(Emotion emotion) |
void |
awake() |
EmotionalState |
currentEmotionalState()
Determine the main emotional state of the output.
|
void |
evaluate()
Evaluate the active memory input for emotional influence.
|
EmotionalState |
evaluateEmotionalState(Vertex output)
Determine the main emotional state of the output.
|
java.util.List<EmotionalState> |
evaluateEmotionalStates(Vertex output)
Determine the emotional states of the output.
|
void |
evaluateOutput(Vertex output)
Evaluate the output with emotional expression.
|
void |
evaluateResponse(Vertex response,
Vertex meta)
Evaluate the input response for emotional influence.
|
Bot |
getBot()
Return Bot.
|
<T> T |
getEmotion(java.lang.Class<T> type) |
Emotion |
getEmotion(java.lang.String name) |
Vertex |
getEmotion(Vertex source,
Vertex emotionVertex)
Self API to get mood.
|
java.util.Map<java.lang.String,Emotion> |
getEmotions() |
void |
initialize(java.util.Map<java.lang.String,java.lang.Object> properties)
Initialize any configurable settings from the properties.
|
boolean |
isEnabled() |
void |
log(java.lang.String message,
java.util.logging.Level level,
java.lang.Object... arguments)
Log the message if the debug level is greater or equal to the level.
|
void |
log(java.lang.Throwable exception)
Log the exception.
|
void |
migrateProperties()
Migrate to new properties system.
|
void |
pool() |
void |
removeEmotion(Emotion emotion) |
void |
saveProperties() |
void |
setBot(Bot bot)
Set Bot.
|
Vertex |
setEmotion(Vertex source,
Vertex emotionVertex,
Vertex valueVertex)
Self API to set mood.
|
void |
setEnabled(boolean isEnabled) |
void |
shutdown() |
java.lang.String |
toString()
Print a useful string representation of the mood.
|
public void saveProperties()
saveProperties in interface Moodpublic void log(java.lang.String message,
java.util.logging.Level level,
java.lang.Object... arguments)
public void log(java.lang.Throwable exception)
public void initialize(java.util.Map<java.lang.String,java.lang.Object> properties)
initialize in interface Moodpublic void migrateProperties()
migrateProperties in interface Moodpublic java.util.Map<java.lang.String,Emotion> getEmotions()
getEmotions in interface Moodpublic <T> T getEmotion(java.lang.Class<T> type)
getEmotion in interface Moodpublic Emotion getEmotion(java.lang.String name)
getEmotion in interface Moodpublic void addEmotion(Emotion emotion)
addEmotion in interface Moodpublic void removeEmotion(Emotion emotion)
removeEmotion in interface Moodpublic void evaluate()
public void evaluateResponse(Vertex response, Vertex meta)
evaluateResponse in interface Moodpublic Vertex setEmotion(Vertex source, Vertex emotionVertex, Vertex valueVertex)
public void evaluateOutput(Vertex output)
evaluateOutput in interface Moodpublic EmotionalState currentEmotionalState()
currentEmotionalState in interface Moodpublic EmotionalState evaluateEmotionalState(Vertex output)
evaluateEmotionalState in interface Moodpublic java.util.List<EmotionalState> evaluateEmotionalStates(Vertex output)
evaluateEmotionalStates in interface Moodpublic void setEnabled(boolean isEnabled)
setEnabled in interface Moodpublic java.lang.String toString()
toString in class java.lang.Object