|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nasa.arc.brahms.common.data.BrahmsObject
gov.nasa.arc.brahms.common.rt.Statement
gov.nasa.arc.brahms.common.rt.AttributeStatement
public class AttributeStatement
A AttributeStatement defines a state in the world or for an active instance defining the value for a concept's attribute.
| Field Summary |
|---|
| Fields inherited from interface gov.nasa.arc.brahms.common.IConstants |
|---|
ABORT, ACTIVECLASS, ACTIVECONCEPT, ACTIVEINSTANCE, AGENT, ANONYMOUS, ANYAGENT, AREA, AREADEF, ASSIGNED, ATTRIBUTE, BASEAREADEF, BASECLASS, BASECONCEPTUALCLASS, BASEGROUP, BASELIBRARY, BOOLEAN, BROADCAST, BUILDING, BYTE, CCLOCK, CDATE, CHAR, CITY, CLASS, CLOCK, COLLECTALL, COMMUNICATE, COMPLETE, COMPOSITE, COMPUTER, CONCEPT, CONCEPTUALCLASS, CONCEPTUALCONCEPT, CONCEPTUALOBJECT, CONTINUE, COPY, CREATEAGENT, CREATEAREA, CREATEOBJECT, current, CURRENT, DATAFRAME, DATE, DB, DETECTABLE, DIV, DOUBLE, EMAIL, EMPTY_STRING, END, ENDACTIVITY, ENTAGENT, EQ, EXCEPTION, EXPR, FACE2FACE, FACTFRAME, FALSE, FAX, FLOAT, FOREACH, FORONE, G2, GE, GEOGRAPHYCONCEPT, GESTURE, GET, GROUP, GT, IMPASSE, INT, INVALID, JAVA, JAVA_TYPE, KNOWN_MODIFIER, KNOWNVAL_MODIFIER, LE, LOCAL, LONG, LT, MAP, MINUS, MOD, MOVE, MULT, NE, NEW, NONE, NOT_MODIFIER, NOWORK, O, OA, OBJECT, ONTOLOGY, PAGER, PARAMETER, PATH, PHONE, PLUS, PRIMITIVE, PRIVATE, PROAGENT, PROTECTED, PRSAGENT, PUBLIC, PUT, RECEIVE, RELATION, sACTIVECLASS, sACTIVECONCEPT, sACTIVEINSTANCE, sAGENT, sARCHIVE, sAREA, sAREADEF, sBOOLEAN, sBYTE, sBYTECODEEXT, sCHAR, sCLASS, sCOMPUTER, sCONCEPT, sCONCEPTUALCLASS, sCONCEPTUALCONCEPT, sCONCEPTUALOBJECT, sCOPY, sCURRENT, sDETECTABLE, sDOUBLE, sEMAIL, sEND, SEND, sFACE2FACE, sFAX, sFILEEXT, sFLOAT, sGEOGRAPHYCONCEPT, sGROUP, SHORT, SIMAGENT, sINT, sJAVA_TYPE, sLONG, sMAP, sNEW, sNONE, sNOWORK, sOBJECT, SOURCECODE, sPAGER, sPARAMETER, sPATH, sPHONE, sPRIVATE, sPROJECTEXT, sPROTECTED, sPUBLIC, sSHORT, sSTART, sSTRING, sSYMBOL, START, STRING, sUNKNOWN, sVOID, SYMBOL, TRUE, UDT, UML, UNASSIGNED, UNDEFINED, unknown, UNKNOWN, UNKNOWN_MODIFIER, V, VARIABLE, VOID, WHENEVER, WORKFRAME, WORLD, XML |
| Constructor Summary | |
|---|---|
AttributeStatement()
Constructor, creates a new attribute statement. |
|
AttributeStatement(java.lang.Object lhsObject,
Attribute lhsAttribute,
int lhsCollectionIndex,
int relation,
java.lang.Object rhsValue,
int rhsValueType)
Constructor, creates a new attribute statement with the specified object, attribute, collection index, relation, and value. |
|
AttributeStatement(java.lang.Object lhsObject,
Attribute lhsAttribute,
int relation,
java.lang.Object rhsValue)
Constructor, creates a new attribute statement with the specified object, attribute, relation, and value. |
|
AttributeStatement(java.lang.Object lhsObject,
Attribute lhsAttribute,
java.lang.String lhsCollectionIndex,
int relation,
java.lang.Object rhsValue,
int rhsValueType)
Constructor, creates a new attribute statement with the specified object, attribute, collection index, relation, and value. |
|
| Method Summary | |
|---|---|
Attribute |
getLhsAttribute()
Returns the left hand side attribute. |
java.lang.Object |
getLhsCollectionIndex()
Returns the collection index for the left hand side attribute. |
int |
getRelation()
Returns the relation of the statement. |
void |
setLhsAttribute(Attribute lhsAttribute)
Sets the left hand side attribute of the relation. |
void |
setLhsCollectionIndex(int index)
Sets the collection index for the left hand side attribute. |
void |
setLhsCollectionIndex(java.lang.String key)
Sets the collection index for the left hand side attribute. |
void |
setRelation(int relation)
Sets the relation of the statement. |
java.lang.String |
toString()
Returns a string representation of this relation statement. |
| Methods inherited from class gov.nasa.arc.brahms.common.rt.Statement |
|---|
getLhsObject, getRhsValue, getRhsValueType, setLhsObject, setRhsValue, setRhsValueType |
| Methods inherited from class gov.nasa.arc.brahms.common.data.BrahmsObject |
|---|
delete, export, getFile, getID, getLine, getSerialNumber, isBCC, isDynamic, isLoaded, isResolved, setBCC, setDynamic, setFile, setID, setID, setLine, setLoaded, setResolved, setSerialNumber |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AttributeStatement()
public AttributeStatement(java.lang.Object lhsObject,
Attribute lhsAttribute,
int relation,
java.lang.Object rhsValue)
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
lhsObject - the left hand side ObjectlhsAttribute - the left hand side Attributerelation - the relation between the lhs and rhsrhsValue - the right hand side value
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if a null lhsObject, attribute or value is specified
of if an invalid relation is specified
public AttributeStatement(java.lang.Object lhsObject,
Attribute lhsAttribute,
java.lang.String lhsCollectionIndex,
int relation,
java.lang.Object rhsValue,
int rhsValueType)
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
lhsObject - the left hand side ObjectlhsAttribute - the left hand side AttributelhsCollectionIndex - the collection index/key for the lhs attributerelation - the relation between the lhs and rhsrhsValue - the right hand side valuerhsValueType - the type of the right hand side value
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if a null lhsObject, attribute or value is specified
of if an invalid relation is specifiedIConstants.INT,
IConstants.CHAR,
IConstants.BYTE,
IConstants.SHORT,
IConstants.LONG,
IConstants.FLOAT,
IConstants.DOUBLE,
IConstants.BOOLEAN,
IConstants.STRING,
IConstants.SYMBOL,
IConstants.UDT,
IConstants.JAVA_TYPE,
IConstants.UNKNOWN
public AttributeStatement(java.lang.Object lhsObject,
Attribute lhsAttribute,
int lhsCollectionIndex,
int relation,
java.lang.Object rhsValue,
int rhsValueType)
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
lhsObject - the left hand side ObjectlhsAttribute - the left hand side AttributelhsCollectionIndex - the collection index for the lhs attributerelation - the relation between the lhs and rhsrhsValue - the right hand side valuerhsValueType - the type of the right hand side value
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if a null lhsObject, attribute or value is specified
of if an invalid relation is specifiedIConstants.INT,
IConstants.CHAR,
IConstants.BYTE,
IConstants.SHORT,
IConstants.LONG,
IConstants.FLOAT,
IConstants.DOUBLE,
IConstants.BOOLEAN,
IConstants.STRING,
IConstants.SYMBOL,
IConstants.UDT,
IConstants.JAVA_TYPE,
IConstants.UNKNOWN| Method Detail |
|---|
public void setLhsAttribute(Attribute lhsAttribute)
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
lhsAttribute - the left hand side Attribute
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if a null lhsAttribute is specified
public Attribute getLhsAttribute()
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if no lhs attribute is specifiedpublic void setLhsCollectionIndex(java.lang.String key)
key - the key serving as the index for the collectionpublic void setLhsCollectionIndex(int index)
index - the index for the collectionpublic java.lang.Object getLhsCollectionIndex()
public void setRelation(int relation)
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
relation - the Relation
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if an invalid relation is specifiedIConstants.EQ,
IConstants.NE,
IConstants.LT,
IConstants.LE,
IConstants.GT,
IConstants.GE
public int getRelation()
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if no relation is specifiedIConstants.EQ,
IConstants.NE,
IConstants.LT,
IConstants.LE,
IConstants.GT,
IConstants.GEpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||