Constant Field Values

Contents

org.bigraphs.*

  • org.bigraphs.grgen.converter.RuleTransformer
    Modifier and Type
    Constant Field
    Value
    public final String
    "def ref nodesWithSites:set<Node> = indexMap.domain();\nfor(cur:Node in nodesWithSites) {\n emit(cur, \"->\", indexMap[cur], \" \", countAdjacentIncoming(cur), \"\\n\");\n if(indexMap[cur] == null) {\n emit(\"Remove everything because there is no site mapping for the reactum\", adjacentIncoming(cur), \"\\n\");\n for(x__INTERN:Node in adjacentIncoming(cur)) {\n if(typeof(x__INTERN) != BPort) {\n rem(x__INTERN);\n }\n }\n continue;\n }\n if(cur != indexMap[cur]) {\n emit(\"Site mappings are different! Size of children: \", adjacentIncoming(cur).size(), \"\\n\");\n for(x__INTERN:Node in adjacentIncoming(cur)) {\n if(typeof(x__INTERN) != BPort && !(x__INTERN in allMatchedNodes)) {\n emit(\"\\tchild = \", x__INTERN, \" \", typeof(x__INTERN), \" \", indexMap[cur], \" \", outgoing(x__INTERN), \"\\n\");\n for(y:Edge in outgoing(x__INTERN)) {\n if(typeof(y) == bPrnt) {\n /// Get new parent node: indexMap[cur] and redirect edge, is better than adding and removing edge\n emit(\"\\ty\", y, \" \", typeof(y), \" \", nameof(y), \"\\n\");\n ///redirectTarget(y, indexMap[cur]);\n tasks.add(y, indexMap[cur]);\n ///rem(y);\n }\n }\n ///add(bPrnt, x__INTERN, indexMap[cur]);\n }\n }\n }\n}\ndef ref keyset:set<Edge> = tasks.domain();\nfor(k:Edge in keyset) {\n redirectTarget(k, tasks[k]);\n}\n"
    public final String
    "pattern nac_NodesWithoutSites(src:BNode, var validChildCount: int) {\n negative {\n if { adjacentIncoming(src, bPrnt).size() != validChildCount; }\n }\n}"
  • org.bigraphs.grgen.converter.cli.GrGenTemplateFiles
    Modifier and Type
    Constant Field
    Value
    public static final String
    "include \"%s.grs\"\r\nshow graph ycomp\r\nsave graph \"graph_before.grs\"\r\nexec %s\r\nshow graph ycomp\r\nsave graph \"graph_after.grs\""