|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.nasa.arc.brahms.common.data.BrahmsObject gov.nasa.arc.brahms.common.data.Operand
public class Operand
class Operand
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 | |
---|---|
Operand()
|
|
Operand(java.lang.Boolean b)
|
|
Operand(java.lang.Byte bt)
|
|
Operand(java.lang.Character c)
|
|
Operand(Concept concept)
|
|
Operand(Concept concept,
Attribute attribute)
|
|
Operand(Current current)
|
|
Operand(Current current,
Attribute attribute)
|
|
Operand(java.lang.Double d)
|
|
Operand(java.lang.Float f)
|
|
Operand(IExpression expr)
|
|
Operand(java.lang.Integer i)
|
|
Operand(java.lang.Long l)
|
|
Operand(java.lang.Object value)
|
|
Operand(java.lang.Object object,
Attribute property)
Constructor, creates a new operand referencing the specified Java object and property. |
|
Operand(Parameter parm)
|
|
Operand(Parameter parm,
Attribute attribute)
|
|
Operand(java.lang.Short st)
|
|
Operand(java.lang.String s)
|
|
Operand(java.lang.String s,
boolean symbol)
|
|
Operand(Variable var)
|
|
Operand(Variable var,
Attribute attribute)
|
Method Summary | |
---|---|
Attribute |
getAttribute()
|
java.lang.Object |
getCollectionIndex()
Returns the collection index. |
int |
getCollectionIndexType()
Returns the type of value for the collection index. |
IExpression |
getExpression()
|
NamedModelElement |
getObject()
|
int |
getObjectType()
|
int |
getOperandType()
|
void |
getParameters(java.util.LinkedList ll)
Returns a list of all the parameters used in the operand. |
java.lang.Object |
getValue()
|
int |
getValueType()
|
int |
getValueTypeIndicator()
Returns the type of value this operand represents, if the operand is a value it uses the value type of the value, if it is a concept or current it indicates UDT as the value type, if it is unknown it indicates unknown if the value is a parameter or variable it will return the type for that parameter or variable. |
void |
getVariables(java.util.LinkedList ll)
Returns a list of all the variables used in the operand. |
boolean |
isAnonymous()
Returns whether the operand is an anonymous variable |
boolean |
isUnknown()
Returns whether the operand value is 'unknown'. |
void |
setAttribute(Attribute att)
|
void |
setCollectionIndex(java.lang.Integer index)
Sets the collection index specified by an Integer. |
void |
setCollectionIndex(Parameter par)
Sets the collection index specified by a parameter. |
void |
setCollectionIndex(java.lang.String index)
Sets the collection index specified by a String. |
void |
setCollectionIndex(Variable var)
Sets the collection index specified by a variable. |
void |
setExpression(IExpression expr)
|
protected void |
setID()
Sets the unique identifier. |
void |
setObject(Concept concept)
|
void |
setObject(Current current)
|
void |
setObject(Parameter parm)
|
void |
setObject(Variable var)
|
void |
setObjectType(int type)
|
void |
setOperandType(int type)
|
void |
setUnknown()
Sets the value of the operand to unknown, setting the types to UnknownType. |
void |
setValue(java.lang.Boolean b)
|
void |
setValue(java.lang.Byte bt)
|
void |
setValue(java.lang.Character c)
|
void |
setValue(java.lang.Double d)
|
void |
setValue(java.lang.Float f)
|
void |
setValue(java.lang.Integer i)
|
void |
setValue(java.lang.Long l)
|
void |
setValue(java.lang.Object value)
|
void |
setValue(java.lang.Short st)
|
void |
setValue(java.lang.String s)
|
void |
setValue(java.lang.String s,
boolean symbol)
|
void |
setValueType(int type)
|
java.lang.String |
toString()
|
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, setLine, setLoaded, setResolved, setSerialNumber |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gov.nasa.arc.brahms.common.data.IAssignmentLhs |
---|
export |
Constructor Detail |
---|
public Operand()
public Operand(Concept concept)
public Operand(Current current)
public Operand(Variable var)
public Operand(Parameter parm)
public Operand(Concept concept, Attribute attribute)
public Operand(Current current, Attribute attribute)
public Operand(Variable var, Attribute attribute)
public Operand(Parameter parm, Attribute attribute)
public Operand(java.lang.Integer i)
public Operand(java.lang.Character c)
public Operand(java.lang.Byte bt)
public Operand(java.lang.Short st)
public Operand(java.lang.Long l)
public Operand(java.lang.Float f)
public Operand(java.lang.Double d)
public Operand(java.lang.Boolean b)
public Operand(java.lang.String s)
public Operand(java.lang.String s, boolean symbol)
public Operand(java.lang.Object value)
public Operand(java.lang.Object object, Attribute property)
object
- the Java object referenced by the operandattribute
- an attribute representing a property of the Java objectpublic Operand(IExpression expr)
Method Detail |
---|
protected void setID()
setID
in class BrahmsObject
public void setUnknown()
public boolean isUnknown()
public boolean isAnonymous()
public void setOperandType(int type)
public int getOperandType()
public void setObject(Concept concept)
public void setObject(Current current)
public void setObject(Variable var)
public void setObject(Parameter parm)
public NamedModelElement getObject()
public void setObjectType(int type)
public int getObjectType()
public void setAttribute(Attribute att)
public Attribute getAttribute()
public void setCollectionIndex(Variable var)
var
- the Variable with the collection indexpublic void setCollectionIndex(Parameter par)
par
- the Parameter with the collection indexpublic void setCollectionIndex(java.lang.String index)
index
- the collection indexpublic void setCollectionIndex(java.lang.Integer index)
index
- the collection indexpublic java.lang.Object getCollectionIndex()
public int getCollectionIndexType()
public void setValue(java.lang.Integer i)
public void setValue(java.lang.Character c)
public void setValue(java.lang.Byte bt)
public void setValue(java.lang.Short st)
public void setValue(java.lang.Long l)
public void setValue(java.lang.Float f)
public void setValue(java.lang.Double d)
public void setValue(java.lang.Boolean b)
public void setValue(java.lang.String s)
public void setValue(java.lang.String s, boolean symbol)
public void setValue(java.lang.Object value)
public java.lang.Object getValue()
public void setValueType(int type)
public int getValueType()
public void setExpression(IExpression expr)
public IExpression getExpression()
public int getValueTypeIndicator()
public void getVariables(java.util.LinkedList ll)
ll
- the LinkedList to which to add the variables used in the operand.public void getParameters(java.util.LinkedList ll)
ll
- the LinkedList to which to add the parameters used in the operand.public 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 |