|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.nasa.arc.brahms.vm.api.common.BeliefFactory
public class BeliefFactory
The BeliefFactory provides methods to create new beliefs.
Constructor Summary | |
---|---|
BeliefFactory()
|
Method Summary | |
---|---|
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int relop,
boolean value)
Creates a new IBelief of the form concept.attribute relop value where relop is one of EQUALS or NOT_EQUALS and the value is a boolean. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int relop,
byte value)
Creates a new IBelief of the form concept.attribute relop value where relop is one of EQUALS or NOT_EQUALS and the value is an integer. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int relop,
char value)
Creates a new IBelief of the form concept.attribute relop value where relop is one of EQUALS or NOT_EQUALS and the value is an integer. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int relop,
double value)
Creates a new IBelief of the form concept.attribute relop value where relop is one of EQUALS or NOT_EQUALS and the value is a double. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int relop,
float value)
Creates a new IBelief of the form concept.attribute relop value where relop is one of EQUALS or NOT_EQUALS and the value is a double. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int relop,
IConcept value)
Creates a new IBelief of the form concept.attribute relop value where relop is one of EQUALS or NOT_EQUALS and the value is an IConcept. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int relop,
int value)
Creates a new IBelief of the form concept.attribute relop value where relop is one of EQUALS or NOT_EQUALS and the value is an integer. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int collectionIndex,
int relop,
boolean value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is a boolean. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int collectionIndex,
int relop,
byte value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is a byte. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int collectionIndex,
int relop,
char value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is a character. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int collectionIndex,
int relop,
double value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is a double. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int collectionIndex,
int relop,
float value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is a float. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int collectionIndex,
int relop,
IConcept value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is an IConcept. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int collectionIndex,
int relop,
int value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is an integer. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int collectionIndex,
int relop,
IUnknown value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is the value 'unknown'. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int collectionIndex,
int relop,
long value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is a long. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int collectionIndex,
int relop,
java.lang.Object value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is a Java Object. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int collectionIndex,
int relop,
java.io.Serializable value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is a Java Serializable. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int collectionIndex,
int relop,
short value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is a short. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int collectionIndex,
int relop,
java.lang.String value,
boolean symbol)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is a String. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int relop,
IUnknown value)
Creates a new IBelief of the form concept.attribute relop value where relop is one of EQUALS or NOT_EQUALS and the value is the value 'unknown'. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int relop,
long value)
Creates a new IBelief of the form concept.attribute relop value where relop is one of EQUALS or NOT_EQUALS and the value is a long. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int relop,
java.lang.Object value)
Creates a new IBelief of the form concept.attribute relop value where relop is one of EQUALS or NOT_EQUALS and the value is a Java object. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int relop,
java.io.Serializable value)
Creates a new IBelief of the form concept.attribute relop value where relop is one of EQUALS or NOT_EQUALS and the value is a Java Serializable. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int relop,
short value)
Creates a new IBelief of the form concept.attribute relop value where relop is one of EQUALS or NOT_EQUALS and the value is an integer. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
int relop,
java.lang.String value,
boolean symbol)
Creates a new IBelief of the form concept.attribute relop value where relop is one of EQUALS or NOT_EQUALS and the value is a String. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
java.lang.String collectionIndex,
int relop,
boolean value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is a boolean. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
java.lang.String collectionIndex,
int relop,
byte value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is a byte. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
java.lang.String collectionIndex,
int relop,
char value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is a character. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
java.lang.String collectionIndex,
int relop,
double value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is a double. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
java.lang.String collectionIndex,
int relop,
float value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is a float. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
java.lang.String collectionIndex,
int relop,
IConcept value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is an IConcept. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
java.lang.String collectionIndex,
int relop,
int value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is an integer. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
java.lang.String collectionIndex,
int relop,
IUnknown value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is the value 'unknown'. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
java.lang.String collectionIndex,
int relop,
long value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is a long. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
java.lang.String collectionIndex,
int relop,
java.lang.Object value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is a Java Object. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
java.lang.String collectionIndex,
int relop,
java.io.Serializable value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is a Java Serializable. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
java.lang.String collectionIndex,
int relop,
short value)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is a short. |
static IBelief |
createBelief(IConcept concept,
IAttribute attribute,
java.lang.String collectionIndex,
int relop,
java.lang.String value,
boolean symbol)
Creates a new IBelief of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS and the value is a String. |
static IBelief |
createBelief(IConcept lhsConcept,
IRelation relation,
IConcept rhsConcept)
Creates a new IBelief of the form concept relation concept. |
static IBelief |
createBelief(IConcept lhsConcept,
IRelation relation,
IConcept rhsConcept,
int truthValue)
Creates a new IBelief of the form concept relation concept. |
static IBelief |
createBelief(IConcept lhsConcept,
IRelation relation,
IUnknown rhsConcept)
Creates a new IBelief of the form concept relation concept. |
static IBelief |
createBelief(IConcept lhsConcept,
IRelation relation,
IUnknown rhsConcept,
int truthValue)
Creates a new IBelief of the form concept relation concept. |
static IBelief[] |
createBeliefs(IConcept concept,
IAttribute attribute,
int relop,
java.util.Map collection)
Creates new IBelief(s) of the form concept.attribute(index) relop value where relop is one of EQUALS or NOT_EQUALS. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeliefFactory()
Method Detail |
---|
public static IBelief createBelief(IConcept concept, IAttribute attribute, int relop, IUnknown value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuerelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the value 'unknown' to be assigned to the attribute
ExternalException
- if the value does not match with the attribute's
type, the attribute is not specified for the given concept, or if an invalid
relational operator is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
,
IUnknown.UNKNOWN
public static IBelief createBelief(IConcept concept, IAttribute attribute, int relop, int value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuerelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the integer value to be assigned to the attribute
ExternalException
- if the value does not match with the attribute's
type, the attribute is not specified for the given concept, or if an invalid
relational operator is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, int relop, char value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuerelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the character value to be assigned to the attribute
ExternalException
- if the value does not match with the attribute's
type, the attribute is not specified for the given concept, or if an invalid
relational operator is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, int relop, byte value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuerelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the byte value to be assigned to the attribute
ExternalException
- if the value does not match with the attribute's
type, the attribute is not specified for the given concept, or if an invalid
relational operator is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, int relop, short value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuerelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the short value to be assigned to the attribute
ExternalException
- if the value does not match with the attribute's
type, the attribute is not specified for the given concept, or if an invalid
relational operator is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, int relop, long value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuerelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the long value to be assigned to the attribute
ExternalException
- if the value does not match with the attribute's
type, the attribute is not specified for the given concept, or if an invalid
relational operator is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, int relop, float value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuerelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the float value to be assigned to the attribute
ExternalException
- if the value does not match with the attribute's
type, or if an invalid relational operator is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, int relop, double value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuerelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the double value to be assigned to the attribute
ExternalException
- if the value does not match with the attribute's
type, or if an invalid relational operator is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, int relop, boolean value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuerelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the boolean value to be assigned to the attribute
ExternalException
- if the value does not match with the attribute's
type, the attribute is not specified for the given concept or if an
invalid relational operator is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, int relop, java.lang.String value, boolean symbol) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuerelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the String value to be assigned to the attributesymbol
- indicates if the value is a symbol or string
ExternalException
- if the value does not match with the attribute's
type, the attribute is not specified for the given concept, or if an
invalid relational operator is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, int relop, IConcept value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuerelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the IConcept value to be assigned to the attribute
ExternalException
- if the value does not match with the attribute's
type, the attribute is not specified for the given concept, the attribute
is the location attribute or if an invalid relational operator is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, int relop, java.io.Serializable value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuerelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the Java Serializable to be assigned to the attribute
ExternalException
- if the value does not match with the attribute's
type, the attribute is not specified for the given concept, the attribute
is the location attribute or if an invalid relational operator is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, int relop, java.lang.Object value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuerelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the Java object to be assigned to the attribute
ExternalException
- if the value does not match with the attribute's
type, the attribute is not specified for the given concept, the attribute
is the location attribute or if an invalid relational operator is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, int collectionIndex, int relop, IUnknown value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the value 'unknown' to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
,
IUnknown.UNKNOWN
public static IBelief createBelief(IConcept concept, IAttribute attribute, java.lang.String collectionIndex, int relop, IUnknown value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the value 'unknown' to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
,
IUnknown.UNKNOWN
public static IBelief createBelief(IConcept concept, IAttribute attribute, int collectionIndex, int relop, int value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the integer value to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, java.lang.String collectionIndex, int relop, int value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the integer value to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, int collectionIndex, int relop, char value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the character value to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, java.lang.String collectionIndex, int relop, char value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the character value to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, int collectionIndex, int relop, byte value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the byte value to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, java.lang.String collectionIndex, int relop, byte value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the byte value to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, int collectionIndex, int relop, short value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the short value to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, java.lang.String collectionIndex, int relop, short value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the short value to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, int collectionIndex, int relop, long value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the long value to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, java.lang.String collectionIndex, int relop, long value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the long value to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, int collectionIndex, int relop, float value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the float value to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, java.lang.String collectionIndex, int relop, float value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the float value to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, int collectionIndex, int relop, double value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the double value to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, java.lang.String collectionIndex, int relop, double value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the double value to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, int collectionIndex, int relop, boolean value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the boolean value to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, java.lang.String collectionIndex, int relop, boolean value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the boolean value to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, int collectionIndex, int relop, java.lang.String value, boolean symbol) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the String value to be assigned to the attributesymbol
- indicates if the value is a symbol or string
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, java.lang.String collectionIndex, int relop, java.lang.String value, boolean symbol) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the String value to be assigned to the attributesymbol
- indicates if the value is a symbol or string
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, int collectionIndex, int relop, IConcept value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the IConcept value to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, java.lang.String collectionIndex, int relop, IConcept value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the IConcept value to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, int collectionIndex, int relop, java.io.Serializable value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the Java Serializable to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, int collectionIndex, int relop, java.lang.Object value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the integer index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the Java Object to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, java.lang.String collectionIndex, int relop, java.io.Serializable value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the Java Serializable to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept concept, IAttribute attribute, java.lang.String collectionIndex, int relop, java.lang.Object value) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the IAttribute defined for the concept to which to assign a valuecollectionIndex
- the String index/key if the attribute's type is a collectionrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.value
- the Java Object to be assigned to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if the collection index is
invalid, if the attribute is the location attribute or if an invalid relational operator
is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
public static IBelief createBelief(IConcept lhsConcept, IRelation relation, IUnknown rhsConcept) throws ExternalException
lhsConcept
- the IConcept for which the relation is specifiedrelation
- the IRelation defined for the conceptrhsConcept
- the IUnknown value to be related to the lhsConcept
ExternalException
- if the rhsConcept does not match with the relation's
type or the relation is not specified for the given lhsConcept.IUnknown.UNKNOWN
public static IBelief createBelief(IConcept lhsConcept, IRelation relation, IConcept rhsConcept) throws ExternalException
lhsConcept
- the IConcept for which the relation is specifiedrelation
- the IRelation defined for the conceptrhsConcept
- the IConcept to be related to the lhsConcept
ExternalException
- if the rhsConcept does not match with the relation's
type or the relation is not specified for the given lhsConcept.public static IBelief createBelief(IConcept lhsConcept, IRelation relation, IUnknown rhsConcept, int truthValue) throws ExternalException
lhsConcept
- the IConcept for which the relation is specifiedrelation
- the IRelation defined for the conceptrhsConcept
- the IUnknown value to be related to the lhsConcepttruthValue
- the truth value of the relationship (TRUE, FALSE, UNKNOWN)
ExternalException
- if the rhsConcept does not match with the relation's
type or the relation is not specified for the given lhsConcept.IUnknown.UNKNOWN
,
ITruthValue.TRUE
,
ITruthValue.FALSE
,
ITruthValue.UNKNOWN
public static IBelief createBelief(IConcept lhsConcept, IRelation relation, IConcept rhsConcept, int truthValue) throws ExternalException
lhsConcept
- the IConcept for which the relation is specifiedrelation
- the IRelation defined for the conceptrhsConcept
- the IConcept to be related to the lhsConcepttruthValue
- the truth value of the relationship (TRUE, FALSE, UNKNOWN)
ExternalException
- if the rhsConcept does not match with the relation's
type or the relation is not specified for the given lhsConcept.ITruthValue.TRUE
,
ITruthValue.FALSE
,
ITruthValue.UNKNOWN
public static IBelief[] createBeliefs(IConcept concept, IAttribute attribute, int relop, java.util.Map collection) throws ExternalException
concept
- the IConcept for which an attribute value is specifiedattribute
- the collection type IAttribute defined for the concept to which to assign the valuesrelop
- the relational operator, one of IRelationalOperator.EQUALS or
IRelationalOperator.NOT_EQUALS.collection
- the index/value pairs to assign to the attribute
ExternalException
- if the attribute is not specified for the given concept,
if the attribute is not of a collection type, if a collection index is
invalid, if the attribute is the location attribute, if an invalid relational operator
is specified or if an invalid value is specified.IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
,
IUnknown.UNKNOWN
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |