|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPrimitiveActivityCtx
The IPrimitiveActivityCtx is the interface for primitive activity contexts. A PrimitiveActivityCtx maintains the context of a primitive activity being or to be executed by an active instance. The context maintains the start and end times for an activity, the duration, priority, status, randomness, duration and resources.
Method Summary | |
---|---|
void |
addResource(ParameterCtx resource)
Adds the specified resource as a resource for this activity. |
long |
getDuration()
Returns the calculated duration of the activity used by the VM |
long |
getElapsedTime()
Returns the elapsed time when the activity has been active |
ParameterCtx |
getMaxDuration()
Returns the maximum duration of the activity. |
ParameterCtx |
getMinDuration()
returns the minimum duration of the activity. |
ParameterCtx |
getRandom()
Returns whether the duration of the activity is random or not. |
int |
getResourceCount()
Return the number of resources associated with the activity. |
java.util.Enumeration |
getResources()
Returns a list of all the resources (ParameterCtx). |
void |
removeResource(ParameterCtx resource)
Removes the specified resource as a resource for this activity. |
void |
setElapsedTime(long elapsedTime)
Specifies the elapsed time when the activity has been active |
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 |
---|
ParameterCtx getRandom() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no random indicator is specifiedParameterCtx getMinDuration() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no minimum duration is specifiedParameterCtx getMaxDuration() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no maximum duration is specifiedlong getDuration()
void setElapsedTime(long elapsedTime)
elapsedTime
- the activities elapsed timelong getElapsedTime()
void addResource(ParameterCtx resource) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
resource
- the resource (ParameterCtx) to be added
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if resource is nullvoid removeResource(ParameterCtx resource) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
resource
- the resource (ParameterCtx) to be removed
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if resource is null, no resources
are available, or the resource is not foundjava.util.Enumeration getResources() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if there are no resourcesint getResourceCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |