-
Nested Class Summary
Nested Classes
-
-
Constructor Summary
Constructors
-
Method Summary
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
Returns the
Registry
which is linked with this instance.
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.
-
-
Constructor Details
-
GraphObjectRef
public GraphObjectRef(String name)
-
GraphObjectRef
public GraphObjectRef()
-
Method Details
-
-
-
getRootNode
public Node getRootNode()
Return the root node of the subgraph, i.e. the root of the object loaded
- Specified by:
getRootNode
in interface GraphObject
- Returns:
- a Node
-
setRootNode
public void setRootNode(Node root)
Set the rootnode of a Subgraph object.
- Specified by:
setRootNode
in interface GraphObject
-
-
write
public void write()
Override the file subgraph in the project with its current version.
Required on subgraph created in RGG to be saved
- Specified by:
write
in interface GraphObject
-
reload
public void reload()
If the subgraph uses some modules defined in the project, reload forces
the modules in the subgraph to be relinked after compilation
- Specified by:
reload
in interface GraphObject
-
describes
Gives an array of node types and number contained in the subgraph
- Specified by:
describes
in interface GraphObject
- Returns:
-
getGraph
Return the graph manager of the subgraph. It is different from the graph manager
of the project & workbench.
- Specified by:
getGraph
in interface GraphObject
- Returns:
-
getNode
Return a node of the given name
- Specified by:
getNode
in interface GraphObject
- Parameters:
key
- : the name of the type of node
-
getRegistry
Returns the
Registry
which is linked with this instance.
- Specified by:
getRegistry
in interface RegistryContext
- Returns:
- the registry linked with this instance