Class PureBigraphMatcher
java.lang.Object
org.bigraphs.framework.simulation.matching.AbstractBigraphMatcher<PureBigraph>
org.bigraphs.framework.simulation.matching.pure.PureBigraphMatcher
PureBigraphMatcher is a concrete implementation of AbstractBigraphMatcher specialized for handling
pure bigraphs. It is responsible for executing matching operations between a pure bigraph agent
and a reaction rule. The matcher uses a PureBigraphMatchingEngine for processing the matches.
- Author:
- Dominik Grzelak
-
Field Summary
Fields inherited from class org.bigraphs.framework.simulation.matching.AbstractBigraphMatcher
agent, redex, rule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProvide the matching engine for the specific bigraph type implemented by the subclass<M extends BigraphMatch<PureBigraph>>
MatchIterable<M> match(PureBigraph agent, ReactionRule<PureBigraph> rule) Deprecated.<M extends BigraphMatch<PureBigraph>>
MatchIterable<M> matchAll(PureBigraph agent, ReactionRule<PureBigraph> rule) Finds all matches of a specified reaction rule within a given pure bigraph.<M extends BigraphMatch<?>>
MatchIterable<M> matchFirst(PureBigraph agent, ReactionRule<PureBigraph> rule) Finds the first match of a specified reaction rule within a given pure bigraph.Methods inherited from class org.bigraphs.framework.simulation.matching.AbstractBigraphMatcher
create, getAgent, getRedex
-
Constructor Details
-
PureBigraphMatcher
public PureBigraphMatcher()
-
-
Method Details
-
instantiateEngine
Description copied from class:AbstractBigraphMatcherProvide the matching engine for the specific bigraph type implemented by the subclass- Specified by:
instantiateEnginein classAbstractBigraphMatcher<PureBigraph>- Returns:
- concrete bigraph matching engine
-
matchAll
public <M extends BigraphMatch<PureBigraph>> MatchIterable<M> matchAll(PureBigraph agent, ReactionRule<PureBigraph> rule) Finds all matches of a specified reaction rule within a given pure bigraph.- Type Parameters:
M- the type of the match.- Parameters:
agent- the pure bigraph in which to search for matches.rule- the reaction rule containing the redex to be matched against the agent.- Returns:
- an iterable collection of matches of type M found in the given pure bigraph agent.
-
match
@Deprecated public <M extends BigraphMatch<PureBigraph>> MatchIterable<M> match(PureBigraph agent, ReactionRule<PureBigraph> rule) Deprecated.Use matchAll instead of match(); or use matchFirst() (constrained variant)- Specified by:
matchin classAbstractBigraphMatcher<PureBigraph>
-
matchFirst
public <M extends BigraphMatch<?>> MatchIterable<M> matchFirst(PureBigraph agent, ReactionRule<PureBigraph> rule) Finds the first match of a specified reaction rule within a given pure bigraph.- Type Parameters:
M- the type of the match.- Parameters:
agent- the pure bigraph in which to search for the first match.rule- the reaction rule containing the redex to be matched against the agent.- Returns:
- an iterable collection containing the first match of type M found in the given pure bigraph agent.
-