Class PureBigraphRedexAdapter
java.lang.Object
org.bigraphs.framework.core.BigraphDelegator<S>
org.bigraphs.framework.simulation.matching.AbstractDynamicMatchAdapter<DefaultDynamicSignature,PureBigraph>
org.bigraphs.framework.simulation.matching.pure.PureBigraphRedexAdapter
- All Implemented Interfaces:
Bigraph<DefaultDynamicSignature>
,EcoreBigraph<DefaultDynamicSignature>
,EcoreBigraphExt
,HasSignature<DefaultDynamicSignature>
public class PureBigraphRedexAdapter
extends AbstractDynamicMatchAdapter<DefaultDynamicSignature,PureBigraph>
- Author:
- Dominik Grzelak
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bigraphs.framework.simulation.matching.AbstractDynamicMatchAdapter
AbstractDynamicMatchAdapter.ControlLinkPair
Nested classes/interfaces inherited from interface org.bigraphs.framework.core.EcoreBigraph
EcoreBigraph.Stub<S extends AbstractEcoreSignature<?>>
-
Field Summary
Fields inherited from class org.bigraphs.framework.simulation.matching.AbstractDynamicMatchAdapter
throwableSupplier
Fields inherited from class org.bigraphs.framework.core.BigraphDelegator
bigraphDelegate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
degreeOf
(BigraphEntity<?> nodeEntity) Get the number of all in- and out-going edges of a node within the place graph.List<BigraphEntity<?>>
getChildrenWithSites
(BigraphEntity<?> node) getLinksOfNode
(BigraphEntity<?> node) Only outer names are returned, edges are not considered for the result.Get the corresponding signature of the underlying bigraphMethods inherited from class org.bigraphs.framework.simulation.matching.AbstractDynamicMatchAdapter
addPlaceToList, getAllInternalVerticesPostOrder, getAllInternalVerticesPostOrderAsStream, getAllLeaves, getAllVertices, getAllVerticesBfsOrder, getAllVerticesBfsOrderFrom, getAllVerticesBfsOrderStream, getAllVerticesPostOrder, getBigraphDelegate, getChildren, getInstanceModel, getMetaModel, getNodesOfLink, getOpenNeighborhoodOfVertex, getRoots, getSubtreeOfNode, neighborhoodHook
Methods inherited from class org.bigraphs.framework.core.BigraphDelegator
areConnected, getAllLinks, getAllPlaces, getChildrenOf, getEdges, getInnerNames, getLevelOf, getLinkOfPoint, getNodeOfPort, getNodes, getOuterNames, getParent, getPointsFromLink, getPortCount, getPorts, getSiblingsOfInnerName, getSiblingsOfNode, getSites, getTopLevelRoot, isParentOf
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bigraphs.framework.core.Bigraph
getIncidentLinksOf, getInnerFace, getOuterFace, getSupport, isActive, isActiveAtNode, isActiveAtSite, isDiscrete, isEpimorphic, isGround, isGuarding, isLean, isMonomorphic, isPrime
Methods inherited from interface org.bigraphs.framework.core.EcoreBigraph
getEMetaModelData, isBEdge, isBInnerName, isBLink, isBNode, isBOuterName, isBPlace, isBPoint, isBPort, isBRoot, isBSite, isIndexable, isNameable, isOfEClass
-
Constructor Details
-
PureBigraphRedexAdapter
-
-
Method Details
-
getSignature
Description copied from interface:HasSignature
Get the corresponding signature of the underlying bigraph- Specified by:
getSignature
in interfaceBigraph<DefaultDynamicSignature>
- Specified by:
getSignature
in interfaceEcoreBigraph<DefaultDynamicSignature>
- Specified by:
getSignature
in interfaceHasSignature<DefaultDynamicSignature>
- Overrides:
getSignature
in classBigraphDelegator<DefaultDynamicSignature>
- Returns:
- the signature of the bigraph
-
clearCache
public void clearCache()- Overrides:
clearCache
in classAbstractDynamicMatchAdapter<DefaultDynamicSignature,
PureBigraph>
-
getChildrenWithSites
-
getLinksOfNode
public LinkedList<AbstractDynamicMatchAdapter.ControlLinkPair> getLinksOfNode(BigraphEntity<?> node) Only outer names are returned, edges are not considered for the result. The order plays a role for checking (also in theory)- Specified by:
getLinksOfNode
in classAbstractDynamicMatchAdapter<DefaultDynamicSignature,
PureBigraph> - Parameters:
node
- the node- Returns:
- a list of all links connected to the given node
-
degreeOf
Get the number of all in- and out-going edges of a node within the place graph.
Sites are not included in the count- Overrides:
degreeOf
in classAbstractDynamicMatchAdapter<DefaultDynamicSignature,
PureBigraph> - Parameters:
nodeEntity
- the node- Returns:
- the degree of the node
-