Package | Description |
---|---|
org.botlibre.api.knowledge | |
org.botlibre.knowledge | |
org.botlibre.knowledge.database | |
org.botlibre.knowledge.micro | |
org.botlibre.self | |
org.botlibre.thought.language |
Modifier and Type | Method and Description |
---|---|
Relationship |
Vertex.addRelationship(Primitive type,
Primitive target)
Add the relation of the relationship primitive type to the target primitive.
|
Relationship |
Vertex.addRelationship(Primitive type,
Primitive target,
int index)
Add the relation of the relationship type to the target vertex.
|
Relationship |
Vertex.addRelationship(Primitive type,
Vertex target)
Add the relation of the relationship primitive type to the target vertex.
|
Relationship |
Vertex.addRelationship(Primitive type,
Vertex target,
int index)
Add the relation of the relationship type to the target vertex.
|
Relationship |
Vertex.addRelationship(Relationship relationship,
boolean internal)
Add the relation ensuring uniqueness.
|
Relationship |
Vertex.addRelationship(Vertex type,
Vertex target)
Add the relation of the type to the other vertex.
|
Relationship |
Vertex.addRelationship(Vertex type,
Vertex target,
int index)
Add the relation of the relationship type to the target vertex.
|
Relationship |
Vertex.addRelationship(Vertex type,
Vertex target,
int index,
boolean internal)
Add the relation of the type to the other vertex.
|
Relationship |
Vertex.addWeakRelationship(Primitive type,
Primitive target,
float correctnessMultiplier)
Add the relation of the relationship type to the target vertex.
|
Relationship |
Vertex.addWeakRelationship(Primitive type,
Vertex target,
float correctnessMultiplier)
Add the relation of the relationship type to the target vertex.
|
Relationship |
Vertex.addWeakRelationship(Vertex type,
Vertex target,
float correctnessMultiplier)
Add the relation of the relationship type to the target vertex.
|
Relationship |
Vertex.appendRelationship(Primitive type,
Vertex target)
Add the relation of the relationship type to the end of the target vertex relationships.
|
Relationship |
Vertex.appendRelationship(Vertex type,
Vertex target)
Add the relation of the relationship type to the end of the target vertex relationships.
|
Relationship |
Vertex.getRelationship(Primitive type,
Primitive target)
Return the relationship to the target of the primitive type.
|
Relationship |
Vertex.getRelationship(Primitive type,
Vertex target)
Return the relationship to the target of the primitive type.
|
Relationship |
Vertex.getRelationship(Vertex type,
Vertex target)
Return the relationship to the target of the primitive type.
|
Relationship |
Vertex.mostConsciousRelationship(Primitive type)
Return the relationship related by the type, with the high consciousness level.
|
Relationship |
Vertex.mostConsciousRelationship(Primitive type,
float min)
Return the relationship related by the type, with the high consciousness level and correctness greater than the value.
|
Relationship |
Vertex.mostConsciousRelationship(Vertex type)
Return the relationship related by the type, with the high consciousness level.
|
Relationship |
Vertex.nextMostConsciousRelationship(Primitive type,
Vertex ignoring)
Return the relationship related by the type, with the high consciousness level.
|
Relationship |
Vertex.nextMostConsciousRelationship(Primitive type,
Vertex ignoring,
float min)
Return the relationship related by the type, with the high consciousness level greater than the value.
|
Relationship |
Vertex.nextMostConsciousRelationship(Vertex type,
java.util.Set<Vertex> ignoring,
float min,
boolean inverse)
Return the target vertex related by the type, with the high consciousness level and correctness greater than the value.
|
Relationship |
Vertex.nextMostConsciousRelationship(Vertex type,
Vertex ignoring)
Return the relationship related by the type, with the high consciousness level.
|
Relationship |
Vertex.removeRelationship(Primitive type,
Primitive target)
Remove the relation of the primitive type from the other vertex.
|
Relationship |
Vertex.removeRelationship(Primitive type,
Vertex target)
Remove the relation of the primitive type from the other vertex.
|
Relationship |
Vertex.removeRelationship(Vertex type,
Vertex target)
Remove the relation of the type from the other vertex.
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Relationship> |
Vertex.allRelationships()
Provides an easier method of traversing all the relations of a vertex.
|
java.util.List<Relationship> |
Network.findAllRelationshipsTo(Vertex vertex)
Find all relationships related to the vertex or of the vertex relationship type.
|
java.util.List<Relationship> |
Network.findAllRelationshipsTo(Vertex vertex,
Vertex type)
Find all relationships related to the vertex by the type.
|
java.util.List<Relationship> |
Network.findAllRelationshipsTo(Vertex vertex,
Vertex type,
java.util.Date date)
Find all relationships related to the vertex by the type.
|
java.util.Collection<Relationship> |
Vertex.getAllRelationships()
Return all of the relationships.
|
java.util.Map<Vertex,java.util.Map<Relationship,Relationship>> |
Vertex.getRelationships()
Return all relationships.
|
java.util.Map<Vertex,java.util.Map<Relationship,Relationship>> |
Vertex.getRelationships()
Return all relationships.
|
java.util.Collection<Relationship> |
Vertex.getRelationships(Primitive type)
Return any relationship target of the primitive type.
|
java.util.Collection<Relationship> |
Vertex.getRelationships(Vertex relationshipType)
Return all relationships of the type.
|
java.util.Iterator<Relationship> |
Vertex.orderedAllRelationships()
Provides an easier method of traversing all the relations of a vertex.
|
java.util.List<Relationship> |
Vertex.orderedRelationships(Primitive primitive)
Return all of the relationships of the primitive type, sorted by index.
|
java.util.List<Relationship> |
Vertex.orderedRelationships(Vertex relationshipType)
Return all of the relationships of the type, sorted by index.
|
java.util.List<Relationship> |
Vertex.orderedRelationshipsByConsciousness(Primitive primitive)
Return all of the relationships of the type, sorted by consciousness level.
|
java.util.List<Relationship> |
Vertex.orderedRelationshipsByConsciousness(Vertex relationshipType)
Return all of the relationships of the type, sorted by consciousness level.
|
Modifier and Type | Method and Description |
---|---|
Relationship |
Vertex.addRelationship(Relationship relationship,
boolean internal)
Add the relation ensuring uniqueness.
|
Vertex |
Network.createMeta(Relationship relationship)
Return the relationship meta vertex.
|
void |
Vertex.internalRemoveRelationship(Relationship relationship)
Remove the relation.
|
void |
Network.removeRelationship(Relationship relationship)
Remove the relationship from the network.
|
void |
Vertex.replaceRelationship(Relationship oldRelationship,
Vertex newTarget)
Replace the relationship with the new target at the same index.
|
Modifier and Type | Method and Description |
---|---|
Vertex |
Vertex.getAssoiate(Vertex type,
Vertex associate,
Vertex associateType,
java.util.Collection<Relationship> associate2,
Vertex associateType2,
java.util.Collection<Relationship> associate3,
Vertex associateType3,
Vertex defaultAssociate)
Return the target vertex related by the type, that has the relationship to the previous, otherwise null if not found.
|
Vertex |
Vertex.getAssoiate(Vertex type,
Vertex associate,
Vertex associateType,
java.util.Collection<Relationship> associate2,
Vertex associateType2,
java.util.Collection<Relationship> associate3,
Vertex associateType3,
Vertex defaultAssociate)
Return the target vertex related by the type, that has the relationship to the previous, otherwise null if not found.
|
Vertex |
Vertex.getAssoiate(Vertex type,
Vertex associate,
Vertex associateType,
Vertex associate2,
Vertex associateType2,
java.util.Collection<Relationship> associate3,
Vertex associateType3,
Vertex defaultAssociate)
Return the target vertex related by the type, that has the relationship to the previous, otherwise null if not found.
|
Modifier and Type | Class and Description |
---|---|
class |
BasicRelationship
Meta reference.
|
Modifier and Type | Method and Description |
---|---|
Relationship |
BasicVertex.addRelationship(Primitive type,
Primitive target)
Add the relation of the relationship primitive type to the target primitive.
|
Relationship |
BasicVertex.addRelationship(Primitive type,
Primitive target,
int index)
Add the relation of the relationship type to the target vertex.
|
Relationship |
BasicVertex.addRelationship(Primitive type,
Vertex target)
Add the relation of the relationship primitive type to the target vertex.
|
Relationship |
BasicVertex.addRelationship(Primitive type,
Vertex target,
int index)
Add the relation of the relationship type to the target vertex.
|
Relationship |
BasicVertex.addRelationship(Relationship relationship,
boolean internal)
Add the relation ensuring uniqueness.
|
Relationship |
BasicVertex.addRelationship(Relationship relationship,
boolean internal,
boolean init,
float correctnessMultiplier)
Add the relation ensuring uniqueness.
|
Relationship |
BasicVertex.addRelationship(Vertex type,
Vertex target)
Add the relation of the relationship type to the target vertex.
|
Relationship |
BasicVertex.addRelationship(Vertex type,
Vertex target,
int index)
Add the relation of the relationship type to the target vertex.
|
Relationship |
BasicVertex.addRelationship(Vertex type,
Vertex target,
int index,
boolean internal)
Add the relation of the relationship type to the target vertex.
|
Relationship |
BasicVertex.addWeakRelationship(Primitive type,
Primitive target,
float correctnessMultiplier)
Add the relation of the relationship type to the target vertex.
|
Relationship |
BasicVertex.addWeakRelationship(Primitive type,
Vertex target,
float correctnessMultiplier)
Add the relation of the relationship type to the target vertex.
|
Relationship |
BasicVertex.addWeakRelationship(Vertex type,
Vertex target,
float correctnessMultiplier)
Add the relation of the relationship type to the target vertex.
|
Relationship |
BasicVertex.appendRelationship(Primitive type,
Vertex target)
Add the relation of the relationship type to the end of the target vertex relationships.
|
Relationship |
BasicVertex.appendRelationship(Vertex type,
Vertex target)
Add the relation of the relationship type to the end of the target vertex relationships.
|
Relationship |
BasicVertex.getRelationship(Primitive type,
Primitive target)
Return the relationship of the type primitive to the target.
|
Relationship |
BasicVertex.getRelationship(Primitive type,
Vertex target)
Return the relationship of the type primitive to the target.
|
Relationship |
BasicVertex.getRelationship(Vertex type,
Vertex target)
Return the relationship of the type primitive to the target.
|
Relationship |
BasicVertex.mostConsciousRelationship(Primitive type)
Return the relationship related by the type, with the high consciousness level.
|
Relationship |
BasicVertex.mostConsciousRelationship(Primitive type,
float correctness)
Return the relationship related by the type, with the high consciousness level.
|
Relationship |
BasicVertex.mostConsciousRelationship(Vertex type)
Return the relationship related by the type, with the high consciousness level.
|
Relationship |
BasicVertex.nextMostConsciousRelationship(Primitive type,
Vertex ignoring)
Return the relationship related by the type, with the high consciousness level.
|
Relationship |
BasicVertex.nextMostConsciousRelationship(Primitive type,
Vertex ignoring,
float min)
Return the target vertex related by the type, with the high consciousness level greater than the value.
|
Relationship |
BasicVertex.nextMostConsciousRelationship(Vertex type,
java.util.Set<Vertex> ignoring,
float min,
boolean inverse)
Return the target vertex inversely/negatively related by the type, with the high consciousness level.
|
Relationship |
BasicVertex.nextMostConsciousRelationship(Vertex type,
Vertex ignoring)
Return the relationship related by the type, with the high consciousness level.
|
Relationship |
BasicVertex.nextMostConsciousRelationship(Vertex type,
Vertex ignoring,
float min,
boolean inverse)
Return the target vertex inversely/negatively related by the type, with the high consciousness level.
|
Relationship |
BasicVertex.removeRelationship(Primitive type,
Primitive target)
Remove the relationship of the relation primitive type to the target vertex.
|
Relationship |
BasicVertex.removeRelationship(Primitive type,
Vertex target)
Remove the relationship of the relation primitive type to the target vertex.
|
Relationship |
BasicVertex.removeRelationship(Relationship relationship)
Remove the relationship.
|
Relationship |
BasicVertex.removeRelationship(Vertex type,
Vertex target)
Remove the relationship of the relation type to the target vertex.
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Relationship> |
BasicVertex.allRelationships()
Provides an easier method of traversing all the relations of all types of a vertex.
|
java.util.List<Relationship> |
BasicNetwork.findAllRelationshipsTo(Vertex vertex)
Find all relationships related to the vertex or of the vertex relationship type.
|
java.util.List<Relationship> |
BasicNetwork.findAllRelationshipsTo(Vertex vertex,
Vertex type)
Find all relationships related to the vertex by the vertex type.
|
java.util.List<Relationship> |
BasicNetwork.findAllRelationshipsTo(Vertex vertex,
Vertex type,
java.util.Date date)
Find all relationships related to the vertex by the vertex type.
|
java.util.Collection<Relationship> |
BasicVertex.getAllRelationships() |
java.util.Map<Vertex,java.util.Map<Relationship,Relationship>> |
BasicVertex.getRelationships()
Return all relationships.
|
java.util.Map<Vertex,java.util.Map<Relationship,Relationship>> |
BasicVertex.getRelationships()
Return all relationships.
|
java.util.Collection<Relationship> |
BasicVertex.getRelationships(Primitive type)
Return any relationship target of the primitive type.
|
java.util.Collection<Relationship> |
BasicVertex.getRelationships(Vertex relationshipType)
Return all of the relationships of the type.
|
java.util.Iterator<Relationship> |
BasicVertex.orderedAllRelationships()
Provides an easier method of traversing all the relations of all types of a vertex.
|
java.util.List<Relationship> |
BasicVertex.orderedRelationships(Primitive primitive)
Return all of the relationships of the primitive type, sorted by index.
|
java.util.List<Relationship> |
BasicVertex.orderedRelationships(Vertex relationshipType)
Return all of the relationships of the type, sorted by index.
|
java.util.List<Relationship> |
BasicVertex.orderedRelationshipsByConsciousness(Primitive primitive)
Return all of the relationships of the type, sorted by consciousness level.
|
java.util.List<Relationship> |
BasicVertex.orderedRelationshipsByConsciousness(Vertex relationshipType)
Return all of the relationships of the type, sorted by consciousness level.
|
Modifier and Type | Method and Description |
---|---|
void |
BasicNetwork.addRelationship(Relationship relationship) |
Relationship |
BasicVertex.addRelationship(Relationship relationship,
boolean internal)
Add the relation ensuring uniqueness.
|
Relationship |
BasicVertex.addRelationship(Relationship relationship,
boolean internal,
boolean init,
float correctnessMultiplier)
Add the relation ensuring uniqueness.
|
int |
BasicRelationship.compareTo(Relationship another)
Compare the relationships by index, to allow sorting.
|
static float |
BasicVertex.computeCorrectness(Relationship relationship) |
Vertex |
AbstractNetwork.createMeta(Relationship relationship)
Return the relationship meta vertex.
|
void |
BasicVertex.internalRemoveRelationship(Relationship relationship)
Remove the relationship.
|
Relationship |
BasicVertex.removeRelationship(Relationship relationship)
Remove the relationship.
|
void |
AbstractNetwork.removeRelationship(Relationship relationship)
Remove the relationship from the network.
|
void |
BasicVertex.replaceRelationship(Relationship oldRelationship,
Vertex newTarget)
Replace the relationship with the new target at the same index.
|
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.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.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.
|
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.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 |
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 |
BasicVertex.getAssoiate(Vertex type,
Vertex associate,
Vertex associateType,
java.util.Collection<Relationship> associates2,
Vertex associateType2,
java.util.Collection<Relationship> associates3,
Vertex associateType3,
Vertex defaultAssociate)
Return the target vertex related by the type, that has the relationship to the previous, otherwise null if not found.
|
Vertex |
BasicVertex.getAssoiate(Vertex type,
Vertex associate,
Vertex associateType,
java.util.Collection<Relationship> associates2,
Vertex associateType2,
java.util.Collection<Relationship> associates3,
Vertex associateType3,
Vertex defaultAssociate)
Return the target vertex related by the type, that has the relationship to the previous, otherwise null if not found.
|
Vertex |
BasicVertex.getAssoiate(Vertex type,
Vertex associate,
Vertex associateType,
Vertex associate2,
Vertex associateType2,
java.util.Collection<Relationship> associates3,
Vertex associateType3,
Vertex defaultAssociate)
Return the target vertex related by the type, that has the relationship to the previous, otherwise null if not found.
|
void |
BasicVertex.setRelationships(java.util.Map<Vertex,java.util.Map<Relationship,Relationship>> relationships) |
void |
BasicVertex.setRelationships(java.util.Map<Vertex,java.util.Map<Relationship,Relationship>> relationships) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Relationship> |
DatabaseNetwork.findAllRelationshipsTo(Vertex vertex)
Find all relationships related to the vertex or of the vertex relationship type.
|
java.util.List<Relationship> |
DatabaseNetwork.findAllRelationshipsTo(Vertex vertex,
Vertex type)
Find all relationships related to the vertex by the vertex type.
|
java.util.List<Relationship> |
DatabaseNetwork.findAllRelationshipsTo(Vertex vertex,
Vertex type,
java.util.Date date)
Find all relationships related to the vertex by the vertex type, created after the date.
|
Modifier and Type | Method and Description |
---|---|
void |
DatabaseReadOnlyNetwork.removeRelationship(Relationship relationship)
Remove the relationship from the network.
|
void |
DatabaseNetwork.removeRelationship(Relationship relationship)
Remove the relationship from the network.
|
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 |
---|---|
void |
MicroMemory.saveRelationship(Relationship relationship,
java.io.DataOutputStream stream) |
Modifier and Type | Method and Description |
---|---|
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 |
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 |
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 |
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.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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Relationship |
Comprehension.checkTemplate(Vertex input,
Network network)
Check if the response can be defined as a template based on the question, context.
|
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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
static Vertex |
Language.getWordFollowing(Vertex vertex,
Relationship relationship,
Vertex previousWord,
Vertex nextWord,
Network network)
Return the sentence or word for the vertex.
|
static void |
Language.removeSentencePreviousMeta(Relationship relationship,
Vertex previousQuestionInput,
Network network)
Remove the sentence from the previous input to the relationships response meta info.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
java.util.List<Vertex> |
Language.processCompoundWords(java.util.List<Relationship> words)
Transform the list of words, into a list of compound words.
|
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.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.
|