|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.nasa.arc.brahms.common.rt.BrahmsObjectCtx gov.nasa.arc.brahms.common.rt.ParameterCtx
public class ParameterCtx
The ParameterCtx represents a value assigned to a an attribute of an activity. The parameter can be a value that was directly assigned to an attribute or a value assigned to an attribute through a parameter defined for the activity. The value assigned through a parameter can be a variable.
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 |
Fields inherited from interface gov.nasa.arc.brahms.common.rt.IRuntimeConstants |
---|
ABORTED, ACTIVE, ACTIVITY, AVAILABLE, COMPLETED, CONSEQUENCE, DETECTABLE, ENDED, ENGINE, EXTERNAL_AGENT, FROM, IMPASSED, INITIAL, INTERRUPTED, JAVA_PROPERTY, sABORTED, sACTIVE, sAVAILABLE, sCOMPLETED, sENDED, sIMPASSED, sINTERRUPTED, sUNAVAILABLE, TO, TRANSFER, UNAVAILABLE |
Constructor Summary | |
---|---|
ParameterCtx(ActivityCtx act)
Constructor, creates a new ParameterCtx for the specified activity. |
|
ParameterCtx(ActivityCtx act,
java.lang.String name)
Constructor, creates a new ParameterCtx for the specified activity. |
Method Summary | |
---|---|
ActivityCtx |
getActivity()
Returns the activity in which this parameter context is used |
boolean |
getBooleanValue()
Returns the boolean value |
byte |
getByteValue()
Returns the byte value |
char |
getCharValue()
Returns the char value |
Concept |
getConceptValue()
Returns the concept value, is a concept and not a ConceptCtx since the value of a parameter can potentially be a class. |
double |
getDoubleValue()
Returns the double value |
float |
getFloatValue()
Returns the float value |
int |
getIntValue()
Returns the integer value |
java.lang.Object |
getJavaValue()
Returns the Java Object value |
long |
getLongValue()
Returns the long value |
java.lang.String |
getName()
Returns the name of the parameter used in the activity. |
short |
getShortValue()
Returns the short value |
java.lang.String |
getStringValue()
Returns the string value |
java.lang.String |
getSymbolValue()
Returns the symbol value |
int |
getType()
Returns the type of the value |
Unknown |
getUnknownValue()
Returns the unknown value. |
VariableCtx |
getVariable()
Returns the variable assigning the value to this parameter. |
void |
setActivity(ActivityCtx act)
Sets the activity in which this parameter context is used |
void |
setName(java.lang.String name)
Sets the name of the parameter used in the activity. |
void |
setType(int type)
Sets the type of the value |
void |
setValue(boolean value)
Sets the boolean value |
void |
setValue(byte value)
Sets the byte value |
void |
setValue(char value)
Sets the character value |
void |
setValue(Concept value)
Sets the concept value, must be set as a concept and not as a ConceptCtx since the value of a parameter can potentially be a class. |
void |
setValue(double value)
Sets the double value |
void |
setValue(float value)
Sets the float value |
void |
setValue(int value)
Sets the integer value |
void |
setValue(long value)
Sets the long value |
void |
setValue(java.lang.Object value)
Sets the Java Object value. |
void |
setValue(short value)
Sets the short value |
void |
setValue(java.lang.String value,
boolean symbol)
Sets the string or symbol value |
void |
setValue(Unknown value)
Sets the value to unknown. |
void |
setVariable(VariableCtx var)
Sets the variable assigning the value to this parameter. |
Methods inherited from class gov.nasa.arc.brahms.common.rt.BrahmsObjectCtx |
---|
addNote, getContextFor, getEndTime, getID, getNote, getNotes, getStartTime, removeNote, setContextFor, setEndTime, setID, setStartTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParameterCtx(ActivityCtx act) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
act
- the ActivityCtx in which the paremeter is used.
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if the activity is nullpublic ParameterCtx(ActivityCtx act, java.lang.String name) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
act
- the ActivityCtx in which the paremeter is used.name
- the name of the parameter
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if the activity and/or name are nullMethod Detail |
---|
public void setActivity(ActivityCtx act) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
act
- the ActivityCtx in which this parameter context is used
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if a null activity is specifiedpublic ActivityCtx getActivity() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no activity is specifiedpublic void setName(java.lang.String name) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
name
- the name of the parameter assigning the value, or "" if no parameter
assigned the value
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if a null name is specifiedpublic java.lang.String getName() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no name (null) is specifiedpublic void setType(int type) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
type
- the value type
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an invalid type 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 int getType() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no type 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 void setValue(int value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the integer value
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occurspublic void setValue(char value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the character value
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occurspublic void setValue(byte value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the byte value
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occurspublic void setValue(short value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the short value
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occurspublic void setValue(long value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the long value
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occurspublic void setValue(float value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the float value
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occurspublic void setValue(double value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the double value
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occurspublic void setValue(boolean value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the boolean value
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occurspublic void setValue(java.lang.String value, boolean symbol) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the string or symbol valuesymbol
- is value a symbol (true) or a string (false)
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occurspublic void setValue(Concept value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the concept value (Concept)
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occurspublic void setValue(java.lang.Object value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the Java Object
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occurspublic void setValue(Unknown value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
value
- the unknown value (Unknown)
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occurspublic int getIntValue() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if this value does not contain an integerpublic char getCharValue() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if this value does not contain a characterpublic byte getByteValue() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if this value does not contain a bytepublic short getShortValue() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if this value does not contain a shortpublic long getLongValue() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if this value does not contain a longpublic float getFloatValue() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if this value does not contain a floatpublic double getDoubleValue() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if this value does not contain a doublepublic boolean getBooleanValue() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if this value does not contain a booleanpublic java.lang.String getSymbolValue() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if this value does not contain a symbolpublic java.lang.String getStringValue() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if this value does not contain a stringpublic Concept getConceptValue() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if this value does not contain a conceptpublic java.lang.Object getJavaValue() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if this value does not contain a Java Objectpublic Unknown getUnknownValue() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if this value is not 'unknown'public void setVariable(VariableCtx var)
var
- the VariableCtx assigning the valuepublic VariableCtx getVariable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |