|
||||||||||
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.BFrame
public abstract class BFrame
class BFrame
Field Summary | |
---|---|
static java.lang.String |
BODY_PROPERTY
Body property for use with list change events |
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 | |
---|---|
BFrame()
|
|
BFrame(java.lang.String name)
|
|
BFrame(java.lang.String file,
int line)
|
|
BFrame(java.lang.String name,
java.lang.String file,
int line)
|
Method Summary | |
---|---|
protected boolean |
addBodyElement(ModelElement elm)
|
boolean |
addConsequence(Consequence con)
|
boolean |
addPrecondition(Precondition pre)
|
boolean |
addVariable(Variable var)
|
abstract IFrameCtx |
createContext()
Creates a new context for this frame for use in a virtual machine. |
void |
delete()
Deletes this element from the model and removes all references to this element in other model elements. |
java.util.Enumeration |
getBody()
|
ModelElement |
getBodyElement(int index)
Returns the model element located at the specified position in the body. |
java.lang.String |
getFullyQualifiedName()
Returns the fully qualified name of the frame. |
int |
getNumberOfBodyElements()
Returns the number of body elements in the frame. |
int |
getNumberOfPreconditions()
Returns the number of preconditions in this frame. |
java.util.Enumeration |
getPreconditions()
Returns an enumeration of the frame's preconditions. |
int |
getPriority()
|
java.lang.String |
getQualifiedName()
Returns the qualified name of the frame. |
Variable |
getVariable(java.lang.String name)
|
java.util.Enumeration |
getVariables()
|
boolean |
hasBody()
|
boolean |
hasPreconditions()
|
boolean |
hasVariables()
|
boolean |
isRepeat()
|
protected boolean |
removeBodyElement(ModelElement elm)
|
boolean |
removeConsequence(Consequence con)
|
boolean |
removePrecondition(Precondition pre)
|
boolean |
removeVariable(java.lang.String name)
|
void |
setOwner(CompositeActivity act)
|
void |
setOwner(Concept concept)
|
void |
setPriority(int p)
|
void |
setRepeat(boolean value)
|
Methods inherited from class gov.nasa.arc.brahms.common.data.NamedModelElement |
---|
getDisplayText, 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, setID, setLine, setLoaded, setResolved, setSerialNumber |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BODY_PROPERTY
Constructor Detail |
---|
public BFrame()
public BFrame(java.lang.String name)
public BFrame(java.lang.String file, int line)
public BFrame(java.lang.String name, java.lang.String file, int line)
Method Detail |
---|
public java.lang.String getFullyQualifiedName()
getFullyQualifiedName
in class NamedModelElement
public java.lang.String getQualifiedName()
public void setRepeat(boolean value)
public boolean isRepeat()
public void setPriority(int p)
public int getPriority()
public boolean addVariable(Variable var)
public boolean removeVariable(java.lang.String name)
public Variable getVariable(java.lang.String name) throws java.util.NoSuchElementException
java.util.NoSuchElementException
public boolean hasVariables()
public java.util.Enumeration getVariables()
public boolean addPrecondition(Precondition pre)
public boolean removePrecondition(Precondition pre)
public boolean hasPreconditions()
public java.util.Enumeration getPreconditions()
public int getNumberOfPreconditions()
public boolean addConsequence(Consequence con)
public boolean removeConsequence(Consequence con)
protected boolean addBodyElement(ModelElement elm)
protected boolean removeBodyElement(ModelElement elm)
public ModelElement getBodyElement(int index) throws java.util.NoSuchElementException
index
- the index of the requested model element (0 based)
java.util.NoSuchElementException
- if the body does not have any elements
or the index refers to an element that does not exist. The index
is out of bounds.public int getNumberOfBodyElements()
public boolean hasBody()
public java.util.Enumeration getBody()
public void setOwner(Concept concept)
public void setOwner(CompositeActivity act)
public void delete()
delete
in class BrahmsObject
public abstract IFrameCtx createContext()
Note: This method always returns a new instance and does not verify whether one is already created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |