|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sintef.mofscript.runtime.ExecutionEnvironment
org.sintef.mofscript.runtime.traceability.TraceabilityEnvironment
public class TraceabilityEnvironment
The Traceability Environment is used to provide extra functionality to the environment when traceability is turned on.
Nested Class Summary | |
---|---|
class |
TraceabilityEnvironment.OffsetCounter
Class to handle the counting of offset |
Field Summary | |
---|---|
protected static int |
_traceCount
|
protected static TraceabilitymodelFactory |
_traceFactory
|
protected static TraceModel |
_traceModel
|
protected static TraceabilitymodelPackage |
_tracePackage
|
Fields inherited from class org.sintef.mofscript.runtime.ExecutionEnvironment |
---|
_currentStream, _inPrintAction, _lineNumber, _objectId, _offsets, _openFileUri, _parentEnv, _printStreams, _streamContexts, _streams, _tempObject, _tempRef, _traceValue, _variablesRefValues |
Constructor Summary | |
---|---|
TraceabilityEnvironment()
Default constructor |
Method Summary | |
---|---|
static void |
cleanTraceEnv()
|
Trace |
createTrace(java.lang.String refValue,
int offset,
int refLength,
org.eclipse.emf.ecore.EObject object,
java.lang.String feature,
RuleExecutor rExec,
java.lang.String fullRefName)
creates a trace |
void |
endUnprotectedBlock()
|
static java.lang.String |
getObjectId(org.eclipse.emf.ecore.EObject obj)
|
protected void |
loadTraceabilityModel()
Load the traceablity model from file? |
void |
print(java.lang.String s,
boolean println)
Overrides the print function |
static void |
resetTraceCounter()
Resets the trace counter Called from ExecutionManager when execution is finished |
void |
startUnprotectedBlock(java.lang.String objectUri)
|
void |
storeTraceablityModel(java.lang.String traceGenDir)
Stores the traceability model |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static TraceabilitymodelPackage _tracePackage
protected static TraceabilitymodelFactory _traceFactory
protected static TraceModel _traceModel
protected static int _traceCount
Constructor Detail |
---|
public TraceabilityEnvironment()
Method Detail |
---|
public void print(java.lang.String s, boolean println)
print
in class ExecutionEnvironment
s
- println
- public Trace createTrace(java.lang.String refValue, int offset, int refLength, org.eclipse.emf.ecore.EObject object, java.lang.String feature, RuleExecutor rExec, java.lang.String fullRefName)
offset
- object
- feature
- rExec
- public static java.lang.String getObjectId(org.eclipse.emf.ecore.EObject obj)
protected void loadTraceabilityModel()
public void storeTraceablityModel(java.lang.String traceGenDir)
public static void resetTraceCounter()
public static void cleanTraceEnv()
public void startUnprotectedBlock(java.lang.String objectUri)
startUnprotectedBlock
in class ExecutionEnvironment
public void endUnprotectedBlock()
endUnprotectedBlock
in class ExecutionEnvironment
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |