|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IActivityCtx
The IActivityCtx is the interface for activity contexts. An ActivityCtx maintains the context of an activity being or to be executed by an active instance. The context maintains the start and end times for an activity, the duration, priority, and status.
Method Summary | |
---|---|
DetectableCtx |
getCompletionCause()
Returns the cause of the activities completion if not normal completion, throws an exception is no cause is set. |
ParameterCtx |
getDisplayText()
Returns the activities display text. |
IWorkframeCtx |
getParentFrame()
Returns the frame context in which this activity is executed, serving as the parent of the activity. |
IActiveInstanceCtx |
getPerformedBy()
Returns the active instance performing the activity. |
ParameterCtx |
getPriority()
Returns the activities priority. |
ActivityRef |
getReferencedBy()
Returns the activity reference referencing this activity and causing the creation of this context. |
int |
getStatus()
Returns the activities current status. |
void |
setCompletionCause(DetectableCtx detectable)
Sets the cause of the activities completion if not normal completion, throws an exception is no cause is set. |
void |
setDisplayText(ParameterCtx p)
Sets the activities display text. |
void |
setParentFrame(IWorkframeCtx parent)
Sets the frame context in which this activity is executed, serving as the parent of the activity. |
void |
setPerformedBy(IActiveInstanceCtx ai)
Sets the active instance performing the activity. |
void |
setReferencedBy(ActivityRef referencedBy)
Sets the activity reference referencing this activity and causing the creation of this context. |
void |
setStatus(int status)
Sets the activities current status. |
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 setReferencedBy(ActivityRef referencedBy)
referencedBy
- the ActivityRef referencing this activityActivityRef getReferencedBy()
void setParentFrame(IWorkframeCtx parent) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
parent
- the IWorkframeCtx in which the activity is executed
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- in case of an internal errorIWorkframeCtx getParentFrame() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- in case of an internal errorvoid setPerformedBy(IActiveInstanceCtx ai) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
ai
- the active instance performing the activity.
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if a null active instance is specifiedIActiveInstanceCtx getPerformedBy() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no active instance is specifiedvoid setDisplayText(ParameterCtx p) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
p
- the ParameterCtx defining the display text of the activity
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if a null display text is definedParameterCtx getDisplayText() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no display text is definedParameterCtx getPriority() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no priority is definedvoid setStatus(int status) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
status
- the status of the activity
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if status is an invalid statusIRuntimeConstants
int getStatus() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if activity has no status or invalid statusIRuntimeConstants
void setCompletionCause(DetectableCtx detectable) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
detectable
- the DetectableCtx referencing the detectable causing the completion
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if detectable is nullDetectableCtx getCompletionCause() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no cause is set for the activity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |