Class IChangeMonitor
- java.lang.Object
-
- org.eclipse.viatra.transformation.runtime.emf.changemonitor.IChangeMonitor
-
- Direct Known Subclasses:
ChangeMonitor
public abstract class IChangeMonitor extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description IChangeMonitor(ViatraQueryEngine engine)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract ChangeDelta
createCheckpoint()
Creates a checkpoint which means: Model changes since the last checkpont are saved The model changes in the future are tracked separately from the changes before the checkpointabstract ChangeDelta
getDeltaSinceLastCheckpoint()
Returns all changed elements between the last two checkpointsabstract void
startMonitoring()
Sets the model whose changes are observed.
-
-
-
Constructor Detail
-
IChangeMonitor
public IChangeMonitor(ViatraQueryEngine engine)
-
-
Method Detail
-
startMonitoring
public abstract void startMonitoring()
Sets the model whose changes are observed. Also creates an initial checkpoint with no changes registered.- Parameters:
deployment
- the deployment modelengine
- engine associated with the- Throws:
ViatraQueryRuntimeException
-
createCheckpoint
public abstract ChangeDelta createCheckpoint()
Creates a checkpoint which means:- Model changes since the last checkpont are saved
- The model changes in the future are tracked separately from the changes before the checkpoint
- Returns:
- the DTO containing the changed elements since the last checkpoint
-
getDeltaSinceLastCheckpoint
public abstract ChangeDelta getDeltaSinceLastCheckpoint()
Returns all changed elements between the last two checkpoints- Returns:
- the DTO containing the changed elements
-
-