public class Context extends BasicSense
| Modifier and Type | Field and Description |
|---|---|
static int |
CONTEXT_SIZE |
conversations, DAY, DEFAULT_SPEAKER, engaged, HOUR, MAX_FILE_SIZE, MINUTE, RETRY| Constructor and Description |
|---|
Context() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the current context.
|
void |
clear(Vertex source)
Self API
Clear the current context.
|
java.util.List<java.lang.Long> |
getContextStack() |
Selector |
getSelector()
Return the selector used to access the current selection.
|
void |
input(java.lang.Object input)
Process the input.
|
void |
output(Vertex output)
Set the vertex as the current selection.
|
void |
push(Vertex vertex)
Add the vertex to the context.
|
void |
push(Vertex source,
Vertex vertex)
Self API
Add the vertex to the context.
|
Vertex |
search(Vertex source,
Vertex variable)
Self API
Return the first element on the stack matching the variable.
|
void |
setSelector(Selector selector)
Set the selector used to access the current selection.
|
Vertex |
top(Network network)
Return the top of the context stack.
|
Vertex |
top(Vertex source)
Self API
Return the top of the context stack.
|
Vertex |
top(Vertex source,
Vertex vertex)
Self API
Return the top of the context stack.
|
java.lang.String |
toString() |
addListener, awake, checkEngaged, checkSentence, discover, discoverSentence, getAction, getBot, getEmotionalState, getLanguageState, getListeners, getName, getPrimitive, getResponseListener, getShortTermMemory, initialize, input, isEnabled, log, log, log, migrateProperties, notifyExceptionListeners, notifyResponseListener, pool, printInput, removeListener, saveProperties, setAction, setBot, setEmotionalState, setIsEnabled, setLanguageState, setName, setResponseListener, shutdownpublic java.util.List<java.lang.Long> getContextStack()
public void clear(Vertex source)
public void clear()
public Vertex search(Vertex source, Vertex variable)
public void push(Vertex vertex)
public Selector getSelector()
public void setSelector(Selector selector)
public void input(java.lang.Object input)
input in interface Senseinput in class BasicSensepublic void output(Vertex output)
output in interface Senseoutput in class BasicSensepublic java.lang.String toString()
toString in class BasicSense