gov.nasa.arc.brahms.vm.rt
Class VMTriggerCtx

java.lang.Object
  extended by gov.nasa.arc.brahms.common.rt.BrahmsObjectCtx
      extended by gov.nasa.arc.brahms.common.rt.TriggerCtx
          extended by gov.nasa.arc.brahms.vm.rt.VMTriggerCtx
All Implemented Interfaces:
IBrahmsObjectCtx, IDetectableActionCtx, IRuntimeConstants, ITriggerCtx, java.io.Serializable

public class VMTriggerCtx
extends TriggerCtx

The VMTriggerCtx is a detectable action that maintains the information about when the trigger or action part of the detectable was executed and what belief triggered the action. The trigger context also contains the behavior of how and when to match a belief with the detectable condition. On a successfull match the detectable action is executed.

Version:
$Revision: 1.1 $ $Date: 2007/10/10 14:04:25 $ $Author: rvhoof $
Author:
Ron van Hoof
See Also:
TriggerCtx, 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
VMTriggerCtx(java.lang.String activator)
          Constructor, creates a new context for a trigger action specified by the activator string.
VMTriggerCtx(VMDetectableCtx parent)
          Constructor, creates a new context for a trigger action for the specified detectable.
 
Method Summary
 
Methods inherited from class gov.nasa.arc.brahms.common.rt.TriggerCtx
addUsedVariable, getActivator, getParent, getTriggeringBelief, getUsedVariables, removeUsedVariable, setTriggeringBelief
 
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
 
Methods inherited from interface gov.nasa.arc.brahms.common.rt.IBrahmsObjectCtx
addNote, getContextFor, getEndTime, getID, getNote, getNotes, getStartTime, removeNote, setEndTime, setID, setStartTime
 

Constructor Detail

VMTriggerCtx

public VMTriggerCtx(VMDetectableCtx parent)
Constructor, creates a new context for a trigger action for the specified detectable.

Parameters:
parent - the parent VMDetectableCtx

VMTriggerCtx

public VMTriggerCtx(java.lang.String activator)
Constructor, creates a new context for a trigger action specified by the activator string.

Parameters:
activator - the activator for the trigger


Copyright © 1997-2012 All Rights Reserved.