|
||||||||||
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.FrameCtx gov.nasa.arc.brahms.common.rt.WorkframeCtx
public class WorkframeCtx
The WorkframeCtx maintains the state for a workframe. In addition to keeping track of the state information as defined in the FrameCtx the workframe context also tracks the activity currently executed in the frame, the activities that have completed and the detectable contexts defining the detectables that were executed in the context of the workframe.
FrameCtx
,
Serialized FormField 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 | |
---|---|
WorkframeCtx(Workframe frame)
Constructor, creates a new context for the specified workframe. |
Method Summary | |
---|---|
void |
addActiveDetectable(IDetectableCtx detectable)
Adds the specified detectable as an active detectable to the list of active detectables. |
void |
addCompletedActivity(ActivityCtx act)
Adds the specified activity as a completed activity to the list of completed activities. |
java.util.ListIterator |
getActiveDetectables()
Returns the list of active detectables. |
java.util.ListIterator |
getCompletedActivities()
Returns the list of completed activities. |
ActivityCtx |
getCurrentActivity()
Returns the activity currently active in the workframe |
void |
removeActiveDetectable(IDetectableCtx detectable)
Removes the specified detectable as an active detectable from the list of active detectables. |
void |
removeCompletedActivity(ActivityCtx act)
Removes the specified activity as a completed activity from the list of completed activities. |
void |
setCurrentActivity(ActivityCtx act)
Sets the activity currently active in the workframe |
Methods inherited from class gov.nasa.arc.brahms.common.rt.FrameCtx |
---|
addBinding, addFiredConsequence, getBinding, getBindings, getFiredConsequences, getPerformedBy, getPerformedIn, getPriority, getState, getStatus, getTimeAvailable, removeBinding, removeFiredConsequence, setPerformedBy, setPerformedIn, setPriority, setState, setState, setStatus, setTimeAvailable, toString |
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.IFrameCtx |
---|
addBinding, addFiredConsequence, getBinding, getBindings, getFiredConsequences, getPerformedBy, getPerformedIn, getPriority, getState, getStatus, getTimeAvailable, removeBinding, removeFiredConsequence, setPerformedBy, setPerformedIn, setPriority, setState, setState, setStatus, setTimeAvailable |
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 WorkframeCtx(Workframe frame)
frame
- the Workframe for which this frame context is a contextMethod Detail |
---|
public void setCurrentActivity(ActivityCtx act)
setCurrentActivity
in interface IWorkframeCtx
act
- the current activity (ActivityCtx)public ActivityCtx getCurrentActivity()
getCurrentActivity
in interface IWorkframeCtx
public void addCompletedActivity(ActivityCtx act) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
addCompletedActivity
in interface IWorkframeCtx
act
- the ActivityCtx for the activity completed in the workframe
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if the activity is nullpublic void removeCompletedActivity(ActivityCtx act) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
removeCompletedActivity
in interface IWorkframeCtx
act
- the ActivityCtx for the activity to be removed as a completed activity
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if the activity is null or no completed activities exist
or the specified activity is not foundpublic java.util.ListIterator getCompletedActivities() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
getCompletedActivities
in interface IWorkframeCtx
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no completed activities existpublic void addActiveDetectable(IDetectableCtx detectable) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
addActiveDetectable
in interface IWorkframeCtx
detectable
- the IDetectableCtx for the detectable active in the workframe
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if the detectable is nullpublic void removeActiveDetectable(IDetectableCtx detectable) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
removeActiveDetectable
in interface IWorkframeCtx
detectable
- the IDetectableCtx for the detectable to be removed as an active detectable
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if the detectable is null or no active detectables exist
or the specified detectable is not foundpublic java.util.ListIterator getActiveDetectables() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
getActiveDetectables
in interface IWorkframeCtx
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no active detectables exist
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |