public interface Sense
Modifier and Type | Method and Description |
---|---|
void |
awake()
Start sensing.
|
Bot |
getBot()
Return the associated Bot instance.
|
Language.LanguageState |
getLanguageState()
Return the current conversational state.
|
java.lang.String |
getName()
Return the name that identifies the sense.
|
Primitive |
getPrimitive()
Allows senses to be referenced by memory.
|
void |
initialize(java.util.Map<java.lang.String,java.lang.Object> properties)
Initialize any configuration properties.
|
void |
input(java.lang.Object inputData)
Receive any input from the sense.
|
void |
input(java.lang.Object inputData,
Network network)
Receive any input from the sense.
|
boolean |
isEnabled()
Return if the sense is enabled.
|
void |
migrateProperties()
Migrate to new properties system.
|
void |
notifyExceptionListeners(java.lang.Throwable exception) |
void |
output(Vertex output)
Output the active network through the sense, could be text, sound, image, commands etc..
|
void |
pool()
Reset state when instance is pooled.
|
void |
saveProperties() |
void |
setAction(java.lang.String action)
Set the current action.
|
void |
setBot(Bot Bot)
Set the associated Bot instance.
|
void |
setEmotionalState(EmotionalState emotion)
Set the current conversational mood.
|
void |
setIsEnabled(boolean isEnabled)
Allow the sense to disabled/enabled.
|
void |
setLanguageState(Language.LanguageState languageState)
Set the current conversational state.
|
void |
setName(java.lang.String name)
Set the name that identifies the sense.
|
void |
shutdown()
Stop sensing.
|
void initialize(java.util.Map<java.lang.String,java.lang.Object> properties)
void awake()
void shutdown()
void pool()
void input(java.lang.Object inputData)
void input(java.lang.Object inputData, Network network) throws java.lang.Exception
java.lang.Exception
void output(Vertex output)
java.lang.String getName()
void setName(java.lang.String name)
Bot getBot()
void setBot(Bot Bot)
Language.LanguageState getLanguageState()
void setLanguageState(Language.LanguageState languageState)
void setEmotionalState(EmotionalState emotion)
void setAction(java.lang.String action)
boolean isEnabled()
void setIsEnabled(boolean isEnabled)
Primitive getPrimitive()
void notifyExceptionListeners(java.lang.Throwable exception)
void migrateProperties()
void saveProperties()