Class AdaptableActivationNotificationListener
- java.lang.Object
-
- org.eclipse.viatra.transformation.evm.api.adapter.AdaptableActivationNotificationListener
-
- All Implemented Interfaces:
IActivationNotificationListener
public class AdaptableActivationNotificationListener extends java.lang.Object implements IActivationNotificationListener
AdaptableIActivationNotificationListener
implementation. It utilizes theAdaptableEVM
to enable listening to activation state change events.
-
-
Constructor Summary
Constructors Constructor Description AdaptableActivationNotificationListener(IActivationNotificationListener delegatedListener, AdaptableEVM adapterContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activationChanged(Activation<?> activation, ActivationState oldState, EventType event)
This method is called byActivationNotificationProvider
to relay changes to listeners.void
activationCreated(Activation<?> activation, ActivationState inactiveState)
void
activationRemoved(Activation<?> activation, ActivationState oldState)
-
-
-
Constructor Detail
-
AdaptableActivationNotificationListener
public AdaptableActivationNotificationListener(IActivationNotificationListener delegatedListener, AdaptableEVM adapterContainer)
-
-
Method Detail
-
activationChanged
public void activationChanged(Activation<?> activation, ActivationState oldState, EventType event)
Description copied from interface:IActivationNotificationListener
This method is called byActivationNotificationProvider
to relay changes to listeners. Implementing classes can use the old state, the event, and the new state (available from the activation).- Specified by:
activationChanged
in interfaceIActivationNotificationListener
-
activationCreated
public void activationCreated(Activation<?> activation, ActivationState inactiveState)
- Specified by:
activationCreated
in interfaceIActivationNotificationListener
-
activationRemoved
public void activationRemoved(Activation<?> activation, ActivationState oldState)
- Specified by:
activationRemoved
in interfaceIActivationNotificationListener
-
-