org.sintef.mofscript.runtime.traceability
Class TraceabilityEnvironment

java.lang.Object
  extended by org.sintef.mofscript.runtime.ExecutionEnvironment
      extended by org.sintef.mofscript.runtime.traceability.TraceabilityEnvironment

public class TraceabilityEnvironment
extends ExecutionEnvironment

The Traceability Environment is used to provide extra functionality to the environment when traceability is turned on.

Author:
jol

Field Summary
protected  java.util.Hashtable _offsets
           
protected static traceabilitymodelFactory _traceFactory
           
protected static TraceModel _traceModel
           
protected static traceabilitymodelPackage _tracePackage
           
 
Fields inherited from class org.sintef.mofscript.runtime.ExecutionEnvironment
_parentEnv, _streamContexts, _streams
 
Constructor Summary
TraceabilityEnvironment()
          Default constructor
 
Method Summary
 void createTrace(int offset, org.eclipse.emf.ecore.EObject object, java.lang.String feature)
          creates a trace
protected  void loadTraceabilityModel()
          Load the traceablity model from file?
 void print(java.lang.String s, boolean println)
          Overrides the print function
protected  void storeTraceablityModel()
          Stores the traceability model
 
Methods inherited from class org.sintef.mofscript.runtime.ExecutionEnvironment
addInputObject, addOutputStream, addVariable, addVariables, assignValue, assignVariableValue, clean, cleanLocal, cleanResources, clearInputObject, clearReferenceCache, finalize, findVariable, getCachedReference, getCurrentStream, getCurrentStreamUri, getFileModel, getIndent, getInputObject, getIteratorCount, getIteratorPosition, getOutputStream, getOutputStreamForContext, getParentEnvironment, getResources, getUseFileModel, getUseLog, getVariable, getVariableImplementation, increaseIteratorCount, increaseIteratorPosition, indent, initIteratorCounters, log, notifyMessage, println, removeVariable, setCachedReference, setCurrentStream, setCurrentStream, setOwnerStack, setParentEnvironment, setPrintContext, setRootDirectory, setTypeForVariable, setUseFileModel, setUseLog, setUseParentCache, setVariable, undent, useIndent
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_offsets

protected java.util.Hashtable _offsets

_tracePackage

protected static traceabilitymodelPackage _tracePackage

_traceFactory

protected static traceabilitymodelFactory _traceFactory

_traceModel

protected static TraceModel _traceModel
Constructor Detail

TraceabilityEnvironment

public TraceabilityEnvironment()
Default constructor

Method Detail

print

public void print(java.lang.String s,
                  boolean println)
Overrides the print function

Overrides:
print in class ExecutionEnvironment

createTrace

public void createTrace(int offset,
                        org.eclipse.emf.ecore.EObject object,
                        java.lang.String feature)
creates a trace

Parameters:
offset -
object -
feature -

loadTraceabilityModel

protected void loadTraceabilityModel()
Load the traceablity model from file? Or create a new traceability model


storeTraceablityModel

protected void storeTraceablityModel()
Stores the traceability model