Modifier and Type | Method and Description |
---|---|
void |
AIMLParser.appendCode(org.w3c.dom.Element child,
boolean multiStar,
boolean[] srai,
java.io.StringWriter writer,
Network network) |
boolean |
AIMLParser.appendHTML(java.lang.String tag,
org.w3c.dom.Element child,
boolean multiStar,
boolean[] srai,
boolean isTemplate,
java.io.StringWriter writer,
Network network) |
void |
AIMLParser.appendNestedString(org.w3c.dom.Element child,
boolean multiStar,
boolean[] srai,
java.io.StringWriter writer,
Network network) |
boolean |
AIMLParser.appendNestedText(org.w3c.dom.Element child,
boolean multiStar,
boolean[] srai,
java.io.StringWriter writer,
Network network) |
void |
AIMLParser.appendPatternCode(org.w3c.dom.Element child,
boolean multiStar,
boolean[] srai,
java.io.StringWriter writer,
Network network) |
void |
AIMLParser.appendThink(org.w3c.dom.Element element,
java.io.StringWriter writer,
boolean multiStar,
boolean[] srai,
Network network) |
void |
AIMLParser.checkSupportedChildren(org.w3c.dom.Element element,
java.util.Collection<java.lang.String> tags,
Network network) |
Vertex |
AIMLParser.createSentenceState(Vertex stateMachine,
Network network) |
Vertex |
AIMLParser.createState(Vertex pattern,
Vertex parent,
Network network)
Create a left child state node for the pattern.
|
java.lang.String |
AIMLParser.getNodeValue(org.w3c.dom.Element node,
java.lang.String value,
java.lang.String defaulValue,
boolean primitive,
boolean quote,
boolean multiStar,
boolean[] srai,
Network network) |
java.lang.String |
AIMLParser.getPattern(org.w3c.dom.Element element,
Network network) |
java.lang.String |
AIMLParser.getTemplate(org.w3c.dom.Element element,
boolean quote,
boolean multiStar,
boolean[] srai,
boolean flattenTemplates,
boolean addQuotes,
boolean pattern,
Network network) |
Vertex |
AIMLParser.parseAIML(java.io.File file,
boolean parseAsStateMachine,
boolean createStates,
boolean pin,
boolean indexStatic,
Vertex stateMachine,
java.lang.String encoding,
Network network)
Get the contents of the URL to a .aiml file and parse it.
|
Vertex |
AIMLParser.parseAIML(java.lang.String code,
boolean parseAsStateMachine,
boolean createStates,
boolean pin,
boolean indexStatic,
Vertex stateMachine,
Network network)
Parse the code into a vertex state machine defined in the network.
|
Vertex |
AIMLParser.parseAIML(java.net.URL url,
boolean parseAsStateMachine,
boolean createStates,
boolean pin,
boolean indexStatic,
Vertex stateMachine,
java.lang.String encoding,
Network network)
Get the contents of the URL to a .aiml file and parse it.
|
Vertex |
AIMLParser.parseAIMLTemplate(java.lang.String code,
Network network)
Parse the template into a forumla defined in the network.
|
void |
AIMLParser.parseCategory(org.w3c.dom.Element category,
Vertex topic,
boolean parseAsStateMachine,
boolean createStates,
boolean pin,
boolean indexStatic,
Vertex sentenceState,
java.util.Map<java.lang.String,Vertex> cache,
Network network) |
Modifier and Type | Method and Description |
---|---|
void |
Avatar.evaluateResponse(Vertex output,
Vertex response,
Vertex meta,
java.util.Map<Vertex,Vertex> variables,
Network network)
Evaluate the input response for actions and poses.
|
Modifier and Type | Method and Description |
---|---|
Network |
Memory.getLongTermMemory()
Represents the persisted memory (or cache there of).
|
Network |
Vertex.getNetwork()
Return the network the vertex is derived from.
|
Network |
Network.getParent()
Return the parent network.
|
Network |
Memory.getShortTermMemory()
Represents a non-committed transactional memory.
|
Network |
Memory.newMemory()
Return an isolated transactional memory.
|
Modifier and Type | Method and Description |
---|---|
Vertex |
Vertex.applyEval(java.util.Map<Vertex,Vertex> variables,
Network network)
Evaluates any eval functions in the equation or formula..
|
Vertex |
Vertex.applyQuotient(java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the quotient.
|
void |
Network.merge(Network network)
Merge the vertices and relations of the network into the source network.
|
void |
Vertex.setNetwork(Network network)
Set the network the vertex is derived from.
|
void |
Network.setParent(Network parent)
Set the parent network.
|
Modifier and Type | Method and Description |
---|---|
void |
Sense.input(java.lang.Object inputData,
Network network)
Receive any input from the sense.
|
Modifier and Type | Method and Description |
---|---|
void |
ImageAvatar.emote(EmotionalState state,
Network memory)
Output the emotional state to the Avatar.
|
void |
BasicAvatar.emote(EmotionalState state,
Network memory)
Output the emotional state to the Avatar.
|
void |
BasicAvatar.evaluateResponse(Vertex output,
Vertex response,
Vertex meta,
java.util.Map<Vertex,Vertex> variables,
Network network)
Evaluate the input response for actions and poses.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractNetwork
An interconnected set of vertices,
representing and knowledge-space.
|
class |
BasicNetwork
An interconnected set of vertices,
representing and knowledge-space.
|
Modifier and Type | Method and Description |
---|---|
Network |
BasicMemory.getLongTermMemory()
Represents the persisted memory (or cache there of).
|
Network |
BasicVertex.getNetwork()
Return the network the vertex is derived from.
|
Network |
BasicNetwork.getParent() |
Network |
BasicMemory.getShortTermMemory()
Represents a non-committed transactional memory.
|
Network |
BasicMemory.newMemory()
Return an isolated transactional memory.
|
Modifier and Type | Method and Description |
---|---|
Vertex |
BasicVertex.applyALL(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the ALL operation.
|
Vertex |
BasicVertex.applyAPPEND(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Append the relationship in order.
|
Vertex |
BasicVertex.applyASSOCIATE(Vertex operator,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the ASSOCIATE or DISSOCIATE operation.
|
Vertex |
BasicVertex.applyCALL(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the call operation.
|
Vertex |
BasicVertex.applyCONDITION(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the OR/AND condition.
|
Vertex |
BasicVertex.applyCOUNT(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the COUNT operation.
|
Vertex |
BasicVertex.applyDEBUG(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the DEBUG operation.
|
Vertex |
BasicVertex.applyEQUAL(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the LESS operation.
|
Vertex |
BasicVertex.applyEval(java.util.Map<Vertex,Vertex> variables,
Network network)
Evaluates any eval functions in the equation or formula..
|
Vertex |
BasicVertex.applyFOR(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the FOR operation.
|
Vertex |
BasicVertex.applyFRAGMENT(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
Primitive format)
Apply the FRAGMENT operation.
|
Vertex |
BasicVertex.applyGET(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the GET operation.
|
Vertex |
BasicVertex.applyGREATER(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the GREATER operation.
|
Vertex |
BasicVertex.applyIF(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the IF operation.
|
Vertex |
BasicVertex.applyINPUT(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the INPUT operation.
|
Vertex |
BasicVertex.applyLEARN(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the LEARN operation.
|
Vertex |
BasicVertex.applyLESS(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the LESS operation.
|
Vertex |
BasicVertex.applyNEW(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the NEW operation.
|
Vertex |
BasicVertex.applyQuotient(java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the quotient.
|
Vertex |
BasicVertex.applyRANDOM(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the RANDOM operation.
|
Vertex |
BasicVertex.applyRELATED(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the related operation.
|
Vertex |
BasicVertex.applyRELATION(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the relation operation.
|
Vertex |
BasicVertex.applySENTENCE(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the SENTENCE operation.
|
Vertex |
BasicVertex.applySET(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the SET operation.
|
Vertex |
BasicVertex.applySRAI(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the SRAI operation.
|
Vertex |
BasicVertex.applySRAIX(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the SRAIX operation.
|
Vertex |
BasicVertex.applyWHILE(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the WHILE operation.
|
Vertex |
BasicVertex.applyWORD(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network)
Apply the WORD operation.
|
void |
Bootstrap.bootstrapNetwork(Network network)
Defines a generic network for classifying things.
|
static void |
Bootstrap.checkInputVariable(Vertex input,
Network network) |
Vertex |
BasicVertex.checkRelationRelationshipForAllWords(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
Vertex left,
Vertex right,
Vertex relation,
java.util.Collection<Relationship> words)
Check if any of the words have the relationship.
|
Vertex |
BasicVertex.checkRelationTargetForAllWords(java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
Vertex left,
Vertex right,
Vertex relation,
java.util.Collection<Relationship> words)
Check if any of the words have the relationship.
|
Vertex |
Bootstrap.createAdjective(java.lang.String text,
Vertex meaning,
Network network)
Create the adjective with the meaning.
|
Vertex |
Bootstrap.createArticle(java.lang.String text,
Vertex meaning,
Network network)
Create the article with the meaning.
|
Vertex |
Bootstrap.createName(java.lang.String text,
Vertex meaning,
Network network)
Create the name with the meaning.
|
Vertex |
Bootstrap.createNoun(java.lang.String text,
Vertex meaning,
Network network)
Create the noun with the meaning.
|
Vertex |
Bootstrap.createOrdinal(java.lang.String text,
Vertex meaning,
Network network)
Create the word with the meaning.
|
Vertex |
Bootstrap.createPronoun(java.lang.String text,
Vertex meaning,
Network network,
Primitive type)
Create the pronoun with the meaning.
|
Vertex |
Bootstrap.createPronoun(java.lang.String text,
Vertex meaning,
Network network,
Primitive type,
Primitive type2)
Create the pronoun with the meaning.
|
Vertex |
Bootstrap.createPunctuation(java.lang.String text,
Vertex meaning,
Network network)
Create the punctuation with the meaning.
|
Vertex |
Bootstrap.createQuestion(java.lang.String text,
Primitive primitive,
Network network)
Create the question word and meaning.
|
Vertex |
Bootstrap.createTypo(java.lang.String text,
Vertex meaning,
Network network)
Associate a typo, or misspelling.
|
Vertex |
Bootstrap.createVerb(java.lang.String text,
Vertex meaning,
Primitive tense,
Network network,
java.lang.String[] conjugations)
Create the verb with the meaning.
|
Vertex |
Bootstrap.createWord(java.lang.String text,
Vertex meaning,
boolean prime,
Network network)
Create the word with the meaning.
|
Vertex |
Bootstrap.createWord(java.lang.String text,
Vertex meaning,
boolean prime,
Network network,
Primitive classification,
Primitive tense,
Primitive type,
Primitive type2,
java.lang.String[] conjugations)
Create the word with the meaning.
|
Vertex |
Bootstrap.createWord(java.lang.String text,
Vertex meaning,
Network network)
Create the word with the meaning.
|
Vertex |
Bootstrap.createWord(java.lang.String text,
Vertex meaning,
Network network,
Primitive classification)
Create the word with the meaning.
|
void |
Bootstrap.englishNetwork(Network network)
Defines some key basic English words (to avoid re-learning each bootstrap).
|
Vertex |
Bootstrap.getVariable(Vertex source,
Network network) |
void |
Bootstrap.languageNetwork(Network network)
Defines the basic concepts required for text/language processing.
|
void |
Bootstrap.loadAvatarImages(Network network)
Load the default avatar images.
|
void |
Bootstrap.loadScripts(Network network)
Defines some basic states.
|
void |
Bootstrap.mathNetwork(Network network)
Defines some key basic math vertices.
|
void |
AbstractNetwork.merge(Network network)
Merge the vertices and relations of the network into this network.
|
void |
BasicMemory.setLongTermMemory(Network longTermMemory) |
void |
BasicVertex.setNetwork(Network network)
Set the network the vertex is derived from.
|
void |
BasicNetwork.setParent(Network parent) |
void |
BasicMemory.setShortTermMemory(Network shortTermMemory) |
Constructor and Description |
---|
BasicNetwork(Network parent) |
Modifier and Type | Class and Description |
---|---|
class |
DatabaseNetwork
Network using JPA to access a relational database.
|
class |
DatabaseReadOnlyNetwork
Network using JPA to access a PostgresQL database.
|
Modifier and Type | Method and Description |
---|---|
Network |
DatabaseNetwork.getParent() |
Network |
DatabaseMemory.newMemory()
Return an isolated transactional memory.
|
Modifier and Type | Method and Description |
---|---|
void |
DatabaseReadOnlyNetwork.merge(Network network)
Merge the vertices and relations of the network into this network.
|
void |
DatabaseNetwork.merge(Network network)
Merge the vertices and relations of the network into this network.
|
void |
DatabaseNetwork.setParent(Network parent) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Relationship> |
MicroMemory.restoreRelationship(java.io.File file,
Network longTermMemory,
java.io.DataInputStream inputStream) |
Modifier and Type | Method and Description |
---|---|
Network |
NetworkXMLParser.parse(java.io.File file)
Parse a new network from an xml file.
|
Network |
NetworkXMLParser.parse(java.net.URL uri)
Parse a new network from an xml uri.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
NetworkXMLParser.toXML(Network network)
Covert the network into xml.
|
void |
NetworkXMLParser.toXML(Network network,
java.io.File file)
Covert the network into xml and write to the file.
|
void |
NetworkXMLParser.writeXML(Network network,
java.io.Writer writer)
Covert the network into xml using the writer.
|
Modifier and Type | Method and Description |
---|---|
static void |
SelfCompiler.addGlobalVariables(Vertex input,
Vertex sentence,
Network network,
java.util.Map<Vertex,Vertex> variables) |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> |
SelfCompiler.buildElementsMap(Network network) |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> |
Self4Compiler.buildElementsMap(Network network) |
boolean |
SelfInterpreter.checkArguments(Vertex expression,
java.util.List<Relationship> arguments,
int expected,
Network network) |
boolean |
SelfInterpreter.checkMinArguments(Vertex expression,
java.util.List<Relationship> arguments,
int expected,
Network network) |
Vertex |
SelfInterpreter.checkRelationRelationshipForAllWords(java.util.Collection<Relationship> words,
Vertex source,
Vertex target,
Network network)
Check if any of the words have the relationship.
|
Vertex |
SelfInterpreter.checkRelationTargetForAllWords(java.util.Collection<Relationship> words,
Vertex source,
Vertex type,
Vertex target,
Network network)
Check if any of the words have the relationship.
|
Vertex |
SelfDecompiler.createUniqueFormula(Vertex formula,
Network network)
Print the formula to create a unique instance of it.
|
Vertex |
SelfDecompiler.createUniqueTemplate(Vertex formula,
Network network)
Print the formula to create a unique instance of it.
|
Vertex |
SelfDecompiler.decompileEquation(Vertex equation,
Network network)
Check if the equation is bytecode and decompile.
|
Vertex |
SelfDecompiler.decompileExpression(Vertex equation,
Network network)
Check if the expression is bytecode and decompile.
|
Vertex |
Self4Decompiler.decompileExpression(Vertex expression,
Network network)
Check if the expression is bytecode and decompile.
|
Vertex |
SelfDecompiler.decompileFunction(Vertex equation,
Network network)
Check if the function is bytecode and decompile.
|
Vertex |
Self4Decompiler.decompileFunction(Vertex function,
Network network)
Check if the function is bytecode and decompile.
|
Vertex |
SelfDecompiler.decompileState(Vertex state,
Network network)
Check if the state is bytecode and decompile.
|
Vertex |
Self4Decompiler.decompileState(Vertex state,
Network network)
Check if the state is bytecode and decompile.
|
java.lang.String |
SelfDecompiler.decompileStateMachine(Vertex state,
Network network)
Print the Self code for the state machine.
|
Vertex |
SelfInterpreter.evaluateADD(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the ADD operation.
|
Vertex |
SelfInterpreter.evaluateAND(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the OR condition.
|
Vertex |
SelfInterpreter.evaluateCALL(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the function invocation.
|
Vertex |
SelfInterpreter.evaluateDEBUG(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the DEBUG operation.
|
Vertex |
SelfInterpreter.evaluateDIVIDE(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the DIVIDE operation.
|
Vertex |
SelfInterpreter.evaluateDO(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the DO operation.
|
Vertex |
SelfInterpreter.evaluateEQUALS(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the EQUALS operation.
|
Vertex |
SelfCompiler.evaluateEquation(java.lang.String code,
Vertex speaker,
Vertex target,
boolean pin,
boolean debug,
Network network)
Parse and evaluate the code.
|
Vertex |
SelfInterpreter.evaluateEVAL(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluates any eval functions in the equation or formula..
|
Vertex |
SelfInterpreter.evaluateEVALCOPY(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the literal object into a copy.
|
Vertex |
SelfCompiler.evaluateExpression(java.lang.String code,
Vertex speaker,
Vertex target,
boolean pin,
boolean debug,
Network network)
Parse and evaluate the code.
|
Vertex |
Self4Compiler.evaluateExpression(java.lang.String code,
Vertex speaker,
Vertex target,
boolean pin,
boolean debug,
Network network)
Parse and evaluate the code.
|
Vertex |
SelfInterpreter.evaluateExpression(Vertex expression,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the expression and return the result.
|
Vertex |
SelfInterpreter.evaluateFOR(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the FOR operation.
|
Vertex |
SelfInterpreter.evaluateFunction(Vertex function,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the function and return the result.
|
Vertex |
SelfInterpreter.evaluateGET(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the GET operation.
|
Vertex |
SelfInterpreter.evaluateGREATERTHAN(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the GREATERTHAN operation.
|
Vertex |
SelfInterpreter.evaluateGREATERTHANEQUAL(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the GREATERTHANEQUAL operation.
|
Vertex |
SelfInterpreter.evaluateIF(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the IF operation.
|
Vertex |
SelfInterpreter.evaluateINSTANCEOF(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the OR condition.
|
Vertex |
SelfInterpreter.evaluateLEARN(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the LEARN operation.
|
Vertex |
SelfInterpreter.evaluateLESSTHAN(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the LESSTHAN operation.
|
Vertex |
SelfInterpreter.evaluateLESSTHANEQUAL(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the LESSTHANEQUAL operation.
|
Vertex |
SelfInterpreter.evaluateMINUS(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the MINUS operation.
|
Vertex |
SelfInterpreter.evaluateMULTIPLY(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the MULTIPLY operation.
|
Vertex |
SelfInterpreter.evaluateNEW(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the NEW operation.
|
Vertex |
SelfInterpreter.evaluateNOT(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the NOT operation.
|
Vertex |
SelfInterpreter.evaluateNOTEQUALS(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the NOTEQUALS operation.
|
Vertex |
SelfInterpreter.evaluateOR(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the OR condition.
|
Vertex |
SelfInterpreter.evaluatePLUS(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the PLUS operation.
|
Vertex |
SelfInterpreter.evaluateRANDOM(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the RANDOM operation.
|
Vertex |
SelfInterpreter.evaluateREDIRECT(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the REDIRECT or SRAI operation.
|
Vertex |
SelfInterpreter.evaluateREMOVE(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the REMOVE operation.
|
Vertex |
SelfInterpreter.evaluateSET(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the SET operation.
|
Vertex |
SelfInterpreter.evaluateSRAI(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the SRAI operation.
|
Vertex |
SelfInterpreter.evaluateSRAIX(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the SRAIX operation.
|
Vertex |
SelfInterpreter.evaluateSYMBOL(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the SYMBOL operation.
|
Vertex |
SelfInterpreter.evaluateTHINK(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the THINK operation.
|
Vertex |
SelfInterpreter.evaluateWHILE(Vertex expression,
java.util.List<Relationship> arguments,
java.util.Map<Vertex,Vertex> variables,
Network network,
long startTime,
long maxTime,
int stack)
Evaluate the WHILE operation.
|
void |
Self4Compiler.parseAnswer(Vertex state,
TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the quotient.
|
void |
Self4ByteCodeCompiler.parseAnswerByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the quotient.
|
void |
Self4Decompiler.parseArgumentByteCode(java.lang.Object[] result,
java.io.DataInputStream dataStream,
Vertex pop,
Network network)
Parse the operation argument.
|
void |
SelfDecompiler.parseArgumentsByteCode(Vertex equation,
java.io.DataInputStream dataStream,
Vertex type,
Network network)
Parse the operation arguments.
|
void |
Self4Decompiler.parseArgumentsByteCode(Vertex expression,
java.io.DataInputStream dataStream,
Vertex type,
Network network)
Parse the operation arguments.
|
void |
Self4Decompiler.parseArgumentsByteCode(Vertex expression,
java.io.DataInputStream dataStream,
Vertex type,
Vertex pop,
Network network)
Parse the operation arguments.
|
Vertex |
SelfCompiler.parseCase(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the IF condition.
|
Vertex |
Self4Compiler.parseCase(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the CASE condition.
|
Vertex |
SelfDecompiler.parseCaseByteCode(java.io.DataInputStream dataStream,
Network network)
Parse the CASE bytecode.
|
Vertex |
Self4Decompiler.parseCaseByteCode(java.io.DataInputStream dataStream,
Network network)
Parse the CASE bytecode.
|
void |
SelfByteCodeCompiler.parseCaseByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the CASE condition.
|
void |
Self4ByteCodeCompiler.parseCaseByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the CASE condition.
|
Vertex |
SelfDecompiler.parseDoByteCode(java.io.DataInputStream dataStream,
Network network)
Parse the DO bytecode.
|
Vertex |
Self4Decompiler.parseDoByteCode(java.io.DataInputStream dataStream,
Network network)
Parse the DO bytecode.
|
void |
SelfByteCodeCompiler.parseDoByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the DO condition.
|
void |
Self4ByteCodeCompiler.parseDoByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the DO condition.
|
Vertex |
SelfCompiler.parseElement(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the reference to either a state, variable, equation, or raw data.
|
Vertex |
Self4Compiler.parseElement(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the reference to either a state, variable, expression, or data.
|
Vertex |
Self4Compiler.parseElement(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
Primitive lastBinary,
boolean debug,
Network network)
Parse the reference to either a state, variable, expression, or data.
|
Vertex |
Self4ByteCodeCompiler.parseElement(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
Primitive binary,
boolean debug,
Network network)
Override to catch expressions in templates, patterns, and other places.
|
void |
SelfByteCodeCompiler.parseElementByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the reference to either a state, variable, equation, or raw data.
|
Vertex |
Self4ByteCodeCompiler.parseElementByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the reference to either a state, variable, expression, or data.
|
Vertex |
Self4ByteCodeCompiler.parseElementByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
Primitive lastBinary,
boolean debug,
Network network)
Parse the reference to either a state, variable, expression, or data.
|
Vertex |
Self4Compiler.parseElementName(Primitive type,
TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the element name (state, function, variable)
|
Vertex |
SelfCompiler.parseEquation(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the equation.
|
Vertex |
SelfByteCodeCompiler.parseEquation(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the equation.
|
Vertex |
SelfDecompiler.parseEquationByteCode(Vertex equation,
BinaryData data,
Network network)
Parse the equation from bytecode.
|
Vertex |
Self4Decompiler.parseEquationByteCode(Vertex equation,
BinaryData data,
Network network)
Parse the Self2 equation from bytecode.
|
Vertex |
SelfCompiler.parseEquationForEvaluation(java.lang.String code,
Vertex speaker,
Vertex target,
boolean debug,
Network network)
Parse the code into a temporary equation so it can be evaluated.
|
Vertex |
SelfByteCodeCompiler.parseEquationForEvaluation(java.lang.String code,
Vertex speaker,
Vertex target,
boolean debug,
Network network)
Parse the code into a temporary equation so it can be evaluated.
|
Vertex |
SelfDecompiler.parseExpressionByteCode(Vertex equation,
BinaryData data,
Network network)
Parse the expression from bytecode.
|
Vertex |
Self4Decompiler.parseExpressionByteCode(Vertex expression,
BinaryData data,
Network network)
Parse the expression from bytecode.
|
Vertex |
Self4Compiler.parseExpressionForEvaluation(java.lang.String code,
Vertex speaker,
Vertex target,
boolean debug,
Network network)
Parse the code into a temporary expression so it can be evaluated.
|
Vertex |
Self4ByteCodeCompiler.parseExpressionForEvaluation(java.lang.String code,
Vertex speaker,
Vertex target,
boolean debug,
Network network)
Parse the code into a temporary expression so it can be evaluated.
|
Vertex |
SelfCompiler.parseFormula(Vertex formula,
TextStream stream,
boolean debug,
Network network)
Parse the formula.
|
Vertex |
SelfCompiler.parseFormula(Vertex formula,
TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the formula.
|
Vertex |
Self4Compiler.parseFunction(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the function.
|
Vertex |
Self4ByteCodeCompiler.parseFunctionByteCode(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the function.
|
Vertex |
SelfDecompiler.parseFunctionByteCode(Vertex equation,
BinaryData data,
Network network)
Parse the function from bytecode.
|
Vertex |
Self4Decompiler.parseFunctionByteCode(Vertex function,
BinaryData data,
Network network)
Parse the function from bytecode.
|
Vertex |
SelfCompiler.parseGoto(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the GOTO condition.
|
Vertex |
Self4Compiler.parseGoto(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the GOTO condition.
|
Vertex |
SelfDecompiler.parseGotoByteCode(java.io.DataInputStream dataStream,
Network network)
Parse the GOTO bytecode.
|
Vertex |
Self4Decompiler.parseGotoByteCode(java.io.DataInputStream dataStream,
Network network)
Parse the GOTO bytecode.
|
void |
SelfByteCodeCompiler.parseGotoByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the GOTO condition.
|
void |
Self4ByteCodeCompiler.parseGotoByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the GOTO condition.
|
Vertex |
SelfCompiler.parseOperator(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the operator.
|
Vertex |
Self4Compiler.parseOperator(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the operator.
|
Vertex |
SelfDecompiler.parseOperatorByteCode(java.io.DataInputStream dataStream,
Network network)
Parse the operator and its arguments from bytecode.
|
Vertex |
Self4Decompiler.parseOperatorByteCode(java.io.DataInputStream dataStream,
Network network)
Parse the operator and its arguments from bytecode.
|
Vertex |
Self4Decompiler.parseOperatorByteCode(java.io.DataInputStream dataStream,
Vertex pop,
Network network)
Parse the operator and its arguments from bytecode.
|
void |
SelfByteCodeCompiler.parseOperatorByteCode(java.io.DataOutputStream dataStream,
TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the operator.
|
void |
Self4ByteCodeCompiler.parseOperatorByteCode(java.io.DataOutputStream dataStream,
TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the operator.
|
Vertex |
SelfCompiler.parsePattern(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the PATTERN condition.
|
Vertex |
Self4Compiler.parsePattern(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the PATTERN condition.
|
void |
SelfByteCodeCompiler.parsePatternByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the PATTERN condition.
|
void |
Self4ByteCodeCompiler.parsePatternByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the PATTERN condition.
|
Vertex |
SelfCompiler.parsePush(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the PUSH condition.
|
Vertex |
Self4Compiler.parsePush(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the PUSH condition.
|
Vertex |
SelfDecompiler.parsePushByteCode(java.io.DataInputStream dataStream,
Network network)
Parse the PUSH bytecode.
|
Vertex |
Self4Decompiler.parsePushByteCode(java.io.DataInputStream dataStream,
Network network)
Parse the PUSH bytecode.
|
void |
SelfByteCodeCompiler.parsePushByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the PUSH condition.
|
void |
Self4ByteCodeCompiler.parsePushByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the PUSH condition.
|
void |
SelfCompiler.parseQuotient(Vertex state,
TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the quotient.
|
void |
SelfByteCodeCompiler.parseQuotientByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the quotient.
|
void |
SelfDecompiler.parseQuotientByteCode(Vertex state,
java.io.DataInputStream dataStream,
Network network)
Parse the GOTO bytecode.
|
void |
Self4Decompiler.parseQuotientByteCode(Vertex state,
java.io.DataInputStream dataStream,
Network network)
Parse the GOTO bytecode.
|
Vertex |
SelfCompiler.parseReturn(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the RETURN condition.
|
Vertex |
Self4Compiler.parseReturn(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the RETURN condition.
|
Vertex |
SelfDecompiler.parseReturnByteCode(java.io.DataInputStream dataStream,
Network network)
Parse the RETURN bytecode.
|
Vertex |
Self4Decompiler.parseReturnByteCode(java.io.DataInputStream dataStream,
Network network)
Parse the RETURN bytecode.
|
void |
SelfByteCodeCompiler.parseReturnByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the RETURN condition.
|
void |
Self4ByteCodeCompiler.parseReturnByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the RETURN condition.
|
Vertex |
SelfCompiler.parseState(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the state and any referenced states or variables.
|
Vertex |
SelfByteCodeCompiler.parseState(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the state and any referenced states or variables.
|
Vertex |
Self4Compiler.parseState(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the state and any referenced states or variables.
|
Vertex |
Self4ByteCodeCompiler.parseState(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the state and any referenced states or variables.
|
Vertex |
SelfDecompiler.parseStateByteCode(java.io.DataInputStream dataStream,
Network network)
Parse the state and its cases from bytecode.
|
Vertex |
Self4Decompiler.parseStateByteCode(java.io.DataInputStream dataStream,
Network network)
Parse the state and its cases from bytecode.
|
Vertex |
SelfDecompiler.parseStateByteCode(Vertex state,
BinaryData data,
Network network)
Parse the state from bytecode.
|
Vertex |
Self4Decompiler.parseStateByteCode(Vertex state,
BinaryData data,
Network network)
Parse the state from bytecode.
|
Vertex |
SelfCompiler.parseStateMachine(java.io.File file,
java.lang.String encoding,
boolean debug,
Network network)
Get the contents of the URL to a .self file and parse it.
|
Vertex |
SelfCompiler.parseStateMachine(java.io.InputStream stream,
boolean debug,
Network network,
java.lang.String encoding,
int maxSize)
Get the contents of the stream to a .self file and parse it.
|
Vertex |
SelfCompiler.parseStateMachine(java.lang.String code,
boolean debug,
Network network)
Parse the code into a vertex state machine defined in the network.
|
Vertex |
Self4Compiler.parseStateMachine(java.lang.String code,
boolean debug,
Network network)
Parse the code into a vertex state machine defined in the network.
|
Vertex |
Self4ByteCodeCompiler.parseStateMachine(java.lang.String code,
boolean debug,
Network network)
Parse the code into a vertex state machine defined in the network.
|
Vertex |
SelfCompiler.parseStateMachine(java.net.URL url,
java.lang.String encoding,
boolean debug,
Network network)
Get the contents of the URL to a .self file and parse it.
|
Vertex |
SelfCompiler.parseTemplate(Vertex formula,
TextStream stream,
boolean debug,
Network network)
Parse the formula.
|
Vertex |
Self4Compiler.parseTemplate(Vertex formula,
TextStream stream,
boolean debug,
Network network)
Parse the template.
|
Vertex |
SelfCompiler.parseTemplate(Vertex formula,
TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the formula.
|
Vertex |
Self4Compiler.parseTemplate(Vertex formula,
TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the template.
|
Vertex |
Self4ByteCodeCompiler.parseTemplate(Vertex formula,
TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the template.
|
Vertex |
SelfCompiler.parseVariable(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the variable.
|
Vertex |
Self4Compiler.parseVariable(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the variable.
|
void |
Self4Decompiler.printArguments(Vertex expression,
Primitive type,
int start,
java.lang.String[] tokens,
boolean reverse,
boolean newLine,
boolean unravel,
boolean brackets,
java.io.Writer writer,
java.lang.String indent,
java.util.List<Vertex> variables,
java.util.List<Vertex> functions,
java.util.Set<Vertex> elements,
boolean space,
Network network)
Print the operation arguments.
|
void |
SelfDecompiler.printArguments(Vertex equation,
Primitive type,
java.lang.String[] tokens,
boolean reverse,
boolean newLine,
boolean unravel,
java.io.Writer writer,
java.lang.String indent,
java.util.List<Vertex> variables,
java.util.List<Vertex> equations,
java.util.Set<Vertex> elements,
boolean space,
Network network)
Print the operation arguments.
|
void |
SelfDecompiler.printCase(Vertex equation,
java.io.Writer writer,
java.lang.String indent,
java.util.Set<Vertex> elements,
java.util.List<Vertex> newVariables,
java.util.List<Vertex> newEquations,
java.util.List<Vertex> newStates,
Network network)
Print the IF condition and any variables and states that it references.
|
void |
Self4Decompiler.printCase(Vertex expression,
java.io.Writer writer,
java.lang.String indent,
java.util.Set<Vertex> elements,
java.util.List<Vertex> newVariables,
java.util.List<Vertex> newFunctions,
java.util.List<Vertex> newStates,
Network network)
Print the IF condition and any variables and states that it references.
|
boolean |
SelfDecompiler.printComments(Vertex element,
java.io.Writer writer,
java.lang.String indent,
boolean newLine,
Network network)
Print comments
|
void |
Self4Decompiler.printDo(Vertex expression,
java.io.Writer writer,
java.lang.String indent,
java.util.Set<Vertex> elements,
java.util.List<Vertex> newVariables,
java.util.List<Vertex> newFunctions,
java.util.List<Vertex> newStates,
Network network)
Print the DO operation.
|
void |
SelfDecompiler.printElement(Vertex vertex,
java.io.Writer writer,
java.lang.String indent,
java.util.List<Vertex> equations,
java.util.List<Vertex> variables,
java.util.Set<Vertex> elements,
Network network)
Print the vertex, either a state, variable, equation, or raw data.
|
void |
Self4Decompiler.printElement(Vertex vertex,
java.io.Writer writer,
java.lang.String indent,
java.util.List<Vertex> functions,
java.util.List<Vertex> variables,
java.util.Set<Vertex> elements,
Network network)
Print the vertex, either a state, variable, expression, or data.
|
void |
SelfDecompiler.printEquation(Vertex equation,
java.io.Writer writer,
java.lang.String indent,
java.util.Set<Vertex> elements,
Network network)
Print the equation and any equations it references that have not been printed.
|
void |
SelfDecompiler.printFormula(Vertex formula,
java.io.Writer writer,
java.lang.String indent,
java.util.List<Vertex> equations,
java.util.List<Vertex> variables,
java.util.Set<Vertex> elements,
Network network) |
void |
Self4Decompiler.printFunction(Vertex function,
java.io.Writer writer,
java.lang.String indent,
java.util.Set<Vertex> elements,
Network network)
Print the function and any functions it references that have not been printed.
|
void |
Self4Decompiler.printGoto(Vertex expression,
java.io.Writer writer,
java.lang.String indent,
java.util.Set<Vertex> elements,
java.util.List<Vertex> newVariables,
java.util.List<Vertex> newFunctions,
java.util.List<Vertex> newStates,
Network network)
Print the GOTO condition and any variables and states that it references.
|
void |
SelfDecompiler.printGoto(Vertex equation,
java.io.Writer writer,
java.lang.String indent,
java.util.Set<Vertex> elements,
Network network,
long start,
long timeout)
Print the GOTO condition and any variables and states that it references.
|
void |
SelfDecompiler.printOperator(Vertex equation,
java.io.Writer writer,
java.lang.String indent,
java.util.List<Vertex> equations,
java.util.List<Vertex> variables,
java.util.Set<Vertex> elements,
Network network)
Print the equation and any equations it references that have not been printed.
|
void |
Self4Decompiler.printOperator(Vertex expression,
java.io.Writer writer,
java.lang.String indent,
java.util.List<Vertex> functions,
java.util.List<Vertex> variables,
java.util.Set<Vertex> elements,
Network network)
Print the expression and any expressions it references that have not been printed.
|
void |
Self4Decompiler.printPush(Vertex expression,
java.io.Writer writer,
java.lang.String indent,
java.util.Set<Vertex> elements,
java.util.List<Vertex> newVariables,
java.util.List<Vertex> newFunctions,
java.util.List<Vertex> newStates,
Network network)
Print the PUSH condition and any variables and states that it references.
|
void |
SelfDecompiler.printPush(Vertex equation,
java.io.Writer writer,
java.lang.String indent,
java.util.Set<Vertex> elements,
Network network,
long start,
long timeout)
Print the PUSH condition and any variables and states that it references.
|
void |
Self4Decompiler.printReturn(Vertex expression,
java.io.Writer writer,
java.lang.String indent,
java.util.Set<Vertex> elements,
java.util.List<Vertex> newVariables,
java.util.List<Vertex> newFunctions,
java.util.List<Vertex> newStates,
Network network)
Print the RETURN condition and any variables it references.
|
void |
SelfDecompiler.printReturn(Vertex equation,
java.io.Writer writer,
java.lang.String indent,
java.util.Set<Vertex> elements,
Network network,
long start,
long timeout)
Print the RETURN condition and any variables it references.
|
void |
SelfDecompiler.printState(Vertex state,
java.io.Writer writer,
java.lang.String indent,
java.util.Set<Vertex> elements,
Network network,
long start,
long timeout)
Print the state and any referenced states or variables that have not yet been printed.
|
void |
Self4Decompiler.printState(Vertex state,
java.io.Writer writer,
java.lang.String indent,
java.util.Set<Vertex> elements,
Network network,
long start,
long timeout)
Print the state and any referenced states or variables that have not yet been printed.
|
void |
SelfDecompiler.printStateMachine(Vertex state,
java.io.Writer writer,
Network network,
long start,
long timeout)
Print the Self code for the state machine.
|
void |
Self4Decompiler.printStateMachine(Vertex state,
java.io.Writer writer,
Network network,
long start,
long timeout)
Print the Self code for the state machine.
|
void |
SelfDecompiler.printTemplate(Vertex formula,
java.io.Writer writer,
java.lang.String indent,
java.util.List<Vertex> expressions,
java.util.List<Vertex> variables,
java.util.Set<Vertex> elements,
Network network) |
void |
Self4Decompiler.printTemplate(Vertex formula,
java.io.Writer writer,
java.lang.String indent,
java.util.List<Vertex> expressions,
java.util.List<Vertex> variables,
java.util.Set<Vertex> elements,
Network network) |
void |
SelfDecompiler.printVariable(Vertex variable,
java.io.Writer writer,
java.lang.String indent,
java.util.Set<Vertex> elements,
Network network)
Print the variable and any variables it references that have not been printed.
|
void |
Self4Decompiler.printVariable(Vertex variable,
java.io.Writer writer,
java.lang.String indent,
java.util.Set<Vertex> elements,
Network network)
Print the variable and any variables it references that have not been printed.
|
Modifier and Type | Method and Description |
---|---|
Network |
BasicTool.getShortTermMemory()
Return the short term memory.
|
Network |
BasicSense.getShortTermMemory()
Return the short term memory.
|
Modifier and Type | Method and Description |
---|---|
boolean |
BasicSense.checkSentence(Vertex sentence,
Network network,
Vertex currentTime)
Check if the sentence has been discovered.
|
boolean |
BasicSense.discover(Vertex input,
Network network,
Vertex currentTime)
Attempt to discover information on the vertex.
|
void |
BasicSense.discoverSentence(Vertex sentence,
Network network,
Vertex currentTime)
Attempt to discover information on the sentence words.
|
void |
BasicSense.input(java.lang.Object input,
Network network)
Receive any input from the sense.
|
Modifier and Type | Method and Description |
---|---|
Vertex |
IRC.getConversation(Network network)
Return the current conversation.
|
Vertex |
Chat.getConversation(Network network)
Return the current conversation.
|
void |
IRC.input(java.lang.Object inputText,
Network network)
Process the input chat event.
|
void |
Chat.input(java.lang.Object inputText,
Network network)
Process the input chat event.
|
void |
Chat.inputSentence(java.lang.String text,
java.lang.String userName,
java.util.List<java.lang.String> targetUserNames,
boolean isGreet,
boolean isWhisper,
Network network)
Process the text sentence.
|
void |
IRC.inputSentence(java.lang.String text,
java.lang.String userName,
java.util.List<java.lang.String> targetUserNames,
Network network)
Process the text sentence.
|
Modifier and Type | Method and Description |
---|---|
Vertex |
Context.top(Network network)
Return the top of the context stack.
|
Modifier and Type | Method and Description |
---|---|
void |
Email.input(java.lang.Object input,
Network network)
Process the email message.
|
void |
Email.inputSentence(java.lang.String text,
java.lang.String subject,
java.lang.String userName,
java.lang.String targetUserName,
javax.mail.Message message,
Network network)
Process the text sentence.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Vertex> |
Facebook.getAutoPosts(Network network) |
void |
Facebook.input(facebook4j.Comment comment,
facebook4j.Comment parent,
Network network)
Process the post comment.
|
void |
FacebookMessaging.input(java.lang.Object input,
Network network)
Process the direct message.
|
void |
Facebook.input(java.lang.Object input,
Network network)
Process the post.
|
java.lang.String |
FacebookMessaging.inputFacebookMessengerMessage(java.lang.String text,
java.lang.String targetUserName,
java.lang.String senderId,
net.sf.json.JSONObject message,
Network network)
Process the text sentence.
|
void |
Facebook.inputSentence(java.lang.String text,
java.lang.String userName,
java.lang.String targetUserName,
java.lang.String messageId,
long time,
Network network)
Process the text sentence.
|
void |
FacebookMessaging.inputSentence(java.lang.String text,
java.lang.String userId,
java.lang.String userName,
java.lang.String targetUserName,
java.lang.String id,
Network network)
Process the text sentence.
|
long[] |
Facebook.processComment(facebook4j.Comment comment,
facebook4j.Comment parent,
Network memory,
int count,
long max,
long last) |
Modifier and Type | Method and Description |
---|---|
int |
GoogleCalendar.countEvents(java.lang.String calendar,
java.util.Date from,
java.util.Date to,
Network network)
Count the calendar events for the time period.
|
int |
Google.countJSON(java.lang.String url,
java.lang.String attribute,
Network network)
Return the JSON data object from the URL.
|
Vertex |
Google.delete(java.lang.String url,
Network network)
Send a DELETE request the URL.
|
Vertex |
GoogleCalendar.deleteEvent(java.lang.String calendar,
java.lang.String event,
boolean sendNotifications,
Network network)
Delete the event from the calendar.
|
Vertex |
GoogleCalendar.getEvents(java.lang.String calendar,
java.util.Date from,
java.util.Date to,
Network network)
Fetch the calendar events for the time period and convert JSON to objects.
|
Vertex |
GoogleCalendar.insertEvent(java.lang.String calendar,
Vertex event,
boolean sendNotifications,
Network network)
Insert the event into the calendar.
|
Vertex |
Google.postJSON(java.lang.String url,
Vertex jsonObject,
Network network)
POST the JSON object and return the JSON data from the URL.
|
Vertex |
Google.putJSON(java.lang.String url,
Vertex jsonObject,
Network network)
PUT the JSON object and return the JSON data from the URL.
|
Vertex |
Google.requestJSON(java.lang.String url,
java.lang.String attribute,
java.util.Map<java.lang.String,java.lang.String> headers,
Network network)
Return the JSON data object from the URL.
|
Vertex |
GoogleCalendar.updateEvent(java.lang.String calendar,
Vertex event,
boolean sendNotifications,
Network network)
Update the event into the calendar.
|
Modifier and Type | Method and Description |
---|---|
void |
Http.batchProcessURL(java.net.URL url,
Network network)
Process the URL as part of a batch.
|
Vertex |
Http.convertElement(org.w3c.dom.Element element,
Network network) |
Vertex |
Http.convertElement(java.lang.Object json,
Network network) |
void |
Wiktionary.copyDataRelationships(Vertex source,
Primitive type,
Vertex target,
Network network) |
int |
Http.countJSON(java.lang.String url,
java.lang.String attribute,
Network network)
Return the count of the JSON result array.
|
Vertex |
Http.delete(java.lang.String url,
Network network)
Send a DELETE request to the URL.
|
void |
Wiktionary.discoverSentence(Vertex sentence,
Network network,
Vertex currentTime)
Attempt to discover information on the vertex.
|
void |
Freebase.discoverSentence(Vertex sentence,
Network network,
Vertex currentTime)
Attempt to discover information on the sentence words.
|
java.util.List<java.lang.Object> |
Freebase.extractPropertyValues(java.lang.Object data,
java.util.List<java.lang.String> filters,
int cascade,
Network network,
java.util.Map<java.lang.String,Vertex> processed)
Extract the relevant data from the Freebase property.
|
Vertex |
Freebase.fetchDescription(net.sf.json.JSONObject json,
int cascade,
Network network,
java.util.Map<java.lang.String,Vertex> processed)
Fetch only the name and description of the object.
|
void |
Freebase.fetchDetails(Vertex object,
net.sf.json.JSONObject json,
int cascade,
java.util.Map<java.lang.String,Vertex> processed,
Network network) |
Vertex |
Http.getSentence(org.w3c.dom.Node node,
Network network)
Return a sentence of all the words, or a word is a single word.
|
Vertex |
Wiktionary.importWord(java.lang.String word,
Network network)
Import the word from Wiktionary.
|
void |
Http.input(java.lang.Object input,
Network network)
Get and process the URL.
|
void |
Freebase.input(java.lang.Object input,
Network network)
Get and process the URL.
|
Vertex |
Http.postHTML(java.lang.String url,
Vertex paramsObject,
java.lang.String xpath,
Network network)
Post the HTML forms params and return the HTML data from the URL.
|
Vertex |
Http.postJSON(java.lang.String url,
Vertex jsonObject,
Network network)
POST the JSON object and return the JSON data from the URL.
|
Vertex |
Http.postJSONAuth(java.lang.String url,
java.lang.String user,
java.lang.String password,
java.lang.String agent,
Vertex jsonObject,
Network network)
Post the JSON object and return the JSON data from the URL.
|
Vertex |
Http.postJSONAuth(java.lang.String url,
java.lang.String user,
java.lang.String password,
Vertex jsonObject,
Network network)
Post the JSON object and return the JSON data from the URL.
|
Vertex |
Http.postXML(java.lang.String url,
Vertex xmlObject,
Network network)
Post the XML document object and return the XML data from the URL.
|
Vertex |
Http.postXML(java.lang.String url,
Vertex xmlObject,
java.lang.String xpath,
Network network)
Post the XML document object and return the XML data from the URL.
|
Vertex |
Http.postXMLAuth(java.lang.String url,
java.lang.String user,
java.lang.String password,
java.lang.String agent,
Vertex xmlObject,
java.lang.String xpath,
Network network)
Post the XML document object and return the XML data from the URL.
|
Vertex |
Http.postXMLAuth(java.lang.String url,
java.lang.String user,
java.lang.String password,
Vertex xmlObject,
java.lang.String xpath,
Network network)
Post the XML document object and return the XML data from the URL.
|
void |
Wiktionary.processCategory(java.util.List<java.lang.String> category,
org.w3c.dom.Node node,
java.net.URL url,
Network network)
Process Wiktionary category page.
|
Vertex |
Freebase.processCompoundRelationship(net.sf.json.JSONObject json,
int cascade,
Network network,
java.util.Map<java.lang.String,Vertex> processed)
Process the compound relationship.
|
void |
Http.processHeaders(org.w3c.dom.Node node,
Vertex url,
Network network)
Process the header nodes and associate their topics with the URL.
|
Vertex |
Freebase.processId(java.lang.String id,
int cascade,
boolean fork,
java.lang.String filter,
Network network,
java.util.Map<java.lang.String,Vertex> processed)
Process the object for the Freebase id.
|
void |
Wiktionary.processRoot(org.w3c.dom.Node node,
java.net.URL url,
Network network)
Process the XHTML DOM.
|
void |
Http.processRoot(org.w3c.dom.Node node,
java.net.URL url,
Network network)
Process the XHTML DOM.
|
Vertex |
Freebase.processSearch(java.lang.String keywords,
int cascade,
boolean fork,
java.lang.String filter,
Network network,
java.util.Map<java.lang.String,Vertex> processed)
Search for the best object describing the keywords.
|
Vertex |
Http.putJSON(java.lang.String url,
Vertex jsonObject,
Network network)
PUT the JSON object and return the JSON data from the URL.
|
void |
Wiktionary.quickProcessWord(java.lang.String wordText,
java.util.List<java.lang.String> categoryText,
Network network)
Bypass loading the word's page, and just define it from the category info.
|
Vertex |
Http.requestCSV(java.lang.String url,
Network network)
Return the CSV data object from the URL.
|
Vertex |
Http.requestHTML(java.lang.String url,
java.lang.String xpath,
java.lang.String format,
java.lang.String subformat,
Network network)
Return the HTML data from the URL.
|
Vertex |
Http.requestJSON(java.lang.String url,
java.lang.String attribute,
java.util.Map<java.lang.String,java.lang.String> headers,
Network network)
Return the JSON data object from the URL.
|
Vertex |
Http.requestJSONAuth(java.lang.String url,
java.lang.String user,
java.lang.String password,
Network network)
GET the JSON data from the URL.
|
Vertex |
Http.requestJSONAuth(java.lang.String url,
java.lang.String user,
java.lang.String password,
java.lang.String agent,
Network network)
GET the JSON data from the URL.
|
Vertex |
Http.requestText(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> headers,
Network network)
Return the text data from the URL.
|
Vertex |
Http.requestXML(java.lang.String url,
java.lang.String xpath,
java.util.Map<java.lang.String,java.lang.String> headers,
Network network)
Return the XML data from the URL.
|
Vertex |
Http.requestXMLAuth(java.lang.String url,
java.lang.String user,
java.lang.String password,
java.lang.String xpath,
Network network)
GET the XML data from the URL.
|
Vertex |
Http.requestXMLAuth(java.lang.String url,
java.lang.String user,
java.lang.String password,
java.lang.String agent,
java.lang.String xpath,
Network network)
GET the XML data from the URL.
|
Modifier and Type | Method and Description |
---|---|
void |
Kik.inputSentence(java.lang.String text,
java.lang.String userName,
java.lang.String targetUsername,
java.lang.String id,
Network network)
Process the text sentence.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
RemoteService.request(java.lang.String message,
java.lang.String bot,
java.lang.String botid,
java.lang.String server,
Primitive service,
java.lang.String apikey,
int limit,
java.lang.String hint,
Network network)
Invoke the remote service request, and return the result.
|
java.lang.String |
RemoteService.requestFORGE(java.lang.String message,
java.lang.String botid,
java.lang.String server,
java.lang.String apikey,
int limit,
java.lang.String hint,
Network network)
Invoke the XML HTTP request.
|
java.lang.String |
RemoteService.requestFreebase(java.lang.String message,
java.lang.String botid,
java.lang.String server,
java.lang.String apikey,
int limit,
java.lang.String hint,
Network network)
Invoke the Freebase sense.
|
java.lang.String |
RemoteService.requestHTML(java.lang.String message,
java.lang.String botid,
java.lang.String server,
java.lang.String apikey,
int limit,
java.lang.String hint,
Network network)
Invoke the HTML HTTP request.
|
java.lang.String |
RemoteService.requestJSON(java.lang.String message,
java.lang.String botid,
java.lang.String server,
java.lang.String apikey,
int limit,
java.lang.String hint,
Network network)
Invoke the XML HTTP request.
|
java.lang.String |
RemoteService.requestWikidata(java.lang.String message,
java.lang.String botid,
java.lang.String server,
java.lang.String apikey,
int limit,
java.lang.String hint,
Network network)
Invoke the Wikidata sense.
|
java.lang.String |
RemoteService.requestWiktionary(java.lang.String message,
java.lang.String botid,
java.lang.String server,
java.lang.String apikey,
int limit,
java.lang.String hint,
Network network)
Invoke the Wiktionary sense.
|
java.lang.String |
RemoteService.requestXML(java.lang.String message,
java.lang.String botid,
java.lang.String server,
java.lang.String apikey,
int limit,
java.lang.String hint,
Network network)
Invoke the XML HTTP request.
|
Modifier and Type | Method and Description |
---|---|
void |
Skype.inputSentence(java.lang.String text,
java.lang.String userName,
java.lang.String targetUsername,
java.lang.String id,
Network network)
Process the text sentence.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Vertex> |
Slack.getAutoPosts(Network network) |
void |
Slack.inputSentence(java.lang.String text,
java.lang.String userName,
java.lang.String targetUsername,
java.lang.String id,
Network network)
Process the text sentence.
|
Modifier and Type | Method and Description |
---|---|
void |
Twilio.inputSentence(java.lang.String text,
java.lang.String userName,
java.lang.String id,
Network network)
Process the text sentence.
|
Modifier and Type | Method and Description |
---|---|
long |
Telegram.checkMessage(net.sf.json.JSONObject message,
long last,
long max,
Network network)
Reply to the message.
|
java.util.List<Vertex> |
Telegram.getAutoPosts(Network network) |
void |
Telegram.inputSentence(java.lang.String text,
Vertex user,
java.lang.String botUserName,
Vertex conversation,
java.lang.String messageId,
boolean group,
net.sf.json.JSONObject message,
Network network)
Process the text sentence.
|
Vertex |
Telegram.postJSON(java.lang.String url,
Vertex paramsObject,
Network network)
Call a generic Telegram web API.
|
java.lang.String |
Telegram.processMessage(net.sf.json.JSONObject message,
Network memory) |
Modifier and Type | Method and Description |
---|---|
Vertex |
TextEntry.getConversation(Network network)
Return the current conversation.
|
Vertex |
TextEntry.getUser(Network network)
Return the user involved in the conversation.
|
void |
TextEntry.input(java.lang.Object inputText,
Network network)
Process the text input.
|
void |
TextEntry.inputCommand(CommandInput command,
Network network)
Process the text sentence.
|
void |
TextEntry.inputSentence(TextInput text,
Network network)
Process the text sentence.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Vertex> |
Timer.getTimers(Network network) |
void |
Timer.inputSentence(java.lang.String text,
Network network)
Process the text sentence.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Vertex> |
Twitter.getAutoTweets(Network network) |
void |
TwitterDirectMessaging.input(java.lang.Object input,
Network network)
Process the direct message.
|
void |
Twitter.input(java.lang.Object input,
Network network)
Process the email message.
|
void |
Twitter.inputSentence(java.lang.String text,
java.lang.String userName,
java.lang.String targetUserName,
twitter4j.Status status,
Network network)
Process the text sentence.
|
void |
TwitterDirectMessaging.inputSentence(java.lang.String text,
java.lang.String userName,
java.lang.String targetUserName,
java.lang.String id,
Network network)
Process the text sentence.
|
void |
Twitter.learnTweet(twitter4j.Status tweet,
boolean processTweets,
boolean processReplies,
Network memory) |
Vertex |
Twitter.trend(Network network) |
Modifier and Type | Method and Description |
---|---|
Vertex |
Vision.loadImage(byte[] image,
Network network)
Load binary image.
|
Vertex |
Vision.loadImage(java.lang.String urlPath,
Network network)
Load an image from a URL.
|
Vertex |
Vision.loadImageFile(java.lang.String filePath,
Network network)
Load an image from a file.
|
Vertex |
Vision.matchImage(byte[] image,
Vertex tag,
double error,
Network network)
Self API.
|
Modifier and Type | Method and Description |
---|---|
void |
WeChat.inputSentence(java.lang.String text,
java.lang.String userName,
java.lang.String targetUsername,
java.lang.String id,
Network network)
Process the text sentence.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
Wikidata.extractPropertyValueIds(net.sf.json.JSONObject data,
java.util.Map<java.lang.String,java.lang.String> propertyMap,
Network network,
java.util.Map<java.lang.String,Vertex> processed)
Extract the ids from the wikidata claims.
|
java.util.List<java.lang.Object> |
Wikidata.extractPropertyValues(java.lang.Object data,
java.util.Map<java.lang.String,java.lang.String> valueMap,
int cascade,
Network network,
java.util.Map<java.lang.String,Vertex> processed)
Extract the relevant data from the wikidata claims.
|
Vertex |
Wikidata.fetchDescription(net.sf.json.JSONObject json,
int cascade,
Network network,
java.util.Map<java.lang.String,Vertex> processed)
Fetch only the name and description of the object.
|
void |
Wikidata.fetchDetails(Vertex object,
net.sf.json.JSONObject json,
int cascade,
java.util.Map<java.lang.String,Vertex> processed,
Network network) |
java.util.Map<java.lang.String,java.lang.String> |
Wikidata.fetchPropertyLabels(java.util.List<java.lang.String> properties,
Network network,
java.util.Map<java.lang.String,Vertex> processed)
Lookup the wikidata properites by id.
|
void |
Wikidata.input(java.lang.Object input,
Network network)
Get and process the URL.
|
Vertex |
Wikidata.processId(java.lang.String id,
int cascade,
boolean fork,
java.lang.String filter,
Network network,
java.util.Map<java.lang.String,Vertex> processed)
Lookup the wikidata item by id, and load its data.
|
Vertex |
Wikidata.processSearch(java.lang.String keywords,
int cascade,
boolean fork,
java.lang.String filter,
Network network,
java.util.Map<java.lang.String,Vertex> processed)
Search for the best object describing the keywords.
|
Modifier and Type | Method and Description |
---|---|
Network |
BasicThought.getShortTermMemory()
Return the short term memory.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
SubconsciousThought.processInput(Vertex vertex,
Network network)
Process the active memory in the isolated memory in the background.
|
Modifier and Type | Method and Description |
---|---|
void |
Consciousness.age(Network network)
Age the network, decrease consciousness level by 10%.
|
Vertex |
Consciousness.getLastContext(Network network)
Return the last conscious point in time.
|
Modifier and Type | Method and Description |
---|---|
boolean |
DiscoverySense.discover(Vertex vertex,
Network network,
Vertex currentTime)
Attempt to discover information on the vertex.
|
boolean |
Discovery.processInput(Vertex input,
Network network)
Analyse the active memory.
|
Modifier and Type | Method and Description |
---|---|
int |
Forgetfulness.forget(Forgetfulness.ForgetType type,
int numberToDelete,
long timeToLive,
Network memory) |
int |
Forgetfulness.forget(Forgetfulness.ForgetType type,
int numberToDelete,
Network memory) |
void |
Forgetfulness.forget(Network memory) |
void |
Forgetfulness.forget(Network memory,
boolean force) |
void |
Forgetfulness.forget(Network memory,
boolean force,
long timeToLive) |
void |
Forgetfulness.forgetRelationships(Network memory) |
Modifier and Type | Method and Description |
---|---|
static boolean |
Language.addCorrection(Vertex originalQuestionInput,
Vertex originalQuestion,
Vertex wrongResponseInput,
Vertex correction,
Vertex previousQuestionInput,
Network network)
Add the sentence from the previous input to the relationships response meta info.
|
void |
Language.addQuestionMatches(Vertex sentence,
Network network,
long startTime,
long processTime,
java.util.List<Relationship> wordRelations,
java.util.Map<Vertex,java.lang.Integer> matches,
java.util.Map<Vertex,java.util.Set<Vertex>> processed,
Primitive key,
boolean keywords)
Add all of the questions for all of the words to the matching map.
|
static void |
Language.addResponse(Vertex question,
Vertex answer,
Network network)
Add the new response.
|
static void |
Language.addResponse(Vertex question,
Vertex answer,
java.lang.String topic,
java.lang.String keywords,
java.lang.String required,
float correctness,
Network network)
Add the new response.
|
static void |
Language.addResponse(Vertex question,
Vertex answer,
java.lang.String topic,
java.lang.String keywords,
java.lang.String required,
Network network)
Add the new response.
|
static void |
Language.addSentenceActionMeta(Vertex question,
Vertex answer,
java.lang.String actions,
Network network)
Add the actions to the response.
|
static void |
Language.addSentenceCommandMeta(Vertex question,
Vertex answer,
java.lang.String command,
boolean pin,
Network network)
Add the command as the command for a response match to the question meta.
|
static void |
Language.addSentenceConditionMeta(Vertex question,
Vertex answer,
java.lang.String condition,
boolean pin,
Network network)
Add the script as the condition for a response match to the question meta.
|
static void |
Language.addSentenceEmotesMeta(Vertex question,
Vertex answer,
java.lang.String emotes,
Network network)
Add the emotes to the response.
|
static void |
Language.addSentenceKeyWordsMeta(Vertex question,
Vertex answer,
java.lang.String keywords,
Network network)
Add the keywords as required keywords for a response match to the question meta.
|
static void |
Language.addSentencePoseMeta(Vertex question,
Vertex answer,
java.lang.String poses,
Network network)
Add the actions to the response.
|
static void |
Language.addSentencePreviousMeta(Relationship relationship,
Vertex previousQuestionInput,
Network network)
Add the sentence from the previous input to the relationships response meta info.
|
void |
Comprehension.addSentencePreviousMeta(Relationship relationship,
Vertex questionInput,
Vertex previousQuestionInput,
java.util.Map<Vertex,Vertex> variables,
Network network)
Add the sentence from the previous input to the relationships response meta info.
|
static void |
Language.addSentencePreviousMeta(Vertex question,
Vertex answer,
Vertex previous,
boolean require,
Network network)
Add the previous for a response match to the question meta.
|
static void |
Language.addSentenceRequiredMeta(Vertex question,
Vertex answer,
java.lang.String required,
Network network)
Add the keywords as required keywords for a response match to the question meta.
|
static void |
Language.addSentenceThinkMeta(Vertex question,
Vertex answer,
java.lang.String think,
boolean pin,
Network network)
Add the script as the think for a response match to the question meta.
|
static void |
Language.addSentenceTopicMeta(Vertex question,
Vertex answer,
java.lang.String topic,
Network network)
Add the topic as a desired topic for a response match to the question meta.
|
Vertex[] |
Language.bestAnswer(float percentage,
Vertex state,
java.util.Map<Vertex,Vertex> localVariables,
Vertex input,
Vertex sentence,
Network network)
Return the best response to the question, taking into account the input history.
|
Relationship |
Language.bestResponse(float percentage,
Vertex input,
Vertex sentence,
Vertex question,
Vertex previousResponse,
boolean cascade,
boolean init,
Vertex previousQuestion,
java.util.Set<java.lang.String> questionWords,
Vertex currentTopic,
java.util.Map<Vertex,Vertex> variables,
Network network)
Return the best response to the question, taking into account the input history.
|
Relationship |
Language.bestResponse(float percentage,
Vertex input,
Vertex sentence,
Vertex question,
Vertex previousResponse,
java.util.Map<Vertex,Vertex> variables,
Network network)
Return the best response to the question, taking into account the input history.
|
static Vertex |
Language.buildStar(java.util.List<Vertex> star,
java.util.Map<Vertex,Vertex> variables,
Network network) |
void |
Language.checkBetterMatch(java.util.Map.Entry<Vertex,java.lang.Integer> entry,
java.util.Map<Vertex,java.lang.Integer> keyWordsMatches,
java.lang.Object[] best,
int tooBig,
int tooSmall,
int wordCount,
float percentage,
Vertex input,
Vertex sentence,
Vertex question,
Vertex previousResponse,
boolean cascade,
boolean init,
Vertex previousQuestion,
java.util.Set<java.lang.String> questionWords,
Vertex currentTopic,
java.util.Map<Vertex,Vertex> variables,
Network network) |
java.lang.Boolean |
Language.checkCondition(Relationship relationship,
java.util.Map<Vertex,Vertex> variables,
Network network)
Check if the response has a condition, and if it evaluates to true.
|
Vertex |
Language.checkDefaultResponseFormula(Vertex response,
Vertex input,
Network network,
java.util.Map<Vertex,Vertex> variables) |
Vertex |
Language.checkDuplicateOrOffensiveResponse(Vertex response,
Vertex sentence,
Vertex conversation,
Vertex input,
java.util.Map<Vertex,Vertex> variables,
Network network,
boolean allowMatch,
boolean checkUnderstanding)
Check if the previous response was the same and try to find a new one.
|
void |
Language.checkQuestion(Vertex sentence,
Network network)
Mark the sentence as a question.
|
boolean |
Comprehension.checkQuotient(Vertex currentState,
Vertex sentence,
Vertex questionInput,
Vertex responseInput,
Comprehension.PathType path,
java.util.Map<Vertex,Vertex> variables,
Network network)
Check if any of the existing quotients match, if none do, then add a new quotient.
|
Vertex |
Language.checkState(Vertex root,
Vertex input,
Vertex sentence,
java.util.List<Vertex> states,
int index,
int recurse,
java.util.List<Vertex> inputs,
java.util.Map<Vertex,Vertex> variables,
java.util.List<Vertex> stateStack,
float correctnessRequired,
Network network)
Apply each state machine vertex to the sentence of words.
|
Relationship |
Comprehension.checkTemplate(Vertex input,
Network network)
Check if the response can be defined as a template based on the question, context.
|
static void |
Language.clearSentenceMeta(Vertex question,
Vertex answer,
Primitive type,
Network network)
Clear any relations in the meta of the type.
|
int |
Language.computeMaxSentenceValue(Vertex match,
Vertex original,
Network network)
Compute the real value of the sentence.
|
Vertex |
Language.createSentenceText(Vertex vertex,
Network network)
Create the text for the sentence.
|
Vertex |
Comprehension.createTemplate(Vertex questionInput,
Vertex responseInput,
java.util.Map<Vertex,Vertex> variables,
Network network)
Attempt to create a template response from the question and response.
|
Vertex |
Language.evaluateAnswerResponse(Vertex answer,
Vertex state,
java.util.Map<Vertex,Vertex> localVariables,
Network network)
Evaluate the quotient and possible formula response.
|
Vertex |
Language.evaluateFormula(Vertex formula,
java.util.Map<Vertex,Vertex> variables,
Network network)
Evaluate the sentence formula/template in the context of the input.
|
Vertex |
Language.evaluateFormulaTemplate(Vertex formula,
java.util.Map<Vertex,Vertex> variables,
long startTime,
Network network)
Evaluate the sentence formula/template in the context of the input.
|
static boolean |
Language.evaluatePattern(Vertex pattern,
Vertex sentence,
Primitive variable,
java.util.Map<Vertex,Vertex> variables,
Network network)
Determine if the pattern matches the sentence.
|
static boolean |
Language.evaluatePattern(Vertex pattern,
Vertex sentence,
Primitive variable,
java.util.Map<Vertex,Vertex> variables,
Network network,
java.util.List<Vertex> elements,
java.util.List<Vertex> words,
int wildcardSkip)
Determine if the pattern matches the sentence.
|
Relationship |
Language.findResponseMatch(Vertex sentence,
Vertex previousResponse,
Vertex input,
java.util.Map<Vertex,Vertex> variables,
Network network,
float percentage)
Find the best match for the sentence.
|
Vertex |
Language.getDefaultResponse(java.util.List<Relationship> defaultResponses,
Vertex input,
Vertex sentence,
Vertex conversation,
java.util.Map<Vertex,Vertex> variables,
Network network)
Return a random default response for the topic or context.
|
Vertex |
Language.getLastQuotient(Network network) |
Vertex |
Language.getLastState(Network network) |
Vertex |
Language.getLastStateMachine(Network network) |
Vertex |
Language.getWord(Vertex vertex,
Network network)
Return the sentence or word for the vertex.
|
static Vertex |
Language.getWordFollowing(Vertex vertex,
Relationship relationship,
Vertex previousWord,
Vertex nextWord,
Network network)
Return the sentence or word for the vertex.
|
static Vertex |
Language.getWordFollowing(Vertex vertex,
Vertex previousWord,
Vertex nextWord,
Network network)
Return the sentence or word for the vertex.
|
boolean |
Language.hasPrevious(Vertex meta,
Vertex sentence,
Vertex state,
java.util.Map<Vertex,Vertex> localVariables,
Network network)
Return the best response to the question, taking into account the input history.
|
java.util.List<Vertex> |
Language.importHTML(java.lang.String url,
java.lang.String xpath,
java.lang.String learningMode,
Network network)
Attempt to import and learn new responses from a website.
|
Vertex |
Language.input(Vertex input,
Vertex sentence,
java.util.Map<Vertex,Vertex> variables,
Network network)
Process the input and return the response.
|
static Vertex |
Language.invertWordCase(Vertex word,
Network network) |
Relationship |
Language.matchPattern(Vertex sentence,
Vertex previousResponse,
Vertex input,
java.util.Map<Vertex,Vertex> variables,
Network network,
float percentage)
Find the best pattern that matches the sentence.
|
static java.lang.String |
Language.printFragment(Vertex fragment,
Vertex previousWord,
Vertex nextWord,
Network network) |
Vertex |
Language.processAssociation(Vertex text,
Network network)
Associate the word to the current context selection.
|
Vertex |
Language.processConversational(Vertex input,
Vertex sentence,
Vertex conversation,
java.util.Map<Vertex,Vertex> variables,
Network network,
Language.LanguageState state)
Process the conversational sentence.
|
Vertex |
Language.processCorrection(Vertex input,
Vertex correction,
Vertex speaker,
Vertex target,
Vertex conversation,
Network network)
Process the correction to the last question.
|
Vertex |
Language.processDiscussion(Vertex input,
Vertex sentence,
Vertex conversation,
java.util.Map<Vertex,Vertex> variables,
Network network)
Process the discussion sentence.
|
Vertex |
Language.processGreeting(Vertex input,
Vertex conversation,
Network network,
Language.LanguageState state,
java.util.Map<Vertex,Vertex> variables)
Process the start of a new conversation and output the greeting.
|
void |
Language.processHttp(Vertex sentence,
Network network)
Lookup any urls in the text.
|
boolean |
Comprehension.processInput(Vertex input,
Network network)
If the input is a sentence process it for language rules and variable substitution.
|
Vertex |
Language.processListening(Vertex input,
Vertex sentence,
Vertex speaker,
Vertex conversation,
java.util.List<Relationship> targets,
Network network,
Language.LanguageState state)
Associate the response, attempt to understand.
|
void |
Language.processOffensive(Vertex input,
Vertex speaker,
Vertex target,
Vertex conversation,
Network network)
Process a offensive response.
|
boolean |
Comprehension.processState(Vertex currentState,
java.util.List<Vertex> words,
int index,
java.lang.String statePath,
Comprehension.PathType path,
Vertex sentence,
Vertex questionInput,
Vertex responseInput,
java.util.Map<Vertex,Vertex> variables,
Network network)
Check if any of the current states match the next word,
if no match, or quotient does not match, add a new case.
|
Vertex |
Language.processUnderstanding(Vertex input,
Vertex sentence,
float correctnessRequired,
java.util.Map<Vertex,Vertex> variables,
Network network)
Attempt to understand the sentence using state machines.
|
void |
Language.recordPatternValues(Vertex word,
Vertex sentence,
java.util.Map<Vertex,java.lang.Integer> matches,
Network network,
java.util.List<Vertex> defer)
Add all of the patterns for the word with its value.
|
void |
Language.recordSetenceValues(Vertex word,
Vertex originalWord,
java.util.Collection<Relationship> relationships,
int value,
Vertex sentence,
java.util.Map<Vertex,java.lang.Integer> matches,
java.util.Map<Vertex,java.util.Set<Vertex>> processed,
Network network,
java.util.List<Vertex> defer)
Add all of the sentences for the word with its value.
|
static void |
Language.recordStar(java.util.List<java.util.List<Vertex>> star,
Primitive variable,
java.util.Map<Vertex,Vertex> variables,
Network network) |
static void |
Language.removeSentencePreviousMeta(Relationship relationship,
Vertex previousQuestionInput,
Network network)
Remove the sentence from the previous input to the relationships response meta info.
|
Vertex |
Language.synthesizeResponse(Vertex input,
Vertex sentence,
Vertex conversation,
boolean random,
java.util.Map<Vertex,Vertex> variables,
Network network)
Return a synthesized response from linguistic patterns.
|