Class Scheduler
- java.lang.Object
-
- org.eclipse.viatra.transformation.evm.api.Scheduler
-
- Direct Known Subclasses:
TimedScheduler,UpdateCompleteBasedScheduler
public abstract class Scheduler extends java.lang.ObjectThe scheduler is used to define when the executor of a schema should start its execution strategy.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceScheduler.ISchedulerFactoryFactory interface for preparing a scheduler for a given executor.
-
Constructor Summary
Constructors Modifier Constructor Description protectedScheduler(ScheduledExecution execution)Creates a scheduler for the given executor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Disposes of the scheduler by disposing its executor.ScheduledExecutiongetExecution()protected voidschedule()Notifies executor of "tick".
-
-
-
Constructor Detail
-
Scheduler
protected Scheduler(ScheduledExecution execution)
Creates a scheduler for the given executor.- Parameters:
executor-
-
-
Method Detail
-
schedule
protected void schedule()
Notifies executor of "tick". Subclasses should call this method to generate "ticks".
-
getExecution
public ScheduledExecution getExecution()
-
dispose
public void dispose()
Disposes of the scheduler by disposing its executor.
-
-