Class PureBigraphRedexAdapter
java.lang.Object
org.bigraphs.framework.core.BigraphDelegator<DynamicSignature>
org.bigraphs.framework.simulation.matching.AbstractDynamicMatchAdapter<DynamicSignature,PureBigraph>
org.bigraphs.framework.simulation.matching.pure.PureBigraphRedexAdapter
- All Implemented Interfaces:
Bigraph<DynamicSignature>,EcoreBigraph<DynamicSignature>,EcoreBigraphExt,HasSignature<DynamicSignature>
public class PureBigraphRedexAdapter
extends AbstractDynamicMatchAdapter<DynamicSignature,PureBigraph>
- Author:
- Dominik Grzelak
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bigraphs.framework.simulation.matching.AbstractDynamicMatchAdapter
AbstractDynamicMatchAdapter.ControlLinkPairNested 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
throwableSupplierFields inherited from class org.bigraphs.framework.core.BigraphDelegator
bigraphDelegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintdegreeOf(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, neighborhoodHookMethods 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, isParentOfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bigraphs.framework.core.Bigraph
getIncidentLinksOf, getInnerFace, getOuterFace, getSupport, isActive, isActiveAtNode, isActiveAtSite, isDiscrete, isEpimorphic, isGround, isGuarding, isLean, isMonomorphic, isPrimeMethods 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:HasSignatureGet the corresponding signature of the underlying bigraph- Specified by:
getSignaturein interfaceBigraph<DynamicSignature>- Specified by:
getSignaturein interfaceEcoreBigraph<DynamicSignature>- Specified by:
getSignaturein interfaceHasSignature<DynamicSignature>- Overrides:
getSignaturein classBigraphDelegator<DynamicSignature>- Returns:
- the signature of the bigraph
-
clearCache
public void clearCache()- Overrides:
clearCachein classAbstractDynamicMatchAdapter<DynamicSignature,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:
getLinksOfNodein classAbstractDynamicMatchAdapter<DynamicSignature,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:
degreeOfin classAbstractDynamicMatchAdapter<DynamicSignature,PureBigraph> - Parameters:
nodeEntity- the node- Returns:
- the degree of the node
-