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
IExecutorimplementation that uses theAdaptableEVMto 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 voidendExecution(java.lang.String transactionID)Signals the end of the execution,It receives the transaction ID as a parametervoidexecute(java.util.Iterator<Activation<?>> activations)executes a given set of EVMActivation.ContextgetContext()Returns theContextof the executor.voidstartExecution(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:IExecutorSignals the beginning of the execution,It receives the transaction ID as a parameter- Specified by:
startExecutionin interfaceIExecutor
-
execute
public void execute(java.util.Iterator<Activation<?>> activations)
Description copied from interface:IExecutorexecutes 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:IExecutorSignals the end of the execution,It receives the transaction ID as a parameter- Specified by:
endExecutionin interfaceIExecutor
-
getContext
public Context getContext()
Description copied from interface:IExecutorReturns theContextof the executor. The return value should never be null.- Specified by:
getContextin interfaceIExecutor
-
-