Interface GraphObject

All Superinterfaces:
RegistryContext
All Known Subinterfaces:
SubGraph
All Known Implementing Classes:
GraphObjectImpl, GraphObjectRef, SubGraphImpl, SubGraphRef

public interface GraphObject extends RegistryContext
  • Method Summary

    Modifier and Type
    Method
    Description
    clone the graph of the rootnode and returns it
    Gives an array of node types and number contained in the subgraph
    Return the graph manager of the subgraph.
    Return a node of the given name
    Return the root node of the subgraph, i.e. the root of the object loaded
    void
    If the subgraph uses some modules defined in the project, reload forces the modules in the subgraph to be relinked after compilation
    void
    Set the rootnode of a Subgraph object.
    void
    Override the file subgraph in the project with its current version.

    Methods inherited from interface de.grogra.pf.registry.RegistryContext

    getRegistry
  • Method Details

    • getRootNode

      Node getRootNode()
      Return the root node of the subgraph, i.e. the root of the object loaded
      Returns:
      a Node
    • setRootNode

      void setRootNode(Node root)
      Set the rootnode of a Subgraph object.
      Parameters:
      root -
    • cloneGraph

      Node cloneGraph() throws CloneNotSupportedException
      clone the graph of the rootnode and returns it
      Returns:
      Throws:
      CloneNotSupportedException
    • write

      void write()
      Override the file subgraph in the project with its current version. Required on subgraph created in RGG to be saved
    • reload

      void reload()
      If the subgraph uses some modules defined in the project, reload forces the modules in the subgraph to be relinked after compilation
    • describes

      Object describes()
      Gives an array of node types and number contained in the subgraph
      Returns:
    • getGraph

      GraphManager getGraph()
      Return the graph manager of the subgraph. It is different from the graph manager of the project & workbench.
      Returns:
    • getNode

      Node getNode(String key)
      Return a node of the given name
      Parameters:
      key - : the name of the type of node