Class AdaptableExecutor
- java.lang.Object
-
- org.eclipse.viatra.transformation.evm.api.adapter.AdaptableExecutor
-
- All Implemented Interfaces:
IExecutor
public class AdaptableExecutor extends java.lang.Object implements IExecutor
IExecutor
implementation that uses theAdaptableEVM
to add external functions to certain points of an EVM based program.
-
-
Constructor Summary
Constructors Constructor Description AdaptableExecutor(IExecutor delegatedExecutor, AdaptableEVM evm)
-
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
-
-
-
Constructor Detail
-
AdaptableExecutor
public AdaptableExecutor(IExecutor delegatedExecutor, AdaptableEVM evm)
-
-
Method Detail
-
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
-
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
-
-