|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWorldState
Each Brahms virtual machine has one world state component. The world state component in the virtual machine is responsible for maintaining the fact set. All agents and objects share the same fact set. The fact set defines the state of the world by means of object attribute values and object relations. The facts in the world are the states in the world that can be detected by agents and objects (active instances). The objects also use the facts in the world to reason with. The preconditions defined for the work of an object are evaluated based on facts instead of beliefs as with agents. The world state is responsible for distributing the fact to all the agents and objects in the virtual machine. In a simulation environment the world state posts the fact on the agents or objects event queues. The assertion of the fact in the world state and the distribution of this fact to all agents and objects must happen synchronously. In simulation mode agents or objects are not allowed to process their event queues until they received the new fact. In an intelligent agent environment the new fact immediately triggers the reasoning process for an object if the fact is relevant for the work of the object. The fact set as defined in the world state is also used to initialize agents and objects that are dynamically loaded during a simulation or intelligent agent session.
Method Summary | |
---|---|
void |
addFactRelationConcept(IConcept lhsConcept,
java.lang.String relationName,
IConcept rhsConcept,
IContext ctx)
Adds a concept as a value of a named relation for a concept by asserting a new fact into the world state. |
void |
assertFact(IFact fact,
IContext ctx)
Schedules the assertion of the specified fact into the world state including the distribution of the fact to all agents and objects. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
boolean value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
byte value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
char value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
double value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
float value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
IConcept value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
int value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int lhsCollectionIndex,
int relop,
boolean value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int lhsCollectionIndex,
int relop,
byte value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int lhsCollectionIndex,
int relop,
char value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int lhsCollectionIndex,
int relop,
double value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int lhsCollectionIndex,
int relop,
float value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int lhsCollectionIndex,
int relop,
IConcept value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int lhsCollectionIndex,
int relop,
int value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int lhsCollectionIndex,
int relop,
IUnknown value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int lhsCollectionIndex,
int relop,
long value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int lhsCollectionIndex,
int relop,
java.lang.Object value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int lhsCollectionIndex,
int relop,
java.io.Serializable value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int lhsCollectionIndex,
int relop,
short value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int lhsCollectionIndex,
int relop,
java.lang.String value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
IUnknown value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
long value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
java.lang.Object value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
java.io.Serializable value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
short value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
java.lang.String value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
java.lang.String lhsCollectionIndex,
int relop,
boolean value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
java.lang.String lhsCollectionIndex,
int relop,
byte value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
java.lang.String lhsCollectionIndex,
int relop,
char value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
java.lang.String lhsCollectionIndex,
int relop,
double value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
java.lang.String lhsCollectionIndex,
int relop,
float value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
java.lang.String lhsCollectionIndex,
int relop,
IConcept value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
java.lang.String lhsCollectionIndex,
int relop,
int value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
java.lang.String lhsCollectionIndex,
int relop,
IUnknown value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
java.lang.String lhsCollectionIndex,
int relop,
long value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
java.lang.String lhsCollectionIndex,
int relop,
java.lang.Object value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
java.lang.String lhsCollectionIndex,
int relop,
java.io.Serializable value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
java.lang.String lhsCollectionIndex,
int relop,
short value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IAttribute lhsAttribute,
java.lang.String lhsCollectionIndex,
int relop,
java.lang.String value)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IRelation relation,
IConcept rhsConcept,
int truthValue)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFact(IConcept lhsConcept,
IRelation relation,
IUnknown rhsConcept,
int truthValue)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
boolean |
getFactAttributeBoolean(IConcept lhsConcept,
java.lang.String attributeName)
Retrieves a boolean value for an attribute of a concept from a fact in the world state |
boolean |
getFactAttributeBoolean(IConcept lhsConcept,
java.lang.String attributeName,
int index)
Retrieves a boolean value for a collection attribute of a concept at a given integer index from a fact in the world state |
boolean |
getFactAttributeBoolean(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key)
Retrieves a boolean value for a collection attribute of a concept at a given String key from a fact in the world state |
byte |
getFactAttributeByte(IConcept lhsConcept,
java.lang.String attributeName)
Retrieves a byte value for an attribute of a concept from a fact in the world state |
byte |
getFactAttributeByte(IConcept lhsConcept,
java.lang.String attributeName,
int index)
Retrieves a byte value for a collection attribute of a concept at a given integer index from a fact in the world state |
byte |
getFactAttributeByte(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key)
Retrieves a byte value for a collection attribute of a concept at a given String key from a fact in the world state |
char |
getFactAttributeChar(IConcept lhsConcept,
java.lang.String attributeName)
Retrieves a char value for an attribute of a concept from a fact in the world state |
char |
getFactAttributeChar(IConcept lhsConcept,
java.lang.String attributeName,
int index)
Retrieves a char value for a collection attribute of a concept at a given integer index from a fact in the world state |
char |
getFactAttributeChar(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key)
Retrieves a char value for a collection attribute of a concept at a given String key from a fact in the world state |
IConcept |
getFactAttributeConcept(IConcept lhsConcept,
java.lang.String attributeName)
Retrieves an IConcept value for an attribute of a concept from a fact in the world state |
IConcept |
getFactAttributeConcept(IConcept lhsConcept,
java.lang.String attributeName,
int index)
Retrieves an IConcept value for a collection attribute of a concept at a given integer index from a fact in the world state |
IConcept |
getFactAttributeConcept(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key)
Retrieves an IConcept value for a collection attribute of a concept at a given String key from a fact in the world state |
double |
getFactAttributeDouble(IConcept lhsConcept,
java.lang.String attributeName)
Retrieves a double value for an attribute of a concept from a fact in the world state |
double |
getFactAttributeDouble(IConcept lhsConcept,
java.lang.String attributeName,
int index)
Retrieves a double value for a collection attribute of a concept at a given integer index from a fact in the world state |
double |
getFactAttributeDouble(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key)
Retrieves a double value for a collection attribute of a concept at a given String key from a fact in the world state |
float |
getFactAttributeFloat(IConcept lhsConcept,
java.lang.String attributeName)
Retrieves a float value for an attribute of a concept from a fact in the world state |
float |
getFactAttributeFloat(IConcept lhsConcept,
java.lang.String attributeName,
int index)
Retrieves a float value for a collection attribute of a concept at a given integer index from a fact in the world state |
float |
getFactAttributeFloat(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key)
Retrieves a float value for a collection attribute of a concept at a given String key from a fact in the world state |
int |
getFactAttributeInt(IConcept lhsConcept,
java.lang.String attributeName)
Retrieves an int value for an attribute of a concept from a fact in the world state |
int |
getFactAttributeInt(IConcept lhsConcept,
java.lang.String attributeName,
int index)
Retrieves an int value for a collection attribute of a concept at a given integer index from a fact in the world state |
int |
getFactAttributeInt(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key)
Retrieves an int value for a collection attribute of a concept at a given String key from a fact in the world state |
java.io.Serializable |
getFactAttributeJava(IConcept lhsConcept,
java.lang.String attributeName)
Retrieves a Java Serializable value for an attribute of a concept from a fact in the world state |
java.io.Serializable |
getFactAttributeJava(IConcept lhsConcept,
java.lang.String attributeName,
int index)
Retrieves a Serializable value for a collection attribute of a concept at a given integer index from a fact in the world state |
java.io.Serializable |
getFactAttributeJava(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key)
Retrieves a Serializable value for a collection attribute of a concept at a given String key from a fact in the world state |
long |
getFactAttributeLong(IConcept lhsConcept,
java.lang.String attributeName)
Retrieves a long value for an attribute of a concept from a fact in the world state |
long |
getFactAttributeLong(IConcept lhsConcept,
java.lang.String attributeName,
int index)
Retrieves a long value for a collection attribute of a concept at a given integer index from a fact in the world state |
long |
getFactAttributeLong(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key)
Retrieves a long value for a collection attribute of a concept at a given String key from a fact in the world state |
java.util.Map<java.lang.Object,java.lang.Object> |
getFactAttributeMap(IConcept lhsConcept,
java.lang.String attributeName,
boolean includeUnknown)
Returns a Map representing the values for a map attribute of a concept from facts in the world state Entries with values of unknown are included in the returned Map if the includeUnknown parameter is true. |
short |
getFactAttributeShort(IConcept lhsConcept,
java.lang.String attributeName)
Retrieves a short value for an attribute of a concept from a fact in the world state |
short |
getFactAttributeShort(IConcept lhsConcept,
java.lang.String attributeName,
int index)
Retrieves a short value for a collection attribute of a concept at a given integer index from a fact in the world state |
short |
getFactAttributeShort(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key)
Retrieves a short value for a collection attribute of a concept at a given String key from a fact in the world state |
java.util.SortedMap<java.lang.Object,java.lang.Object> |
getFactAttributeSortedMap(IConcept lhsConcept,
java.lang.String attributeName,
boolean includeUnknown)
Returns a sorted Map representing the values for a map attribute of a concept from facts in the world state Entries with values of unknown are included in the returned Map if the includeUnknown parameter is true. |
java.lang.String |
getFactAttributeString(IConcept lhsConcept,
java.lang.String attributeName)
Retrieves a String value for an attribute of a concept from a fact in the world state The attribute's Brahms type may be either string or symbol. |
java.lang.String |
getFactAttributeString(IConcept lhsConcept,
java.lang.String attributeName,
int index)
Retrieves a String value for a collection attribute of a concept at a given integer index from a fact in the world state The Brahms type of the value may be either string or symbol. |
java.lang.String |
getFactAttributeString(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key)
Retrieves a String value for a collection attribute of a concept at a given String key from a fact in the world state The Brahms type of the value may be either string or symbol. |
java.lang.Object |
getFactAttributeValue(IConcept lhsConcept,
java.lang.String attributeName)
Retrieves the value for an attribute of a concept from a fact in the world state Returns null if there is no corresponding fact in the world state. |
java.lang.Object |
getFactAttributeValue(IConcept lhsConcept,
java.lang.String attributeName,
int index)
Retrieves the value for a collection attribute of a concept at a given integer index from a fact in the world state Returns null if there is no corresponding fact in the world state. |
java.lang.Object |
getFactAttributeValue(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key)
Retrieves the value for a collection attribute of a concept at a given String key from a fact in the world state Returns null if there is no corresponding fact in the world state. |
IFact |
getFactForIndex(IConcept lhsConcept,
IAttribute lhsAttribute,
int lhsCollectionIndex,
int relop,
IContext ctx)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
IFact |
getFactForIndex(IConcept lhsConcept,
IAttribute lhsAttribute,
java.lang.String lhsCollectionIndex,
int relop,
IContext ctx)
Find the fact using the specified parameters and return the fact if found, null if the fact was not found. |
java.util.List<IConcept> |
getFactRelationConcepts(IConcept lhsConcept,
java.lang.String relationName)
Retrieves a list of concepts that are related to a given concept by a named relation by inspecting the facts in the current world state. |
java.util.Enumeration |
getFacts()
Returns a list of all the facts in the world state's fact set. |
java.util.Enumeration |
getFacts(IAttribute attribute)
Returns a list of all the facts that have the specified attribute regardless of the lhs concept, relational operator and right hand side value. |
java.util.Enumeration |
getFacts(IConcept lhsConcept,
IAttribute lhsAttribute)
Returns a list of all the facts that have the specified concept and attribute on their left hand side regardless of their relational operator or value. |
java.util.Enumeration |
getFacts(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop)
Returns a list of all the facts that have the specified concept and attribute on their left hand side and that use the specified relational operator. |
java.util.Enumeration |
getFacts(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
boolean value)
Returns a list of all the facts that have the specified concept and attribute on their left hand side, that use the specified relational operator and have the specified rhs value. |
java.util.Enumeration |
getFacts(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
byte value)
Returns a list of all the facts that have the specified concept and attribute on their left hand side, that use the specified relational operator and have the specified rhs value. |
java.util.Enumeration |
getFacts(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
char value)
Returns a list of all the facts that have the specified concept and attribute on their left hand side, that use the specified relational operator and have the specified rhs value. |
java.util.Enumeration |
getFacts(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
double value)
Returns a list of all the facts that have the specified concept and attribute on their left hand side, that use the specified relational operator and have the specified rhs value. |
java.util.Enumeration |
getFacts(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
float value)
Returns a list of all the facts that have the specified concept and attribute on their left hand side, that use the specified relational operator and have the specified rhs value. |
java.util.Enumeration |
getFacts(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
IConcept value)
Returns a list of all the facts that have the specified concept and attribute on their left hand side, that use the specified relational operator and have the specified rhs value. |
java.util.Enumeration |
getFacts(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
int value)
Returns a list of all the facts that have the specified concept and attribute on their left hand side, that use the specified relational operator and have the specified rhs value. |
java.util.Enumeration |
getFacts(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
IUnknown value)
Returns a list of all the facts that have the specified concept and attribute on their left hand side, that use the specified relational operator and have the specified rhs value. |
java.util.Enumeration |
getFacts(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
long value)
Returns a list of all the facts that have the specified concept and attribute on their left hand side, that use the specified relational operator and have the specified rhs value. |
java.util.Enumeration |
getFacts(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
java.lang.Object value)
Returns a list of all the facts that have the specified concept and attribute on their left hand side, that use the specified relational operator and have the specified rhs value. |
java.util.Enumeration |
getFacts(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
java.io.Serializable value)
Returns a list of all the facts that have the specified concept and attribute on their left hand side, that use the specified relational operator and have the specified rhs value. |
java.util.Enumeration |
getFacts(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
short value)
Returns a list of all the facts that have the specified concept and attribute on their left hand side, that use the specified relational operator and have the specified rhs value. |
java.util.Enumeration |
getFacts(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
java.lang.String value)
Returns a list of all the facts that have the specified concept and attribute on their left hand side, that use the specified relational operator and have the specified rhs value. |
java.util.Enumeration |
getFacts(IConcept lhsConcept,
IRelation relation)
Returns a list of all the facts that have the specified left hand side concept and relation regardless of their right hand side concept. |
java.util.Enumeration |
getFacts(IConcept lhsConcept,
IRelation relation,
int truthValue)
Returns a list of all the facts that have the specified left hand side concept, relation and truth value regardless of their right hand side concept. |
java.util.Enumeration |
getFacts(IRelation relation)
Returns a list of all the facts that have the specified relation regardless of their left and right hand side concept. |
java.util.Enumeration |
getFacts(IRelation relation,
IConcept rhsConcept,
int truthValue)
Returns a list of all the facts that have the specified relation and right hand side concept, and truth value regardless of their left hand side concept. |
java.util.Enumeration |
getFacts(IRelation relation,
IUnknown rhsConcept,
int truthValue)
Returns a list of all the facts that have the specified relation, as right hand side 'unknown', and the specified truth value regardless of their left hand side concept. |
boolean |
hasFactAttributeAnyValue(IConcept lhsConcept,
java.lang.String attributeName,
boolean includeUnknown)
Tests whether a concept has any value for a named attribute based on the facts in the world state. |
boolean |
hasFactAttributeAnyValue(IConcept lhsConcept,
java.lang.String attributeName,
int index,
boolean includeUnknown)
Tests whether a concept has any value for a named collection attribute at a given integer index based on the facts in the world state. |
boolean |
hasFactAttributeAnyValue(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key,
boolean includeUnknown)
Tests whether a concept has any value for a named collection attribute at a given String key based on the facts in the world state. |
boolean |
hasFactAttributeValue(IConcept lhsConcept,
java.lang.String attributeName,
int index,
java.lang.Object value)
Tests whether a concept has a specified value for a named collection attribute at an int index based on the facts in the world state. |
boolean |
hasFactAttributeValue(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.Object value)
Tests whether a concept has a specified value for a named attribute based on the facts in the world state. |
boolean |
hasFactAttributeValue(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key,
java.lang.Object value)
Tests whether a concept has a specified value for a named collection attribute at a String key based on the facts in the world state. |
boolean |
hasFactRelationAnyValue(IConcept lhsConcept,
java.lang.String relationName,
boolean includeUnknown)
Tests whether there are any true facts for a given concept and named relation in the current world state. |
boolean |
hasFactRelationValue(IConcept lhsConcept,
java.lang.String relationName,
java.lang.Object value)
Tests whether a concept is related to a value by a named relation by inspecting the facts in the current world state. |
java.util.List<IConcept> |
removeAllFactRelationValues(IConcept lhsConcept,
java.lang.String relationName,
IContext ctx)
Removes any existing concepts as values of a named relation for a concept by retracting facts from the world state. |
void |
removeFactRelationConcept(IConcept lhsConcept,
java.lang.String relationName,
IConcept rhsConcept,
IContext ctx)
Removes a concept as a value of a named relation for a concept by retracting the corresponding fact from the world state. |
void |
retractFact(IFact fact,
IContext ctx)
Schedules the retraction of the specified fact from the world state including the notification of the retraction to all agents and objects. |
void |
setFactAttributeBoolean(IConcept lhsConcept,
java.lang.String attributeName,
boolean value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified boolean value for a named attribute |
void |
setFactAttributeBoolean(IConcept lhsConcept,
java.lang.String attributeName,
int index,
boolean value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified boolean value for a named collection attribute at an int index |
void |
setFactAttributeBoolean(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key,
boolean value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified boolean value for a named collection attribute at a String key |
void |
setFactAttributeByte(IConcept lhsConcept,
java.lang.String attributeName,
byte value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified byte value for a named attribute |
void |
setFactAttributeByte(IConcept lhsConcept,
java.lang.String attributeName,
int index,
byte value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified byte value for a named collection attribute at an int index |
void |
setFactAttributeByte(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key,
byte value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified byte value for a named collection attribute at a String key |
void |
setFactAttributeChar(IConcept lhsConcept,
java.lang.String attributeName,
char value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified char value for a named attribute |
void |
setFactAttributeChar(IConcept lhsConcept,
java.lang.String attributeName,
int index,
char value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified char value for a named collection attribute at an int index |
void |
setFactAttributeChar(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key,
char value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified char value for a named collection attribute at a String key |
void |
setFactAttributeConcept(IConcept lhsConcept,
java.lang.String attributeName,
IConcept value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified IConcept value for a named attribute |
void |
setFactAttributeConcept(IConcept lhsConcept,
java.lang.String attributeName,
int index,
IConcept value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified IConcept value for a named collection attribute at an int index |
void |
setFactAttributeConcept(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key,
IConcept value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified IConcept value for a named collection attribute at a String key |
void |
setFactAttributeDouble(IConcept lhsConcept,
java.lang.String attributeName,
double value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified double value for a named attribute |
void |
setFactAttributeDouble(IConcept lhsConcept,
java.lang.String attributeName,
int index,
double value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified double value for a named collection attribute at an int index |
void |
setFactAttributeDouble(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key,
double value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified double value for a named collection attribute at a String key |
void |
setFactAttributeFloat(IConcept lhsConcept,
java.lang.String attributeName,
float value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified float value for a named attribute |
void |
setFactAttributeFloat(IConcept lhsConcept,
java.lang.String attributeName,
int index,
float value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified float value for a named collection attribute at an int index |
void |
setFactAttributeFloat(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key,
float value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified float value for a named collection attribute at a String key |
void |
setFactAttributeInt(IConcept lhsConcept,
java.lang.String attributeName,
int value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified int value for a named attribute |
void |
setFactAttributeInt(IConcept lhsConcept,
java.lang.String attributeName,
int index,
int value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified int value for a named collection attribute at an int index |
void |
setFactAttributeInt(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key,
int value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified int value for a named collection attribute at a String key |
void |
setFactAttributeJava(IConcept lhsConcept,
java.lang.String attributeName,
int index,
java.lang.Object value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified Java Object value for a named collection attribute at an int index |
void |
setFactAttributeJava(IConcept lhsConcept,
java.lang.String attributeName,
int index,
java.io.Serializable value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified Java Serializable value for a named collection attribute at an int index |
void |
setFactAttributeJava(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.Object value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified Java Object value for a named attribute |
void |
setFactAttributeJava(IConcept lhsConcept,
java.lang.String attributeName,
java.io.Serializable value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified Java Serializable value for a named attribute |
void |
setFactAttributeJava(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key,
java.lang.Object value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified Java Object value for a named collection attribute at a String key |
void |
setFactAttributeJava(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key,
java.io.Serializable value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified Java Serializable value for a named collection attribute at a String key |
void |
setFactAttributeLong(IConcept lhsConcept,
java.lang.String attributeName,
int index,
long value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified long value for a named collection attribute at an int index |
void |
setFactAttributeLong(IConcept lhsConcept,
java.lang.String attributeName,
long value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified long value for a named attribute |
void |
setFactAttributeLong(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key,
long value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified long value for a named collection attribute at a String key |
void |
setFactAttributeShort(IConcept lhsConcept,
java.lang.String attributeName,
int index,
short value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified short value for a named collection attribute at an int index |
void |
setFactAttributeShort(IConcept lhsConcept,
java.lang.String attributeName,
short value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified short value for a named attribute |
void |
setFactAttributeShort(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key,
short value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified short value for a named collection attribute at a String key |
void |
setFactAttributeString(IConcept lhsConcept,
java.lang.String attributeName,
int index,
java.lang.String value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified string value for a named collection attribute at an int index |
void |
setFactAttributeString(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified string value for a named attribute |
void |
setFactAttributeString(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key,
java.lang.String value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified string value for a named collection attribute at a String key |
void |
setFactAttributeSymbol(IConcept lhsConcept,
java.lang.String attributeName,
int index,
java.lang.String value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified symbol value for a named collection attribute at an int index |
void |
setFactAttributeSymbol(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified symbol value for a named attribute |
void |
setFactAttributeSymbol(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key,
java.lang.String value,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has a specified symbol value for a named collection attribute at a String key |
void |
setFactAttributeUnknown(IConcept lhsConcept,
java.lang.String attributeName,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has the unknown value for a named attribute |
void |
setFactAttributeUnknown(IConcept lhsConcept,
java.lang.String attributeName,
int index,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has the unknown value for a named collection attribute at an int index |
void |
setFactAttributeUnknown(IConcept lhsConcept,
java.lang.String attributeName,
java.lang.String key,
IContext ctx)
Creates and asserts a new fact in the world state representing that an IConcept has the unknown value for a named collection attribute at a String key |
void |
setFactRelationUnknown(IConcept lhsConcept,
java.lang.String relationName,
IContext ctx)
Removes any existing concepts as values of a named relation for a concept by giving the relation a value of unknown. |
Method Detail |
---|
void assertFact(IFact fact, IContext ctx) throws ExternalException
fact
- the IFact to be assertedctx
- the IContext for the action
ExternalException
- if an internal error occursvoid retractFact(IFact fact, IContext ctx) throws ExternalException
fact
- the IFact to be retractedctx
- the IContext for the action
ExternalException
- if an internal error occursIFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int relop, int value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factrelop
- the relational operator in the requested factvalue
- the right hand side integer value in the requested fact
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int relop, char value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factrelop
- the relational operator in the requested factvalue
- the right hand side character value in the requested fact
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int relop, byte value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factrelop
- the relational operator in the requested factvalue
- the right hand side byte value in the requested fact
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int relop, short value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factrelop
- the relational operator in the requested factvalue
- the right hand side short value in the requested fact
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int relop, long value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factrelop
- the relational operator in the requested factvalue
- the right hand side long value in the requested fact
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int relop, float value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factrelop
- the relational operator in the requested factvalue
- the right hand side float value in the requested fact
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int relop, double value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factrelop
- the relational operator in the requested factvalue
- the right hand side double value in the requested fact
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int relop, boolean value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factrelop
- the relational operator in the requested factvalue
- the right hand side boolean value in the requested fact
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int relop, java.lang.String value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factrelop
- the relational operator in the requested factvalue
- the right hand side String or symbol value in the requested fact
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int relop, IConcept value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factrelop
- the relational operator in the requested factvalue
- the right hand side IConcept value in the requested fact
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int relop, java.io.Serializable value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factrelop
- the relational operator in the requested factvalue
- the right hand side Java Serializable value in the requested fact
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int relop, java.lang.Object value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factrelop
- the relational operator in the requested factvalue
- the right hand side Java Object value in the requested fact
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int relop, IUnknown value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factrelop
- the relational operator in the requested factvalue
- the right hand side 'unknown' value in the requested fact
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
,
IUnknown.UNKNOWN
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int lhsCollectionIndex, int relop, int value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side integer value in the requested fact
ExternalException
- if an internal error occursIConstants.EQ
,
IConstants.NE
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, java.lang.String lhsCollectionIndex, int relop, int value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side integer value in the requested fact
ExternalException
- if an internal error occursIConstants.EQ
,
IConstants.NE
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int lhsCollectionIndex, int relop, char value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side character value in the requested fact
ExternalException
- if an internal error occursIConstants.EQ
,
IConstants.NE
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, java.lang.String lhsCollectionIndex, int relop, char value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side character value in the requested fact
ExternalException
- if an internal error occursIConstants.EQ
,
IConstants.NE
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int lhsCollectionIndex, int relop, byte value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side byte value in the requested fact
ExternalException
- if an internal error occursIConstants.EQ
,
IConstants.NE
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, java.lang.String lhsCollectionIndex, int relop, byte value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side byte value in the requested fact
ExternalException
- if an internal error occursIConstants.EQ
,
IConstants.NE
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int lhsCollectionIndex, int relop, short value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side short value in the requested fact
ExternalException
- if an internal error occursIConstants.EQ
,
IConstants.NE
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, java.lang.String lhsCollectionIndex, int relop, short value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side short value in the requested fact
ExternalException
- if an internal error occursIConstants.EQ
,
IConstants.NE
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int lhsCollectionIndex, int relop, long value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side long value in the requested fact
ExternalException
- if an internal error occursIConstants.EQ
,
IConstants.NE
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, java.lang.String lhsCollectionIndex, int relop, long value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side long value in the requested fact
ExternalException
- if an internal error occursIConstants.EQ
,
IConstants.NE
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int lhsCollectionIndex, int relop, float value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side float value in the requested fact
ExternalException
- if an internal error occursIConstants.EQ
,
IConstants.NE
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, java.lang.String lhsCollectionIndex, int relop, float value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side float value in the requested fact
ExternalException
- if an internal error occursIConstants.EQ
,
IConstants.NE
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int lhsCollectionIndex, int relop, double value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side double value in the requested fact
ExternalException
- if an internal error occursIConstants.EQ
,
IConstants.NE
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, java.lang.String lhsCollectionIndex, int relop, double value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side double value in the requested fact
ExternalException
- if an internal error occursIConstants.EQ
,
IConstants.NE
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int lhsCollectionIndex, int relop, boolean value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side boolean value in the requested fact
ExternalException
- if an internal error occursIConstants.EQ
,
IConstants.NE
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, java.lang.String lhsCollectionIndex, int relop, boolean value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side boolean value in the requested fact
ExternalException
- if an internal error occursIConstants.EQ
,
IConstants.NE
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int lhsCollectionIndex, int relop, java.lang.String value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side String or symbol value in the requested fact
ExternalException
- if an internal error occursIConstants.EQ
,
IConstants.NE
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, java.lang.String lhsCollectionIndex, int relop, java.lang.String value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side String or symbol value in the requested fact
ExternalException
- if an internal error occursIConstants.EQ
,
IConstants.NE
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int lhsCollectionIndex, int relop, IConcept value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side IConcept value in the requested fact
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, java.lang.String lhsCollectionIndex, int relop, IConcept value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side IConcept value in the requested fact
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int lhsCollectionIndex, int relop, java.io.Serializable value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side Java Serializable value in the requested fact
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, java.lang.String lhsCollectionIndex, int relop, java.io.Serializable value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side Java Serializable value in the requested fact
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int lhsCollectionIndex, int relop, java.lang.Object value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side Java Object value in the requested fact
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, java.lang.String lhsCollectionIndex, int relop, java.lang.Object value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side Java Object value in the requested fact
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, int lhsCollectionIndex, int relop, IUnknown value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side 'unknown' value in the requested fact
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
,
IUnknown.UNKNOWN
IFact getFact(IConcept lhsConcept, IAttribute lhsAttribute, java.lang.String lhsCollectionIndex, int relop, IUnknown value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factvalue
- the right hand side 'unknown' value in the requested fact
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
,
IUnknown.UNKNOWN
IFact getFactForIndex(IConcept lhsConcept, IAttribute lhsAttribute, int lhsCollectionIndex, int relop, IContext ctx) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factctx
- the IContext for the action
ExternalException
- if an internal error occursMessageNotRepliedToException
,
IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
,
IUnknown.UNKNOWN
IFact getFactForIndex(IConcept lhsConcept, IAttribute lhsAttribute, java.lang.String lhsCollectionIndex, int relop, IContext ctx) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factlhsAttribute
- the left hand side IAttribute in the requested factlhsCollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator in the requested factctx
- the IContext for the action
ExternalException
- if an internal error occursMessageNotRepliedToException
,
IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
,
IUnknown.UNKNOWN
IFact getFact(IConcept lhsConcept, IRelation relation, IConcept rhsConcept, int truthValue) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factrelation
- the IRelation in the requested factrhsConcept
- the right hand side IConcept in the requested facttruthValue
- the truth value in the requested fact (TRUE, FALSE, UNKNOWN)
ExternalException
- if an internal error occursITruthValue.TRUE
,
ITruthValue.FALSE
,
ITruthValue.UNKNOWN
IFact getFact(IConcept lhsConcept, IRelation relation, IUnknown rhsConcept, int truthValue) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested factrelation
- the IRelation in the requested factrhsConcept
- the right hand side 'unknown' value in the requested facttruthValue
- the truth value in the requested fact (TRUE, FALSE, UNKNOWN)
ExternalException
- if an internal error occursIUnknown.UNKNOWN
,
ITruthValue.TRUE
,
ITruthValue.FALSE
,
ITruthValue.UNKNOWN
java.util.Enumeration getFacts() throws ExternalException
ExternalException
- if an internal error occursjava.util.Enumeration getFacts(IAttribute attribute) throws ExternalException
attribute
- the IAttribute in the requested fact(s)
ExternalException
- if an internal error occursjava.util.Enumeration getFacts(IConcept lhsConcept, IAttribute lhsAttribute) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested fact(s)lhsAttribute
- the left hand side IAttribute in the requested fact(s)
ExternalException
- if an internal error occursjava.util.Enumeration getFacts(IConcept lhsConcept, IAttribute lhsAttribute, int relop) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested fact(s)lhsAttribute
- the left hand side IAttribute in the requested fact(s)relop
- the relational operator in the requested fact(s)
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
java.util.Enumeration getFacts(IConcept lhsConcept, IAttribute lhsAttribute, int relop, int value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested fact(s)lhsAttribute
- the left hand side IAttribute in the requested fact(s)relop
- the relational operator in the requested fact(s)value
- the integer value to match
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
java.util.Enumeration getFacts(IConcept lhsConcept, IAttribute lhsAttribute, int relop, char value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested fact(s)lhsAttribute
- the left hand side IAttribute in the requested fact(s)relop
- the relational operator in the requested fact(s)value
- the character value to match
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
java.util.Enumeration getFacts(IConcept lhsConcept, IAttribute lhsAttribute, int relop, byte value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested fact(s)lhsAttribute
- the left hand side IAttribute in the requested fact(s)relop
- the relational operator in the requested fact(s)value
- the byte value to match
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
java.util.Enumeration getFacts(IConcept lhsConcept, IAttribute lhsAttribute, int relop, short value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested fact(s)lhsAttribute
- the left hand side IAttribute in the requested fact(s)relop
- the relational operator in the requested fact(s)value
- the short value to match
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
java.util.Enumeration getFacts(IConcept lhsConcept, IAttribute lhsAttribute, int relop, long value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested fact(s)lhsAttribute
- the left hand side IAttribute in the requested fact(s)relop
- the relational operator in the requested fact(s)value
- the long value to match
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
java.util.Enumeration getFacts(IConcept lhsConcept, IAttribute lhsAttribute, int relop, float value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested fact(s)lhsAttribute
- the left hand side IAttribute in the requested fact(s)relop
- the relational operator in the requested fact(s)value
- the float value to match
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
java.util.Enumeration getFacts(IConcept lhsConcept, IAttribute lhsAttribute, int relop, double value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested fact(s)lhsAttribute
- the left hand side IAttribute in the requested fact(s)relop
- the relational operator in the requested fact(s)value
- the double value to match
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
java.util.Enumeration getFacts(IConcept lhsConcept, IAttribute lhsAttribute, int relop, boolean value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested fact(s)lhsAttribute
- the left hand side IAttribute in the requested fact(s)relop
- the relational operator in the requested fact(s)value
- the boolean value to match
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
java.util.Enumeration getFacts(IConcept lhsConcept, IAttribute lhsAttribute, int relop, java.lang.String value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested fact(s)lhsAttribute
- the left hand side IAttribute in the requested fact(s)relop
- the relational operator in the requested fact(s)value
- the String or symbol value to match
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
java.util.Enumeration getFacts(IConcept lhsConcept, IAttribute lhsAttribute, int relop, IConcept value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested fact(s)lhsAttribute
- the left hand side IAttribute in the requested fact(s)relop
- the relational operator in the requested fact(s)value
- the IConcept value to match
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
java.util.Enumeration getFacts(IConcept lhsConcept, IAttribute lhsAttribute, int relop, java.io.Serializable value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested fact(s)lhsAttribute
- the left hand side IAttribute in the requested fact(s)relop
- the relational operator in the requested fact(s)value
- the Java Serializable value to match
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
java.util.Enumeration getFacts(IConcept lhsConcept, IAttribute lhsAttribute, int relop, java.lang.Object value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested fact(s)lhsAttribute
- the left hand side IAttribute in the requested fact(s)relop
- the relational operator in the requested fact(s)value
- the Java Object value to match
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
java.util.Enumeration getFacts(IConcept lhsConcept, IAttribute lhsAttribute, int relop, IUnknown value) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested fact(s)lhsAttribute
- the left hand side IAttribute in the requested fact(s)relop
- the relational operator in the requested fact(s)value
- the IUnknown value to match
ExternalException
- if an internal error occursIRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
java.util.Enumeration getFacts(IRelation relation) throws ExternalException
relation
- the IRelation in the requested fact(s)
ExternalException
- if an internal error occursjava.util.Enumeration getFacts(IConcept lhsConcept, IRelation relation) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested fact(s)relation
- the IRelation in the requested fact(s)
ExternalException
- if an internal error occursjava.util.Enumeration getFacts(IConcept lhsConcept, IRelation relation, int truthValue) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested fact(s)relation
- the IRelation in the requested fact(s)truthValue
- the truth value in the requested fact(s) (TRUE, FALSE, UNKNOWN)
ExternalException
- if an internal error occursITruthValue.TRUE
,
ITruthValue.FALSE
,
ITruthValue.UNKNOWN
java.util.Enumeration getFacts(IRelation relation, IConcept rhsConcept, int truthValue) throws ExternalException
relation
- the IRelation in the requested fact(s)rhsConcept
- the right hand side IConcept in the requested fact(s)truthValue
- the truth value in the requested fact(s) (TRUE, FALSE, UNKNOWN)
ExternalException
- if an internal error occursITruthValue.TRUE
,
ITruthValue.FALSE
,
ITruthValue.UNKNOWN
java.util.Enumeration getFacts(IRelation relation, IUnknown rhsConcept, int truthValue) throws ExternalException
relation
- the IRelation in the requested fact(s)rhsConcept
- the right hand side 'unknown' value in the requested fact(s)truthValue
- the truth value in the requested fact(s) (TRUE, FALSE, UNKNOWN)
ExternalException
- if an internal error occursIUnknown.UNKNOWN
,
ITruthValue.TRUE
,
ITruthValue.FALSE
,
ITruthValue.UNKNOWN
int getFactAttributeInt(IConcept lhsConcept, java.lang.String attributeName) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrieved
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the value of the attribute is not of type int
ExternalException
- if the concept does not have the named attribute or an internal error occursint getFactAttributeInt(IConcept lhsConcept, java.lang.String attributeName, int index) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedindex
- the integer index to be looked up in the map
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the attribute does not have a collection type or the value of the attribute is not of type int
ExternalException
- if the concept does not have the named attribute or an internal error occursint getFactAttributeInt(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedkey
- the String key to be looked up in the map
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the attribute does not have a collection type or the value of the attribute is not of type int
ExternalException
- if the concept does not have the named attribute or an internal error occurschar getFactAttributeChar(IConcept lhsConcept, java.lang.String attributeName) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrieved
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the value of the attribute is not of type char
ExternalException
- if the concept does not have the named attribute or an internal error occurschar getFactAttributeChar(IConcept lhsConcept, java.lang.String attributeName, int index) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedindex
- the integer index to be looked up in the map
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the attribute does not have a collection type or the value of the attribute is not of type char
ExternalException
- if the concept does not have the named attribute or an internal error occurschar getFactAttributeChar(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedkey
- the String key to be looked up in the map
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the attribute does not have a collection type or the value of the attribute is not of type char
ExternalException
- if the concept does not have the named attribute or an internal error occursbyte getFactAttributeByte(IConcept lhsConcept, java.lang.String attributeName) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrieved
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the value of the attribute is not of type byte
ExternalException
- if the concept does not have the named attribute or an internal error occursbyte getFactAttributeByte(IConcept lhsConcept, java.lang.String attributeName, int index) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedindex
- the integer index to be looked up in the map
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the attribute does not have a collection type or the value of the attribute is not of type byte
ExternalException
- if the concept does not have the named attribute or an internal error occursbyte getFactAttributeByte(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedkey
- the String key to be looked up in the map
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the attribute does not have a collection type or the value of the attribute is not of type byte
ExternalException
- if the concept does not have the named attribute or an internal error occursshort getFactAttributeShort(IConcept lhsConcept, java.lang.String attributeName) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrieved
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the value of the attribute is not of type short
ExternalException
- if the concept does not have the named attribute or an internal error occursshort getFactAttributeShort(IConcept lhsConcept, java.lang.String attributeName, int index) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedindex
- the integer index to be looked up in the map
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the attribute does not have a collection type or the value of the attribute is not of type short
ExternalException
- if the concept does not have the named attribute or an internal error occursshort getFactAttributeShort(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedkey
- the String key to be looked up in the map
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the attribute does not have a collection type or the value of the attribute is not of type short
ExternalException
- if the concept does not have the named attribute or an internal error occurslong getFactAttributeLong(IConcept lhsConcept, java.lang.String attributeName) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrieved
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the value of the attribute is not of type long
ExternalException
- if the concept does not have the named attribute or an internal error occurslong getFactAttributeLong(IConcept lhsConcept, java.lang.String attributeName, int index) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedindex
- the integer index to be looked up in the map
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the attribute does not have a collection type or the value of the attribute is not of type long
ExternalException
- if the concept does not have the named attribute or an internal error occurslong getFactAttributeLong(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedkey
- the String key to be looked up in the map
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the attribute does not have a collection type or the value of the attribute is not of type long
ExternalException
- if the concept does not have the named attribute or an internal error occursfloat getFactAttributeFloat(IConcept lhsConcept, java.lang.String attributeName) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrieved
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the value of the attribute is not of type float
ExternalException
- if the concept does not have the named attribute or an internal error occursfloat getFactAttributeFloat(IConcept lhsConcept, java.lang.String attributeName, int index) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedindex
- the integer index to be looked up in the map
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the attribute does not have a collection type or the value of the attribute is not of type float
ExternalException
- if the concept does not have the named attribute or an internal error occursfloat getFactAttributeFloat(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedkey
- the String key to be looked up in the map
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the attribute does not have a collection type or the value of the attribute is not of type float
ExternalException
- if the concept does not have the named attribute or an internal error occursdouble getFactAttributeDouble(IConcept lhsConcept, java.lang.String attributeName) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrieved
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the value of the attribute is not of type double
ExternalException
- if the concept does not have the named attribute or an internal error occursdouble getFactAttributeDouble(IConcept lhsConcept, java.lang.String attributeName, int index) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedindex
- the integer index to be looked up in the map
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the attribute does not have a collection type or the value of the attribute is not of type double
ExternalException
- if the concept does not have the named attribute or an internal error occursdouble getFactAttributeDouble(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedkey
- the String key to be looked up in the map
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the attribute does not have a collection type or the value of the attribute is not of type double
ExternalException
- if the concept does not have the named attribute or an internal error occursboolean getFactAttributeBoolean(IConcept lhsConcept, java.lang.String attributeName) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrieved
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the value of the attribute is not of type boolean
ExternalException
- if the concept does not have the named attribute or an internal error occursboolean getFactAttributeBoolean(IConcept lhsConcept, java.lang.String attributeName, int index) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedindex
- the integer index to be looked up in the map
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the attribute does not have a collection type or the value of the attribute is not of type boolean
ExternalException
- if the concept does not have the named attribute or an internal error occursboolean getFactAttributeBoolean(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedkey
- the String key to be looked up in the map
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the attribute does not have a collection type or the value of the attribute is not of type boolean
ExternalException
- if the concept does not have the named attribute or an internal error occursjava.lang.String getFactAttributeString(IConcept lhsConcept, java.lang.String attributeName) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrieved
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the value of the attribute is not of a string
ExternalException
- if the concept does not have the named attribute or an internal error occursjava.lang.String getFactAttributeString(IConcept lhsConcept, java.lang.String attributeName, int index) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedindex
- the integer index to be looked up in the map
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the attribute does not have a collection type or the value of the attribute is not s string
ExternalException
- if the concept does not have the named attribute or an internal error occursjava.lang.String getFactAttributeString(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedkey
- the String key to be looked up in the map
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the attribute does not have a collection type or the value of the attribute is not a string
ExternalException
- if the concept does not have the named attribute or an internal error occursjava.io.Serializable getFactAttributeJava(IConcept lhsConcept, java.lang.String attributeName) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrieved
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the value of the attribute is not of type Serializable
ExternalException
- if the concept does not have the named attribute or an internal error occursjava.io.Serializable getFactAttributeJava(IConcept lhsConcept, java.lang.String attributeName, int index) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedindex
- the integer index to be looked up in the map
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the attribute does not have a collection type or the value of the attribute is not of type Serializable
ExternalException
- if the concept does not have the named attribute or an internal error occursjava.io.Serializable getFactAttributeJava(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedkey
- the String key to be looked up in the map
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the attribute does not have a collection type or the value of the attribute is not of type Serializable
ExternalException
- if the concept does not have the named attribute or an internal error occursIConcept getFactAttributeConcept(IConcept lhsConcept, java.lang.String attributeName) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrieved
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the value of the attribute is not a concept
ExternalException
- if the concept does not have the named attribute or an internal error occursIConcept getFactAttributeConcept(IConcept lhsConcept, java.lang.String attributeName, int index) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedindex
- the integer index to be looked up in the map
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the attribute does not have a collection type or the value of the attribute is not a concept
ExternalException
- if the concept does not have the named attribute or an internal error occursIConcept getFactAttributeConcept(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key) throws UnknownValueException, InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedkey
- the String key to be looked up in the map
UnknownValueException
- if the value of the attribute is missing or unknown
InvalidTypeException
- if the attribute does not have a collection type or the value of the attribute is not a concept
ExternalException
- if the concept does not have the named attribute or an internal error occursjava.util.Map<java.lang.Object,java.lang.Object> getFactAttributeMap(IConcept lhsConcept, java.lang.String attributeName, boolean includeUnknown) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose map attribute values are to be retrievedattributeName
- the String name of the map attribute whose values are to be retrievedincludeUnknown
- true if unknown values should be included in the map entries
InvalidTypeException
- if the attribute is not a map attribute
ExternalException
- if the concept does not have the named attribute or an internal error occursjava.util.SortedMap<java.lang.Object,java.lang.Object> getFactAttributeSortedMap(IConcept lhsConcept, java.lang.String attributeName, boolean includeUnknown) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose map attribute values are to be retrievedattributeName
- the String name of the map attribute whose values are to be retrievedincludeUnknown
- true if unknown values should be included in the map entries
InvalidTypeException
- if the attribute is not a map attribute
ExternalException
- if the concept does not have the named attribute or an internal error occursjava.lang.Object getFactAttributeValue(IConcept lhsConcept, java.lang.String attributeName) throws ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrieved
ExternalException
- if the concept does not have the named attribute or an internal error occursjava.lang.Object getFactAttributeValue(IConcept lhsConcept, java.lang.String attributeName, int index) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedindex
- the integer index to be looked up in the map
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursjava.lang.Object getFactAttributeValue(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be retrievedattributeName
- the String name of the attribute whose value is to be retrievedkey
- the String key to be looked up in the map
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursboolean hasFactAttributeAnyValue(IConcept lhsConcept, java.lang.String attributeName, boolean includeUnknown) throws ExternalException
lhsConcept
- an IConcept whose attribute value is to be checkedattributeName
- the String name of the attribute whose value is to be checkedincludeUnknown
- true if the unknown value is counted, else false
ExternalException
- if the concept does not have the named attribute or an internal error occursboolean hasFactAttributeAnyValue(IConcept lhsConcept, java.lang.String attributeName, int index, boolean includeUnknown) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be checkedattributeName
- the String name of the attribute whose value is to be checkedindex
- the integer index to be looked up in the mapincludeUnknown
- true if the unknown value is counted, else false
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursboolean hasFactAttributeAnyValue(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key, boolean includeUnknown) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be checkedattributeName
- the String name of the attribute whose value is to be checkedkey
- the String key to be looked up in the mapincludeUnknown
- true if the unknown value is counted, else false
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursboolean hasFactAttributeValue(IConcept lhsConcept, java.lang.String attributeName, java.lang.Object value) throws ExternalException
lhsConcept
- an IConcept whose attribute value is to be checkedattributeName
- the String name of the attribute whose value is to be checkedvalue
- an Object to be compared for equality to the current value of the attribute, if any
ExternalException
- if the concept does not have the named attribute or an internal error occursboolean hasFactAttributeValue(IConcept lhsConcept, java.lang.String attributeName, int index, java.lang.Object value) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be checkedattributeName
- the String name of the attribute whose value is to be checkedindex
- the integer index to be looked up in the mapvalue
- an Object to be compared for equality to the current value of the attribute for the index, if any
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursboolean hasFactAttributeValue(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key, java.lang.Object value) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept whose attribute value is to be checkedattributeName
- the String name of the attribute whose value is to be checkedkey
- the String key to be looked up in the mapvalue
- an Object to be compared for equality to the current value of the attribute for the key, if any
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeInt(IConcept lhsConcept, java.lang.String attributeName, int value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributevalue
- the new int value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a compatible type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeInt(IConcept lhsConcept, java.lang.String attributeName, int index, int value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributeindex
- the integer index to be set to a value in the mapvalue
- the new int value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeInt(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key, int value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributekey
- the String key to be set to a value in the mapvalue
- the new int value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeChar(IConcept lhsConcept, java.lang.String attributeName, char value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributevalue
- the new char value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a compatible type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeChar(IConcept lhsConcept, java.lang.String attributeName, int index, char value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributeindex
- the integer index to be set to a value in the mapvalue
- the new char value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeChar(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key, char value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributekey
- the String key to be set to a value in the mapvalue
- the new char value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeByte(IConcept lhsConcept, java.lang.String attributeName, byte value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributevalue
- the new byte value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a compatible type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeByte(IConcept lhsConcept, java.lang.String attributeName, int index, byte value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributeindex
- the integer index to be set to a value in the mapvalue
- the new byte value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeByte(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key, byte value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributekey
- the String key to be set to a value in the mapvalue
- the new byte value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeShort(IConcept lhsConcept, java.lang.String attributeName, short value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributevalue
- the new short value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a compatible type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeShort(IConcept lhsConcept, java.lang.String attributeName, int index, short value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributeindex
- the integer index to be set to a value in the mapvalue
- the new short value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeShort(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key, short value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributekey
- the String key to be set to a value in the mapvalue
- the new short value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeLong(IConcept lhsConcept, java.lang.String attributeName, long value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributevalue
- the new long value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a compatible type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeLong(IConcept lhsConcept, java.lang.String attributeName, int index, long value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributeindex
- the integer index to be set to a value in the mapvalue
- the new long value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeLong(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key, long value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributekey
- the String key to be set to a value in the mapvalue
- the new long value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeFloat(IConcept lhsConcept, java.lang.String attributeName, float value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributevalue
- the new float value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a compatible type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeFloat(IConcept lhsConcept, java.lang.String attributeName, int index, float value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributeindex
- the integer index to be set to a value in the mapvalue
- the new float value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeFloat(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key, float value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributekey
- the String key to be set to a value in the mapvalue
- the new float value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeDouble(IConcept lhsConcept, java.lang.String attributeName, double value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributevalue
- the new double value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a compatible type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeDouble(IConcept lhsConcept, java.lang.String attributeName, int index, double value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributeindex
- the integer index to be set to a value in the mapvalue
- the new double value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeDouble(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key, double value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributekey
- the String key to be set to a value in the mapvalue
- the new double value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeBoolean(IConcept lhsConcept, java.lang.String attributeName, boolean value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributevalue
- the new boolean value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a compatible type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeBoolean(IConcept lhsConcept, java.lang.String attributeName, int index, boolean value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributeindex
- the integer index to be set to a value in the mapvalue
- the new boolean value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeBoolean(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key, boolean value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributekey
- the String key to be set to a value in the mapvalue
- the new boolean value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeString(IConcept lhsConcept, java.lang.String attributeName, java.lang.String value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributevalue
- a String for the new valuectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a compatible type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeString(IConcept lhsConcept, java.lang.String attributeName, int index, java.lang.String value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributeindex
- the integer index to be set to a value in the mapvalue
- the new String value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeString(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key, java.lang.String value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributekey
- the String key to be set to a value in the mapvalue
- the new String value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeSymbol(IConcept lhsConcept, java.lang.String attributeName, java.lang.String value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributevalue
- a String for the new valuectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a compatible type or the value is not a valid symbol
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeSymbol(IConcept lhsConcept, java.lang.String attributeName, int index, java.lang.String value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributeindex
- the integer index to be set to a value in the mapvalue
- the new String value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type or the value is not a valid symbol
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeSymbol(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key, java.lang.String value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributekey
- the String key to be set to a value in the mapvalue
- the new String value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type or the value is not a valid symbol
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeJava(IConcept lhsConcept, java.lang.String attributeName, java.io.Serializable value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributevalue
- the new Java Serializable value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a compatible type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeJava(IConcept lhsConcept, java.lang.String attributeName, int index, java.io.Serializable value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributeindex
- the integer index to be set to a value in the mapvalue
- the new Java Serializable value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeJava(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key, java.io.Serializable value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributekey
- the String key to be set to a value in the mapvalue
- the new Java Serializable value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeJava(IConcept lhsConcept, java.lang.String attributeName, java.lang.Object value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributevalue
- the new Java Object value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a compatible type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeJava(IConcept lhsConcept, java.lang.String attributeName, int index, java.lang.Object value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributeindex
- the integer index to be set to a value in the mapvalue
- the new Java Object value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeJava(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key, java.lang.Object value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributekey
- the String key to be set to a value in the mapvalue
- the new Java Object value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeConcept(IConcept lhsConcept, java.lang.String attributeName, IConcept value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributevalue
- the new IConcept value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a compatible type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeConcept(IConcept lhsConcept, java.lang.String attributeName, int index, IConcept value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributeindex
- the integer index to be set to a value in the mapvalue
- the new IConcept value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeConcept(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key, IConcept value, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributekey
- the String key to be set to a value in the mapvalue
- the new IConcept value for the attributectx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeUnknown(IConcept lhsConcept, java.lang.String attributeName, IContext ctx) throws ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributectx
- an IContext for asserting the new fact
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeUnknown(IConcept lhsConcept, java.lang.String attributeName, int index, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributeindex
- the integer index to be set to 'unknown' in the collectionctx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursvoid setFactAttributeUnknown(IConcept lhsConcept, java.lang.String attributeName, java.lang.String key, IContext ctx) throws InvalidTypeException, ExternalException
lhsConcept
- an IConcept to be given a new value for an attributeattributeName
- the String name of the attributekey
- the String key to be set to 'unknown' in the collectionctx
- an IContext for asserting the new fact
InvalidTypeException
- if the attribute does not have a collection type
ExternalException
- if the concept does not have the named attribute or an internal error occursjava.util.List<IConcept> getFactRelationConcepts(IConcept lhsConcept, java.lang.String relationName) throws ExternalException
lhsConcept
- an IConcept whose values for a relation are to be retrievedrelationName
- a String name for a relation defined for lhsConcept
ExternalException
- if no relation with the specified name is defined for this concept or an internal error occursboolean hasFactRelationAnyValue(IConcept lhsConcept, java.lang.String relationName, boolean includeUnknown) throws ExternalException
lhsConcept
- an IConcept whose relation to another concept is to be checkedrelationName
- a String name for a relation defined for lhsConceptincludeUnknown
- true if the unknown value is counted, else false
ExternalException
- if no relation with the specified name is defined for this concept or an internal error occursboolean hasFactRelationValue(IConcept lhsConcept, java.lang.String relationName, java.lang.Object value) throws ExternalException
lhsConcept
- an IConcept whose values for a relation are to be checkedrelationName
- a String name for a relation defined for lhsConceptvalue
- an Object to be tested for the right-hand side of the relation
ExternalException
- if no relation with the specified name is defined for this concept or an internal error occursvoid addFactRelationConcept(IConcept lhsConcept, java.lang.String relationName, IConcept rhsConcept, IContext ctx) throws ExternalException
lhsConcept
- an IConcept that gets a new concept related to itrelationName
- a String name for a relation defined for lhsConceptrhsConcept
- the IConcept to be added to lhsConcept's relationctx
- an IContext for asserting the new fact
ExternalException
- if the concept does not have the named relation or an internal error occursvoid removeFactRelationConcept(IConcept lhsConcept, java.lang.String relationName, IConcept rhsConcept, IContext ctx) throws ExternalException
lhsConcept
- an IConcept that has the relation value removedrelationName
- a String name for a relation defined for lhsConceptrhsConcept
- the IConcept to be removed from the lhsConcept's relationctx
- an IContext for retracting the fact
ExternalException
- if the concept does not have the named relation or an internal error occursvoid setFactRelationUnknown(IConcept lhsConcept, java.lang.String relationName, IContext ctx) throws ExternalException
lhsConcept
- an IConcept for which a relation is set to unknownrelationName
- a String name for a relation defined for lhsConceptctx
- an IContext for asserting the fact with an unknown value
ExternalException
- if the concept does not have the named relation or an internal error occursjava.util.List<IConcept> removeAllFactRelationValues(IConcept lhsConcept, java.lang.String relationName, IContext ctx) throws ExternalException
lhsConcept
- an IConcept for which a relation is set to unknownrelationName
- a String name for a relation defined for lhsConceptctx
- an IContext for retracting the facts
ExternalException
- if the concept does not have the named relation or an internal error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |