Constructor and Description |
---|
BasicAwareness() |
Modifier and Type | Method and Description |
---|---|
void |
addSense(Sense sense) |
void |
addTool(Tool tool) |
void |
awake() |
Bot |
getBot()
Return Bot.
|
<T> T |
getSense(java.lang.Class<T> type) |
Sense |
getSense(java.lang.String senseName)
Return the sense with the name.
|
java.util.Map<java.lang.String,Sense> |
getSenses() |
<T> T |
getTool(java.lang.Class<T> type) |
Tool |
getTool(java.lang.String name)
Return the tool with the name.
|
java.util.Map<java.lang.String,Tool> |
getTools() |
void |
initialize(java.util.Map<java.lang.String,java.lang.Object> properties)
Initialize any configurable settings from the properties.
|
void |
output(Vertex output)
Allow the sense to output the response.
|
void |
pool()
Reset state when instance is pooled.
|
void |
removeSense(Sense sense) |
void |
removeTool(Tool tool) |
void |
setBot(Bot bot)
Set Bot.
|
void |
shutdown() |
java.lang.String |
toString() |
public void initialize(java.util.Map<java.lang.String,java.lang.Object> properties)
initialize
in interface Awareness
public void pool()
public java.util.Map<java.lang.String,Sense> getSenses()
public <T> T getSense(java.lang.Class<T> type)
public Sense getSense(java.lang.String senseName)
Awareness
public void removeSense(Sense sense)
removeSense
in interface Awareness
public java.util.Map<java.lang.String,Tool> getTools()
public Tool getTool(java.lang.String name)
Awareness
public void removeTool(Tool tool)
removeTool
in interface Awareness
public java.lang.String toString()
toString
in class java.lang.Object