Class PureBigraphMatchingEngine
java.lang.Object
org.bigraphs.framework.simulation.matching.BigraphMatchingSupport
org.bigraphs.framework.simulation.matching.pure.PureBigraphMatchingEngine
- All Implemented Interfaces:
BigraphMatchingEngine<PureBigraph>
public class PureBigraphMatchingEngine
extends BigraphMatchingSupport
implements BigraphMatchingEngine<PureBigraph>
Matching algorithm for pure bigraphs (see
PureBigraph).- Author:
- Dominik Grzelak
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected it.uniud.mads.jlibbig.core.std.AgentMatcherprotected final JLibBigBigraphEncoderprotected booleanprotected it.uniud.mads.jlibbig.core.std.Bigraphprotected Iterable<? extends it.uniud.mads.jlibbig.core.std.AgentMatch> protected it.uniud.mads.jlibbig.core.std.Bigraphprotected final org.eclipse.collections.api.list.MutableList<PureBigraphMatch> protected ReactionRule<PureBigraph> Fields inherited from class org.bigraphs.framework.simulation.matching.BigraphMatchingSupport
executorService -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPureBigraphMatchingEngine(PureBigraph agent, ReactionRule<PureBigraph> reactionRule) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidComputes all matchesprotected voidThis methods builds the actual bigraphs determined by the matching algorithm (seebeginMatch()).protected voidbooleanChecks if any match could be found and also if_all_ redex roots could be matched.
-
Field Details
-
hasMatched
protected boolean hasMatched -
matches
-
reactionRule
-
encoder
-
jLibAgent
protected it.uniud.mads.jlibbig.core.std.Bigraph jLibAgent -
jLibRedex
protected it.uniud.mads.jlibbig.core.std.Bigraph jLibRedex -
agentMatcher
protected it.uniud.mads.jlibbig.core.std.AgentMatcher agentMatcher -
jLibMatchIterator
-
-
Constructor Details
-
PureBigraphMatchingEngine
-
-
Method Details
-
getMatches
- Specified by:
getMatchesin interfaceBigraphMatchingEngine<PureBigraph>
-
hasMatched
public boolean hasMatched()Checks if any match could be found and also if_all_ redex roots could be matched.- Returns:
true, if a correct match could be found, otherwisefalse
-
beginMatch
protected void beginMatch()Computes all matchesFirst, structural matching, afterward link matching
-
createMatchResult
protected void createMatchResult()This methods builds the actual bigraphs determined by the matching algorithm (seebeginMatch()). -
createSingleMatchResult
protected void createSingleMatchResult()
-