gov.nasa.arc.brahms.common.rt
Class GetActivityCtx

java.lang.Object
  extended by gov.nasa.arc.brahms.common.rt.BrahmsObjectCtx
      extended by gov.nasa.arc.brahms.common.rt.ActivityCtx
          extended by gov.nasa.arc.brahms.common.rt.PrimitiveActivityCtx
              extended by gov.nasa.arc.brahms.common.rt.ContainmentActivityCtx
                  extended by gov.nasa.arc.brahms.common.rt.GetActivityCtx
All Implemented Interfaces:
IActivityCtx, IBrahmsObjectCtx, IContainmentActivityCtx, IGetActivityCtx, IPrimitiveActivityCtx, IRuntimeConstants, java.io.Serializable

public class GetActivityCtx
extends ContainmentActivityCtx
implements IGetActivityCtx

A GetActivityCtx maintains the context of a get 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, resources, what items (agent or objects) were picked up in the activity and when the activity was executed.

Version:
29 May 2001
Author:
Ron van Hoof
See Also:
Serialized Form

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
GetActivityCtx(GetActivity act)
          Constructor, creates a new context for the specified GetActivity.
 
Method Summary
 ParameterCtx getSource()
          Returns the get activity's source agent, object or area.
 void setSource(ParameterCtx source)
          Sets the get activity's source agent, object or area.
 
Methods inherited from class gov.nasa.arc.brahms.common.rt.ContainmentActivityCtx
addItem, getItemCount, getItems, getWhen, removeItem, setWhen
 
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.IContainmentActivityCtx
addItem, getItemCount, getItems, getWhen, removeItem
 
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

GetActivityCtx

public GetActivityCtx(GetActivity act)
Constructor, creates a new context for the specified GetActivity.

Parameters:
act - the GetActivity for which to create a context
Method Detail

setSource

public void setSource(ParameterCtx source)
               throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
Sets the get activity's source agent, object or area. The source is specified through a parameter context containing either the actual value (ConceptCtx) or a reference to a variable containing the value.

Parameters:
source - the ParameterCtx containing the source
Throws:
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if an internal error occurs

getSource

public ParameterCtx getSource()
                       throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
Returns the get activity's source agent, object or area. The source is specified through a parameter context containing either the actual value (ConceptCtx) or a reference to a variable containing the value.

Specified by:
getSource in interface IGetActivityCtx
Returns:
ParameterCtx the source
Throws:
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if an internal error occurs


Copyright © 1997-2012 All Rights Reserved.