java.lang.Object
org.bigraphs.framework.simulation.modelchecking.ModelCheckingStrategySupport<B>
org.bigraphs.framework.simulation.modelchecking.BreadthFirstStrategy<B>
org.bigraphs.framework.simulation.modelchecking.BFSFirstMatchStrategy<B>
- All Implemented Interfaces:
ModelCheckingStrategy<B>
public class BFSFirstMatchStrategy<B extends Bigraph<? extends Signature<?>>>
extends BreadthFirstStrategy<B>
A breadth-first exploration strategy that selects only the
first available match in "natural matcher order" for each reaction rule when checking a state.
The selected successor is followed exclusively, and no sibling states are explored for that rule
(i.e., if the rule produces more occurrences, only the first is selected).
This produces an execution trace consistent with BFS semantics.
- Author:
- Dominik Grzelak
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bigraphs.framework.simulation.modelchecking.ModelCheckingStrategySupport
ModelCheckingStrategySupport.MatchResult<B extends Bigraph<? extends Signature<?>>> -
Field Summary
Fields inherited from class org.bigraphs.framework.simulation.modelchecking.ModelCheckingStrategySupport
decoder, encoder, logger, modelChecker, occurrenceCounter, predicateChecker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MatchIterable<BigraphMatch<B>> getBigraphMatches(ReactionRule<B> rule, B theAgent) Return only the first matchMethods inherited from class org.bigraphs.framework.simulation.modelchecking.BreadthFirstStrategy
addToWorklist, createWorklist, removeNextMethods inherited from class org.bigraphs.framework.simulation.modelchecking.ModelCheckingStrategySupport
evaluatePredicates, resetOccurrenceCounter, synthesizeTransitionSystem
-
Constructor Details
-
BFSFirstMatchStrategy
-
-
Method Details
-
getBigraphMatches
Return only the first match- Overrides:
getBigraphMatchesin classModelCheckingStrategySupport<B extends Bigraph<? extends Signature<?>>>- Parameters:
rule-theAgent-- Returns:
-