gov.nasa.arc.brahms.common.rt
Class GestureActivityCtx
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.GestureActivityCtx
- All Implemented Interfaces:
- IActivityCtx, IBrahmsObjectCtx, IGestureActivityCtx, IPrimitiveActivityCtx, IRuntimeConstants, java.io.Serializable
public class GestureActivityCtx
- extends PrimitiveActivityCtx
- implements IGestureActivityCtx
A GestureActivityCtx maintains the context of a gesture 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, and gesture made
when the activity was executed.
- Version:
- 9 April 2002
- Author:
- Ron van Hoof
- See Also:
- Serialized Form
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 |
Method Summary |
ParameterCtx |
getGesture()
Returns the gesture to be made by the agent or object performing the
gesture activity. |
void |
setGesture(ParameterCtx gesture)
Sets the gesture to be made by the agent or object performing the
gesture activity. |
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.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 |
GestureActivityCtx
public GestureActivityCtx(GestureActivity act)
- Constructor, creates a new context for the specified
GestureActivity.
- Parameters:
act
- the GestureActivity for which to create a context
setGesture
public void setGesture(ParameterCtx gesture)
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
- Sets the gesture to be made by the agent or object performing the
gesture activity. The gesture is set through a parameter context containing
either a symbolic value with the gesture or a reference to a variable
containing the gesture value.
- Parameters:
gesture
- the ParameterCtx specifying the gesture
- Throws:
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if the gesture is null
getGesture
public ParameterCtx getGesture()
throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
- Returns the gesture to be made by the agent or object performing the
gesture activity. The gesture is set through a parameter context containing
either a symbol value with the gesture or a reference to a variable
containing the gesture value.
- Specified by:
getGesture
in interface IGestureActivityCtx
- Returns:
- ParameterCtx the gesture as a symbol value or variable
- Throws:
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if the gesture is not specified
Copyright © 1997-2012 All Rights Reserved.