|
||||||||||
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.ActivityCtx gov.nasa.arc.brahms.common.rt.PrimitiveActivityCtx gov.nasa.arc.brahms.common.rt.ContainmentActivityCtx
public abstract class ContainmentActivityCtx
The ContainmentActivityCtx is the generic class for the GetActivityCtx and PutActivityCtx.
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 | |
---|---|
ContainmentActivityCtx(ContainmentActivity act)
Constructor, creates a new context for the specified ContainmentActivity. |
Method Summary | |
---|---|
void |
addItem(ParameterCtx item)
Adds the specified item as an item picked up or dropped off through this activity. |
int |
getItemCount()
Return the number of items associated with the activity. |
java.util.Enumeration |
getItems()
Returns a list of all the items (ParameterCtx). |
ParameterCtx |
getWhen()
Returns when the activity action is to take place (start or end). |
void |
removeItem(ParameterCtx item)
Removes the specified item as an item picked up or dropped off through this activity. |
void |
setWhen(ParameterCtx when)
Sets when the activity action is to take place (start or end). |
Methods inherited from class gov.nasa.arc.brahms.common.rt.PrimitiveActivityCtx |
---|
addResource, getDuration, getElapsedTime, getMaxDuration, getMinDuration, getRandom, getResourceCount, getResources, removeResource, setDuration, setElapsedTime, setMaxDuration, setMinDuration, setRandom |
Methods inherited from class gov.nasa.arc.brahms.common.rt.ActivityCtx |
---|
getCompletionCause, getDisplayText, getParentFrame, getPerformedBy, getPriority, getReferencedBy, getState, getStatus, setCompletionCause, setDisplayText, setParentFrame, setPerformedBy, setPriority, setReferencedBy, setState, setState, setStatus, 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.IPrimitiveActivityCtx |
---|
addResource, getDuration, getElapsedTime, getMaxDuration, getMinDuration, getRandom, getResourceCount, getResources, removeResource, setElapsedTime |
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 |
Constructor Detail |
---|
public ContainmentActivityCtx(ContainmentActivity act)
act
- the ContainmentActivity for which to create a contextMethod Detail |
---|
public void addItem(ParameterCtx item) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
addItem
in interface IContainmentActivityCtx
item
- the item (ParameterCtx) to be added
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if item is nullpublic void removeItem(ParameterCtx item) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
removeItem
in interface IContainmentActivityCtx
item
- the item (ParameterCtx) to be removed
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if item is null, no items
are available, or the item is not foundpublic java.util.Enumeration getItems() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
getItems
in interface IContainmentActivityCtx
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if there are no itemspublic int getItemCount()
getItemCount
in interface IContainmentActivityCtx
public void setWhen(ParameterCtx when) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
when
- the ParameterCtx defining when the activity action is to be executed
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if a null when value is definedpublic ParameterCtx getWhen() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
getWhen
in interface IContainmentActivityCtx
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if the when value is not defined
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |