java.lang.Object
org.bigraphs.framework.simulation.matching.AbstractBigraphMatcher<B>
- Type Parameters:
B- the type of bigraph which extends from Bigraph with a specific signature
- Direct Known Subclasses:
PureBigraphMatcher
public abstract class AbstractBigraphMatcher<B extends Bigraph<? extends Signature<?>>>
extends Object
Abstract class for matching bigraphs against reaction rules. This class provides
the basic structure for implementing specific bigraph matchers by extending its
functionality. Subclasses are required to provide implementations for custom matching
logic and driven by a dedicated matching engine
instantiateEngine() w.r.t. to the bigraph type.
The correct one, is created using the factory method create(Class) by supplying the bigraph type as class.
The matcher needs an agent and redex to perform bigraph matching.
- Author:
- Dominik Grzelak
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <B extends Bigraph<? extends Signature<?>>>
AbstractBigraphMatcher<B> getAgent()Returns the supplied agent passed via thematch(Bigraph, ReactionRule)method.getRedex()Returns the supplied redex passed via thematch(Bigraph, ReactionRule)method.protected abstract BigraphMatchingEngine<B> Provide the matching engine for the specific bigraph type implemented by the subclassabstract <M extends BigraphMatch<B>>
MatchIterable<M> match(B agent, ReactionRule<B> rule)
-
Field Details
-
agent
-
redex
-
rule
-
-
Constructor Details
-
AbstractBigraphMatcher
protected AbstractBigraphMatcher()
-
-
Method Details
-
create
public static <B extends Bigraph<? extends Signature<?>>> AbstractBigraphMatcher<B> create(Class<B> bigraphClass) -
match
-
instantiateEngine
Provide the matching engine for the specific bigraph type implemented by the subclass- Returns:
- concrete bigraph matching engine
-
getAgent
Returns the supplied agent passed via thematch(Bigraph, ReactionRule)method.- Returns:
- the agent for the match
-
getRedex
Returns the supplied redex passed via thematch(Bigraph, ReactionRule)method.- Returns:
- the redex for the match
-