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 Mood
public 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 Mood
public void migrateProperties()
migrateProperties
in interface Mood
public java.util.Map<java.lang.String,Emotion> getEmotions()
getEmotions
in interface Mood
public <T> T getEmotion(java.lang.Class<T> type)
getEmotion
in interface Mood
public Emotion getEmotion(java.lang.String name)
getEmotion
in interface Mood
public void addEmotion(Emotion emotion)
addEmotion
in interface Mood
public void removeEmotion(Emotion emotion)
removeEmotion
in interface Mood
public void evaluate()
public void evaluateResponse(Vertex response, Vertex meta)
evaluateResponse
in interface Mood
public Vertex setEmotion(Vertex source, Vertex emotionVertex, Vertex valueVertex)
public void evaluateOutput(Vertex output)
evaluateOutput
in interface Mood
public EmotionalState currentEmotionalState()
currentEmotionalState
in interface Mood
public EmotionalState evaluateEmotionalState(Vertex output)
evaluateEmotionalState
in interface Mood
public java.util.List<EmotionalState> evaluateEmotionalStates(Vertex output)
evaluateEmotionalStates
in interface Mood
public void setEnabled(boolean isEnabled)
setEnabled
in interface Mood
public java.lang.String toString()
toString
in class java.lang.Object