|
||||||||||
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.ModelElement gov.nasa.arc.brahms.common.data.NamedModelElement gov.nasa.arc.brahms.common.data.ActivityRef
public class ActivityRef
An ActivityRef is a reference to an activity made in a workframe. When a workframe is executing its actions and finds an activity reference it will execute the activity referenced by the reference. It will pass the referenced activity the parameter values specified for the reference (if any). The use of activity references allows for the re-use of activities in multiple workframes.
Field Summary |
---|
Fields inherited from class gov.nasa.arc.brahms.common.data.NamedModelElement |
---|
NAME_PROPERTY |
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 | |
---|---|
ActivityRef()
Constructor, creates a new activity reference with no reference to an activity. |
|
ActivityRef(java.lang.String name)
Constructor, creates a new activity reference with the specified name. |
|
ActivityRef(java.lang.String file,
int line)
Constructor, creates a new activity reference specified in the given file at the given line number. |
|
ActivityRef(java.lang.String name,
java.lang.String file,
int line)
Constructor, creates a new activity reference with the specified name and specified in the given file at the given line number. |
Method Summary | |
---|---|
boolean |
addArgument(ParameterValue p)
Adds the specified parameter value to the list of parameter values specified for this activity reference. |
IActivityCtx |
createContext()
Deprecated. use createContext(Activity), you can no longer create a context for an activity reference due to the ability to override activities. |
IActivityCtx |
createContext(Activity activity)
Creates a new context for this activity reference, actually creating a context for the specified activity referenced by this activity reference. |
void |
delete()
Deletes this element from the model and removes all references to this element in other model elements. |
java.lang.String |
getActivityDescriptor()
Returns the activity descriptor for the activity being referenced. |
ParameterValue |
getArgument(int index)
Returns the ParameterValue at the specified zero-based index in the argument list. |
java.util.Enumeration |
getArguments()
Returns a list of all the parameter values specified for this activity reference. |
boolean |
hasArguments()
Returns whether this activity reference has any parameter values specified for the referenced activity. |
boolean |
removeArgument(ParameterValue p)
Removes the specified parameter value from the list of parameter values specified for this activity reference. |
void |
setActivityDescriptor(java.lang.String descriptor)
Sets the activity descriptor for the activity being referenced. |
protected void |
setID()
Sets the unique identifier. |
void |
setOwner(BFrame frm)
Sets the 'owner' of this activity reference. |
Methods inherited from class gov.nasa.arc.brahms.common.data.NamedModelElement |
---|
getDisplayText, getFullyQualifiedName, getName, getOwner, setDisplayText, setFullyQualifiedName, setName, setOwner, toString |
Methods inherited from class gov.nasa.arc.brahms.common.data.BrahmsObject |
---|
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 |
Constructor Detail |
---|
public ActivityRef()
public ActivityRef(java.lang.String name)
name
- the name of the activity referencepublic ActivityRef(java.lang.String file, int line)
file
- the file in which the activity reference is specifiedline
- the line number in the file at which the activity reference
is specifiedpublic ActivityRef(java.lang.String name, java.lang.String file, int line)
name
- the name of the activity referencefile
- the file in which the activity reference is specifiedline
- the line number in the file at which the activity reference
is specifiedMethod Detail |
---|
protected void setID()
setID
in class BrahmsObject
public void setActivityDescriptor(java.lang.String descriptor)
descriptor
- the activity descriptorpublic java.lang.String getActivityDescriptor()
public boolean addArgument(ParameterValue p)
p
- the ParameterValue to be added
ParameterValue
public boolean removeArgument(ParameterValue p)
p
- the ParameterValue to be removed
ParameterValue
public ParameterValue getArgument(int index)
index
- the index of the requested ParameterValue
public boolean hasArguments()
public java.util.Enumeration getArguments()
public void setOwner(BFrame frm)
frm
- the BFrame in which the activity reference is specifiedpublic void delete()
delete
in class BrahmsObject
public IActivityCtx createContext()
Note: This method always returns a new instance and does not verify whether one is already created.
public IActivityCtx createContext(Activity activity)
Note: This method always returns a new instance and does not verify whether one is already created.
activity
- the Activity being referenced by this activity reference
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |