|
||||||||||
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.DeleteCtx
public class DeleteCtx
The DeleteCtx is the context for an executed delete operation. It defines the delete operation that was executed, what frame executed the operation and defines what element(s) was/were marked for deletion.
Field Summary |
---|
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 | |
---|---|
DeleteCtx(Delete delete)
Constructor, creates a new delete context for the specified delete operation. |
Method Summary | |
---|---|
void |
addDeletedElement(java.lang.Object elm)
Adds the specified element (agent, object, conceptual object, or monitored Java object) as an element marked for deletion. |
java.util.List<java.lang.Object> |
getDeletedElements()
Returns a list of all the elements deleted by this delete operation. |
IFrameCtx |
getParent()
Returns the parent frame context in which this delete operation was executed. |
IVariableCtx |
getUsedVariable()
Returns the variable used by this delete operation. |
boolean |
hasDeletedElements()
Indicates whether the context has any deleted elements in its list. |
void |
removeDeletedElement(java.lang.Object elm)
Removes the specified element (agent, object, conceptual object, or monitored Java object) as an element marked for deletion. |
void |
setParent(IFrameCtx parent)
Sets the parent frame context in which this delete operation was executed. |
void |
setUsedVariable(IVariableCtx var)
Sets the specified variable as a variable used by this delete operation. |
java.lang.String |
toString()
Returns the string representation of the delete context, returning the id and the delete itself. |
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, wait, wait, wait |
Methods inherited from interface gov.nasa.arc.brahms.common.rt.IBrahmsObjectCtx |
---|
addNote, getContextFor, getEndTime, getID, getNote, getNotes, getStartTime, removeNote, setEndTime, setID, setStartTime |
Constructor Detail |
---|
public DeleteCtx(Delete delete)
delete
- the exeuted delete operation for which this context is the contextMethod Detail |
---|
public void setParent(IFrameCtx parent) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
setParent
in interface IDeleteCtx
parent
- the IFrameCtx
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if a null parent is specifiedpublic IFrameCtx getParent() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
getParent
in interface IDeleteCtx
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no parent is specifiedpublic void addDeletedElement(java.lang.Object elm) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
addDeletedElement
in interface IDeleteCtx
elm
- the element to be added
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if elm is nullpublic void removeDeletedElement(java.lang.Object elm) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
removeDeletedElement
in interface IDeleteCtx
elm
- the element to be removed
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if elm is null, no elements
are present, or the element is not foundpublic java.util.List<java.lang.Object> getDeletedElements() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
getDeletedElements
in interface IDeleteCtx
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if there are no elementspublic boolean hasDeletedElements()
hasDeletedElements
in interface IDeleteCtx
public void setUsedVariable(IVariableCtx var) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
setUsedVariable
in interface IDeleteCtx
var
- the variable (IVariableCtx)
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if var is nullpublic IVariableCtx getUsedVariable() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
getUsedVariable
in interface IDeleteCtx
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no variable was usedpublic 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 |