Package org.mpi_sws.jmc.strategies.trust
Class MeasureGraphCoverageStrategy
java.lang.Object
org.mpi_sws.jmc.strategies.trust.MeasureGraphCoverageStrategy
- All Implemented Interfaces:
SchedulingStrategy
A scheduling strategy that measures the coverage of execution graphs during the model checking
process.
This strategy records the coverage of execution graphs and stores them in a specified path. It can also measure the coverage per iteration or at a specified frequency.
-
Constructor Summary
ConstructorsConstructorDescriptionMeasureGraphCoverageStrategy(SchedulingStrategy schedulingStrategy, MeasureGraphCoverageStrategyConfig config) -
Method Summary
Modifier and TypeMethodDescriptionvoidinitIteration(int iteration, JmcModelCheckerReport report) Initializes the strategy for a new iteration.nextTask()Returns the ID of the next thread to be scheduled.voidresetIteration(int iteration) Resets the strategy for the current Iteration.voidteardown()Teardown the strategy.voidupdateEvent(JmcRuntimeEvent event) Updates the strategy with the event that has occurred.
-
Constructor Details
-
MeasureGraphCoverageStrategy
public MeasureGraphCoverageStrategy(SchedulingStrategy schedulingStrategy, MeasureGraphCoverageStrategyConfig config)
-
-
Method Details
-
initIteration
Description copied from interface:SchedulingStrategyInitializes the strategy for a new iteration.- Specified by:
initIterationin interfaceSchedulingStrategy- Parameters:
iteration- the number of the iteration.- Throws:
HaltCheckerException
-
updateEvent
Description copied from interface:SchedulingStrategyUpdates the strategy with the event that has occurred.May be left empty if unused
- Specified by:
updateEventin interfaceSchedulingStrategy- Throws:
HaltTaskExceptionHaltExecutionException
-
nextTask
Description copied from interface:SchedulingStrategyReturns the ID of the next thread to be scheduled.- Specified by:
nextTaskin interfaceSchedulingStrategy- Returns:
- the ID of the next thread to be scheduled.
-
resetIteration
public void resetIteration(int iteration) Description copied from interface:SchedulingStrategyResets the strategy for the current Iteration.- Specified by:
resetIterationin interfaceSchedulingStrategy
-
teardown
public void teardown()Description copied from interface:SchedulingStrategyTeardown the strategy. Allows for releasing resources.- Specified by:
teardownin interfaceSchedulingStrategy
-