Class PureParametrizedRuleTransformer
java.lang.Object
org.bigraphs.grgen.converter.TransformerSupport
org.bigraphs.grgen.converter.RuleTransformer
org.bigraphs.grgen.converter.impl.PureParametrizedRuleTransformer
- All Implemented Interfaces:
BaseTransformer<org.bigraphs.framework.core.reactivesystem.ReactionRule<?>>
A concrete transformer implementation for parametrized rules that take pure bigraphs as redex and reactum.
A rule is parametrized if it has sites specified.
- Author:
- Dominik Grzelak
-
Field Summary
Fields inherited from class org.bigraphs.grgen.converter.RuleTransformer
TEMPLATE_COPY_SITE_CONTENTS, TEMPLATE_NAC_NO_SITE_PATTERN, trackingMap
Fields inherited from class org.bigraphs.grgen.converter.TransformerSupport
DEFAULT_WHITESPACE_CHAR, LINE_SEP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected Optional<org.bigraphs.framework.core.impl.BigraphEntity.NodeEntity<org.bigraphs.framework.core.impl.signature.DefaultDynamicControl>>
getNodeById
(String nodeId, org.bigraphs.framework.core.impl.pure.PureBigraph bigraph) protected String
getParentId
(org.bigraphs.framework.core.impl.BigraphEntity.NodeEntity<org.bigraphs.framework.core.impl.signature.DefaultDynamicControl> node, org.bigraphs.framework.core.impl.pure.PureBigraph bigraph, boolean withTrackingMap) specific for bigraph rulesprotected String
protected String
toString
(org.bigraphs.framework.core.reactivesystem.ReactionRule<?> element) Redirects the result of an encoding to a stringprotected String
Methods inherited from class org.bigraphs.grgen.converter.RuleTransformer
createMap, isPrintNACPattern, printNACPattern, trackIdentityOf, withMap
Methods inherited from class org.bigraphs.grgen.converter.TransformerSupport
assertCorrectClassType, assertPrimeAndGround, closeBlock, closeClassDefinition, closeClassDefinitionWithAttributes, createAbstractEdgeClass, createAbstractNodeClass, createEdge, createEdgeClass, createGraphlet, createNodeClass, createNodeInstance, createNodeInstance, createVarTypeDecl, createVarTypeDeclWithComma, createVarTypeDeclWithComma, extendClass, nodeTypeOf, openRuleModifierBlock, openRuleReplaceBlock
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bigraphs.grgen.converter.BaseTransformer
createNameSupplier, toOutputStream
-
Field Details
-
bigraphTransformer
PureBigraphTransformer bigraphTransformer
-
-
Constructor Details
-
PureParametrizedRuleTransformer
public PureParametrizedRuleTransformer()
-
-
Method Details
-
toString
Description copied from interface:BaseTransformer
Redirects the result of an encoding to a string- Specified by:
toString
in interfaceBaseTransformer<org.bigraphs.framework.core.reactivesystem.ReactionRule<?>>
- Specified by:
toString
in classRuleTransformer
- Parameters:
element
- the bigraph or signature being encoded
-
openRule
-
openEvalBlock
-
closeRule
-
yieldPart
-
getNodeById
-
getParentId
protected String getParentId(org.bigraphs.framework.core.impl.BigraphEntity.NodeEntity<org.bigraphs.framework.core.impl.signature.DefaultDynamicControl> node, org.bigraphs.framework.core.impl.pure.PureBigraph bigraph, boolean withTrackingMap) specific for bigraph rules- Parameters:
node
- the nodebigraph
- the bigraph containing the nodewithTrackingMap
- resolve node identifier with the help of the tracking map or not (for the reactum only)- Returns:
- the identifier of the parent
-