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

java.lang.Object
  extended by gov.nasa.arc.brahms.common.rt.BrahmsObjectCtx
      extended by gov.nasa.arc.brahms.common.rt.ConceptCtx
          extended by gov.nasa.arc.brahms.vm.rt.VMPathCtx
All Implemented Interfaces:
IBrahmsObjectCtx, IConceptCtx, IRuntimeConstants, IRuntimeConceptCtx, java.io.Serializable

public class VMPathCtx
extends ConceptCtx
implements IRuntimeConceptCtx

The VMPathCtx is the runtime representation of a path defined in a Brahms model with extensions for use in the virtual machine. The path context is put in place for handling possible messaging in a distributed environment, currently a path cannot do anything with messages it receives, but a message receiver must be implemented in order for a path to be registered in an agent directory.

Version:
$Revision: 1.2 $ $Date: 2008/02/28 18:33:05 $ $Author: rvhoof $
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
VMPathCtx(Path p)
          Constructor, creates a new context for the specified path.
 
Method Summary
 void initialize(gov.nasa.arc.brahms.vm.controller.VMController vmc, long time)
          Initializes the concept for use in a virtual machine controller by the specified virtual machine controller.
 void reset()
          Resets the concept removing its context and any references and additional components created to use this concept in a virtual machine.
 
Methods inherited from class gov.nasa.arc.brahms.common.rt.ConceptCtx
addAttribute, addRelation, getAttribute, getRelation, initAttributeRelationCache, removeAttribute, removeRelation, resetAttributeRelationCache, 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.IBrahmsObjectCtx
addNote, getContextFor, getEndTime, getID, getNote, getNotes, getStartTime, removeNote, setEndTime, setID, setStartTime
 

Constructor Detail

VMPathCtx

public VMPathCtx(Path p)
Constructor, creates a new context for the specified path.

Parameters:
p - the Path for which to create a context
Method Detail

initialize

public void initialize(gov.nasa.arc.brahms.vm.controller.VMController vmc,
                       long time)
                throws VMException
Initializes the concept for use in a virtual machine controller by the specified virtual machine controller. The initialization sets up any additional components required for the concept to be used in the virtual machine.

Specified by:
initialize in interface IRuntimeConceptCtx
Parameters:
vmc - the VMController controlling the virtual machine in which this concept is to be used.
time - the time at which the initialization takes place
Throws:
VMException - if an error occurs in initializing the concept

reset

public void reset()
           throws VMException
Resets the concept removing its context and any references and additional components created to use this concept in a virtual machine.

Specified by:
reset in interface IRuntimeConceptCtx
Throws:
VMException - if in error occurs in resetting the active instance


Copyright © 1997-2012 All Rights Reserved.