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

java.lang.Object
  extended by gov.nasa.arc.brahms.common.rt.BrahmsObjectCtx
      extended by gov.nasa.arc.brahms.common.rt.FrameStateCtx
          extended by gov.nasa.arc.brahms.common.rt.ActiveCtx
All Implemented Interfaces:
IBrahmsObjectCtx, IRuntimeConstants, java.io.Serializable

public class ActiveCtx
extends FrameStateCtx

The ActiveCtx manages information about the active state of a frame. The active state is entered by a frame when the frame is to be worked on by an agent. This context maintains the time when the frame enters the active state and the time when the frame leaves the active state.

Version:
28 July 2000
Author:
Ron van Hoof
See Also:
FrameStateCtx, 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
ActiveCtx(IFrameCtx frame)
          Constructor, creates a new ActiveCtx for the specified frame
 
Method Summary
 int getState()
          Returns the state identifier
 java.lang.String getStateName()
          Returns the name of the state
 
Methods inherited from class gov.nasa.arc.brahms.common.rt.FrameStateCtx
getFrame, getNextFrameState, getPreviousFrameState, setFrame, setNextFrameState, setPreviousFrameState
 
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, toString, wait, wait, wait
 

Constructor Detail

ActiveCtx

public ActiveCtx(IFrameCtx frame)
          throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
Constructor, creates a new ActiveCtx for the specified frame

Parameters:
frame - the IFrameCtx that is set to active
Throws:
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if frame specified is null
Method Detail

getState

public int getState()
Returns the state identifier

Overrides:
getState in class FrameStateCtx
Returns:
int the state id

getStateName

public java.lang.String getStateName()
Returns the name of the state

Overrides:
getStateName in class FrameStateCtx
Returns:
String the name of the state


Copyright © 1997-2012 All Rights Reserved.