|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICompositeActivityCtx
The ICompositeActivityCtx interface is the interface for composite activity contexts. A CompositeActivityCtx maintains the context of a composite activity being or to be executed by an active instance. The context maintains start and end times for an activity, the duration, priority, status, state of the frames that are part of the composite activity and the active detectables of the composite activity.
Method Summary | |
---|---|
void |
addActiveDetectable(IDetectableCtx detectable)
Adds the specified detectable as an active detectable to the list of active detectables. |
void |
addAvailableFrame(IFrameCtx frame)
Adds the specified frame context as an available frame. |
void |
addCompletedFrame(IFrameCtx frame)
Adds the given frame context as a completed frame. |
void |
addImpassedFrame(IWorkframeCtx frame)
Adds the specified frame context as an impassed frame. |
void |
addInterruptedFrame(IWorkframeCtx frame)
Adds the specified frame context as an interrupted frame. |
java.util.ListIterator |
getActiveDetectables()
Returns the list of active detectables. |
java.util.ListIterator |
getAvailableThoughtframes()
Returns a list of all the available thoughtframes. |
java.util.ListIterator |
getAvailableWorkframes()
Returns a list of all the available workframes. |
java.util.Set<java.lang.String> |
getCompletedThoughtframeNames()
Return a list of the fully qualified names for all the thoughtframes for which completed thoughtframe contexts exist. |
java.util.ListIterator |
getCompletedThoughtframes(java.lang.String frameName)
Return a list of all the completed thoughtframe contexts for the thoughtframe with the specified fully qualified name. |
java.util.Set<java.lang.String> |
getCompletedWorkframeNames()
Return a list of the fully qualified names for all the workframes for which completed workframe contexts exist. |
java.util.ListIterator |
getCompletedWorkframes(java.lang.String frameName)
Return a list of all the completed workframe contexts for the workframe with the specified fully qualified name. |
IWorkframeCtx |
getCurrentWork()
Returns the workframe currently active in the activity. |
java.util.ListIterator |
getImpassedFrames()
Returns a list of all the impassed workframes. |
java.util.ListIterator |
getInterruptedFrames()
Returns a list of all the interrupted workframes. |
boolean |
hasAvailableThoughtframes()
Inficates whether there are any available thoughtframes. |
boolean |
hasAvailableWorkframes()
Inficates whether there are any available workframes. |
boolean |
hasCompletedThoughtframes()
Inficates whether there are any completed thoughtframes. |
boolean |
hasCompletedWorkframes()
Inficates whether there are any completed workframes. |
boolean |
hasImpassedFrames()
Inficates whether there are any impassed workframes. |
boolean |
hasInterruptedFrames()
Inficates whether there are any interrupted workframes. |
void |
removeActiveDetectable(IDetectableCtx detectable)
Removes the specified detectable as an active detectable from the list of active detectables. |
void |
removeAvailableFrame(IFrameCtx frame)
Removes the specifies frame as an available frame. |
void |
removeCompletedFrame(IFrameCtx frame)
Removes the given frame context as a completed frame context |
void |
removeImpassedFrame(IWorkframeCtx frame)
Removes the specified frame context as an impassed frame. |
void |
removeInterruptedFrame(IWorkframeCtx frame)
Removes the specified frame context as an interrupted frame. |
void |
setCurrentWork(IWorkframeCtx frame)
Sets the workframe currently active in the activity |
Methods inherited from interface gov.nasa.arc.brahms.common.rt.IActivityCtx |
---|
getCompletionCause, getDisplayText, getParentFrame, getPerformedBy, getPriority, getReferencedBy, getStatus, setCompletionCause, setDisplayText, setParentFrame, setPerformedBy, setReferencedBy, setStatus |
Methods inherited from interface gov.nasa.arc.brahms.common.rt.IBrahmsObjectCtx |
---|
addNote, getContextFor, getEndTime, getID, getNote, getNotes, getStartTime, removeNote, setEndTime, setID, setStartTime |
Method Detail |
---|
void addAvailableFrame(IFrameCtx frame) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
frame
- the available work or thoughtframe
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if frame is nullvoid removeAvailableFrame(IFrameCtx frame) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
frame
- the frame to be removed as an available frame.
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if a null frame is specified, no
available frames are present or the specified frame is
not presentjava.util.ListIterator getAvailableWorkframes() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if there are no available workframesboolean hasAvailableWorkframes()
java.util.ListIterator getAvailableThoughtframes() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if there are no available thoughtframesboolean hasAvailableThoughtframes()
void addInterruptedFrame(IWorkframeCtx frame) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
frame
- the interrupted workframe to be added
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if frame is nullvoid removeInterruptedFrame(IWorkframeCtx frame) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
frame
- the interrupted workframe to be removed
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if frame is null, no interrupted frames
are available, or the frame is not present as an interrupted framejava.util.ListIterator getInterruptedFrames() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if there are no interrupted workframesboolean hasInterruptedFrames()
void addImpassedFrame(IWorkframeCtx frame) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
frame
- the impassed workframe to be added
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if frame is nullvoid removeImpassedFrame(IWorkframeCtx frame) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
frame
- the impassed workframe to be removed
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if frame is null, no impassed frames
are available, or the frame is not present as an impassed framejava.util.ListIterator getImpassedFrames() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if there are no impassed workframesboolean hasImpassedFrames()
void addCompletedFrame(IFrameCtx frame) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
frame
- the IFrameCtx to be added as a completed frame
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if frame context is null or frame context
references no framevoid removeCompletedFrame(IFrameCtx frame) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
frame
- the frame context to be removed
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if frame is null, no completed frames exist for
the frame for which the specified frame is a context or if the
specified frame context is not found or if the specified frame
is not referencing a workframe or thoughtframejava.util.ListIterator getCompletedWorkframes(java.lang.String frameName) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
frameName
- the fully qualified name for the workframe
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an invalid name is specified or no completed frames existjava.util.Set<java.lang.String> getCompletedWorkframeNames() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no completed frames existboolean hasCompletedWorkframes()
java.util.ListIterator getCompletedThoughtframes(java.lang.String frameName) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
frameName
- the fully qualified name for the thoughtframe
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an invalid name is specified or no completed frames existjava.util.Set<java.lang.String> getCompletedThoughtframeNames() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no completed frames existboolean hasCompletedThoughtframes()
void setCurrentWork(IWorkframeCtx frame)
frame
- the current work (IWorkframeCtx) of the activityIWorkframeCtx getCurrentWork()
void addActiveDetectable(IDetectableCtx detectable) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
detectable
- the IDetectableCtx for the detectable active in the activity
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if the detectable is nullvoid removeActiveDetectable(IDetectableCtx detectable) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
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 foundjava.util.ListIterator getActiveDetectables() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
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 |