Class Executor
- java.lang.Object
-
- org.eclipse.viatra.transformation.evm.api.Executor
-
-
Constructor Summary
Constructors Constructor Description Executor()
Creates an executor with a new Context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endExecution(java.lang.String transactionID)
Signals the end of the execution,It receives the transaction ID as a parametervoid
execute(java.util.Iterator<Activation<?>> activations)
executes a given set of EVMActivation
.Context
getContext()
Returns theContext
of the executor.void
startExecution(java.lang.String transactionID)
Signals the beginning of the execution,It receives the transaction ID as a parameter
-
-
-
Method Detail
-
getContext
public Context getContext()
Description copied from interface:IExecutor
Returns theContext
of the executor. The return value should never be null.- Specified by:
getContext
in interfaceIExecutor
-
startExecution
public void startExecution(java.lang.String transactionID)
Description copied from interface:IExecutor
Signals the beginning of the execution,It receives the transaction ID as a parameter- Specified by:
startExecution
in interfaceIExecutor
-
execute
public void execute(java.util.Iterator<Activation<?>> activations)
Description copied from interface:IExecutor
executes a given set of EVMActivation
. Make sure that if this method is used, the call is enclosed byIExecutor.startExecution(java.lang.String)
andIExecutor.endExecution(java.lang.String)
calls.
-
endExecution
public void endExecution(java.lang.String transactionID)
Description copied from interface:IExecutor
Signals the end of the execution,It receives the transaction ID as a parameter- Specified by:
endExecution
in interfaceIExecutor
-
-