public abstract class Job<EventAtom>
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Job(ActivationState activationState)
Creates a new job corresponding to the given state.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
execute(Activation<? extends EventAtom> activation,
Context context)
Executes the action on the activation using the supplied context.
|
ActivationState |
getActivationState() |
protected abstract void |
handleError(Activation<? extends EventAtom> activation,
java.lang.Exception exception,
Context context)
Called if the
execute(org.eclipse.viatra.transformation.evm.api.Activation<? extends EventAtom>, org.eclipse.viatra.transformation.evm.api.Context) method has thrown an exception to allow jobs to handle their own errors. |
protected Job(ActivationState activationState)
public ActivationState getActivationState()
protected abstract void execute(Activation<? extends EventAtom> activation, Context context)
activation
- context
- protected abstract void handleError(Activation<? extends EventAtom> activation, java.lang.Exception exception, Context context)
execute(org.eclipse.viatra.transformation.evm.api.Activation<? extends EventAtom>, org.eclipse.viatra.transformation.evm.api.Context)
method has thrown an exception to allow jobs to handle their own errors.activation
- exception
- context
-