|
||||||||||
| 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.ConditionCtx
gov.nasa.arc.brahms.common.rt.DetectableCtx
public class DetectableCtx
The DetectableCtx defines the context for a fired detectable defining the detectable that was fired, in what frame or composite activity the detectable was fired, the fact or belief detected and the belief created by the detectable.
| 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 | |
|---|---|
DetectableCtx(Detectable detectable)
Constructor, creates a new detectable context for the specified detectable. |
|
| Method Summary | |
|---|---|
void |
addDetectableAction(IDetectableActionCtx action)
Adds the specified detectable action to the list of detectable actions executed by this detectable. |
java.util.Enumeration |
getDetectableActions()
Returns a list of all the detectable actions executed by this detectable. |
IBrahmsObjectCtx |
getParent()
Returns the parent context (frame or composite activity) in which this detectable is fired. |
void |
removeDetectableAction(IDetectableActionCtx action)
Removes the specified detectable action from the list of detectable actions executed by this detectable. |
void |
setParent(ICompositeActivityCtx parent)
Sets the parent composite activity context in which this detectable is fired. |
void |
setParent(IFrameCtx parent)
Sets the parent frame context in which this detectable is fired. |
java.lang.String |
toString()
Returns the string representation of the detectable context, returning the id and the detectable 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 DetectableCtx(Detectable detectable)
detectable - the fired detectable for which this context is the context| Method Detail |
|---|
public void setParent(IFrameCtx parent)
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
setParent in interface IDetectableCtxparent - the FrameCtx in which the detectable is fired
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if a null parent is specified
public void setParent(ICompositeActivityCtx parent)
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
setParent in interface IDetectableCtxparent - the CompositeActivityCtx in which the detectable is fired
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if a null parent is specified
public IBrahmsObjectCtx getParent()
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
getParent in interface IDetectableCtxgov.nasa.arc.brahms.common.exceptions.BrahmsException - if no parent is specified
public void addDetectableAction(IDetectableActionCtx action)
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
addDetectableAction in interface IDetectableCtxaction - the IDetectableActionCtx to be added
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if a null action is specified
public void removeDetectableAction(IDetectableActionCtx action)
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
removeDetectableAction in interface IDetectableCtxaction - the IDetectableActionCtx to be removed
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if the specified action is null, or no
no actions are specified for the detectable, or the specified
action is not found in the list of detectable actions.
public java.util.Enumeration getDetectableActions()
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
getDetectableActions in interface IDetectableCtxgov.nasa.arc.brahms.common.exceptions.BrahmsException - if no detectable actions are specified for the
detectable.public 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 | |||||||||