|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.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 null
public 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 null| Method 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 specified
public ActivityCtx getActivity()
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if no activity is specified
public 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 specified
public java.lang.String getName()
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if no name (null) is specified
public 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 occurs
public 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 occurs
public 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 occurs
public 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 occurs
public 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 occurs
public 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 occurs
public 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 occurs
public 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 occurs
public 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 occurs
public 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 occurs
public 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 occurs
public 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 occurs
public int getIntValue()
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if this value does not contain an integer
public char getCharValue()
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if this value does not contain a character
public byte getByteValue()
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if this value does not contain a byte
public short getShortValue()
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if this value does not contain a short
public long getLongValue()
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if this value does not contain a long
public float getFloatValue()
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if this value does not contain a float
public double getDoubleValue()
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if this value does not contain a double
public boolean getBooleanValue()
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if this value does not contain a boolean
public 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 symbol
public 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 string
public Concept getConceptValue()
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if this value does not contain a concept
public 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 Object
public 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 | |||||||||