java.lang.Object
org.bigraphs.framework.core.reactivesystem.AbstractTransitionSystem<B>
org.bigraphs.framework.core.reactivesystem.ReactionGraph<B>
- Type Parameters:
B
- the type of the bigraph of the states and transition relations of the transition system
- Direct Known Subclasses:
ReactionGraphExtended
public class ReactionGraph<B extends Bigraph<? extends Signature<?>>>
extends AbstractTransitionSystem<B>
An "extended" data structure to build up a "reaction graph", analogous to a labeled transition system.
It extends the abstract base class
AbstractTransitionSystem
.
A reaction graph is not to be confused with the notion of minimal LTSs in bigraphs. This reaction graph has no minimal context labels as transitions; it has reactions as labels.
Here the transition relations are reaction rules (i.e., the redex), and the nodes are states (i.e., bigraphs, represented by their unique string encoding).
- Author:
- Dominik Grzelak
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
-
Field Summary
Fields inherited from class org.bigraphs.framework.core.reactivesystem.AbstractTransitionSystem
aSup, canonicalNodeLabel, stateMap, transitionMap
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPredicateMatchToNode
(ReactionGraph.LabeledNode node, ReactiveSystemPredicate<B> predicates) protected ReactionGraph.LabeledNode
createNode
(String label) org.jgrapht.Graph<ReactionGraph.LabeledNode,
ReactionGraph.LabeledEdge> getGraph()
Get the data structure of the reaction graphGet an object containing some informative statistics of the reaction graphgetLabeledNodeByCanonicalForm
(String canonicalForm) boolean
isEmpty()
void
reset()
setCanonicalNodeLabel
(boolean canonicalNodeLabel) Methods inherited from class org.bigraphs.framework.core.reactivesystem.AbstractTransitionSystem
addState, addTransition, containsBigraph, createSupplier, getStateMap, getTransitionMap
-
Constructor Details
-
ReactionGraph
public ReactionGraph()
-
-
Method Details
-
createNode
-
addEdge
-
getLabeledNodeByCanonicalForm
-
setCanonicalNodeLabel
-
getPredicateMatches
-
reset
public void reset() -
addPredicateMatchToNode
public ReactionGraph<B> addPredicateMatchToNode(ReactionGraph.LabeledNode node, ReactiveSystemPredicate<B> predicates) -
getGraph
Get the data structure of the reaction graph- Returns:
- the reaction graph
-
getGraphStats
Get an object containing some informative statistics of the reaction graph- Returns:
- some statistics about the reaction graph object
-
isEmpty
public boolean isEmpty()
-