java.lang.Object
org.bigraphs.framework.simulation.modelchecking.ModelCheckingStrategySupport<B>
- All Implemented Interfaces:
ModelCheckingStrategy<B>
- Direct Known Subclasses:
BreadthFirstStrategy
,DepthFirstStrategy
,RandomAgentModelCheckingStrategy
public abstract class ModelCheckingStrategySupport<B extends Bigraph<? extends Signature<?>>>
extends Object
implements ModelCheckingStrategy<B>
Base class for supporting model checking strategy implementations.
Provides some useful method to keep subclasses simple.
- Author:
- Dominik Grzelak
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
ModelCheckingStrategySupport.MatchResult<B extends Bigraph<? extends Signature<?>>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JLibBigBigraphDecoder
protected JLibBigBigraphEncoder
protected org.slf4j.Logger
protected BigraphModelChecker<B>
protected int
protected PredicateChecker<B>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
addToWorklist
(Collection<B> worklist, B bigraph) protected abstract Collection<B>
protected void
evaluatePredicates
(B agent, String canonical, String root) protected abstract B
removeNext
(Collection<B> worklist) protected void
void
Main method for model checking.
-
Field Details
-
logger
protected org.slf4j.Logger logger -
modelChecker
-
predicateChecker
-
occurrenceCounter
protected int occurrenceCounter -
decoder
-
encoder
-
-
Constructor Details
-
ModelCheckingStrategySupport
-
-
Method Details
-
createWorklist
-
removeNext
-
addToWorklist
-
resetOccurrenceCounter
protected void resetOccurrenceCounter() -
synthesizeTransitionSystem
public void synthesizeTransitionSystem()Main method for model checking. The mode of traversal can be changed by implementing thecreateWorklist()
andremoveNext(Collection)
methods.Alternatively, the #synthesizeTransitionSystem() method can be simply overridden.
- Specified by:
synthesizeTransitionSystem
in interfaceModelCheckingStrategy<B extends Bigraph<? extends Signature<?>>>
-
evaluatePredicates
-