giny.model
Interface Node


public interface Node


Method Summary
 GraphPerspective getGraphPerspective()
          Deprecated. Don't use this method because the behavior of the returned GraphPerspective with respect to changing meta-children of this Node is ill-defined; use RootGraph.getNodeMetaChildIndicesArray(int) and RootGraph.getEdgeMetaChildIndicesArray(int) instead.
 java.lang.String getIdentifier()
           
 RootGraph getRootGraph()
           
 int getRootGraphIndex()
           
 boolean setGraphPerspective(GraphPerspective gp)
          Deprecated. Don't use this method because the behavior of the input GraphPerspective with respect to changing meta-children of this Node is ill-defined; use RootGraph.addNodeMetaChild(int, int) and RootGraph.addEdgeMetaChild(int, int) instead.
 boolean setIdentifier(java.lang.String new_id)
          There is no check to make sure that this is a unique id
 

Method Detail

getGraphPerspective

public GraphPerspective getGraphPerspective()
Deprecated. Don't use this method because the behavior of the returned GraphPerspective with respect to changing meta-children of this Node is ill-defined; use RootGraph.getNodeMetaChildIndicesArray(int) and RootGraph.getEdgeMetaChildIndicesArray(int) instead.

If a Node is a meta-parent of any other nodes and edges, then it contains those nodes and edges in a GraphPerspective. This method returns such a GraphPerspective.

See Also:
RootGraph.getNodeMetaChildIndicesArray(int), RootGraph.getEdgeMetaChildIndicesArray(int)

setGraphPerspective

public boolean setGraphPerspective(GraphPerspective gp)
Deprecated. Don't use this method because the behavior of the input GraphPerspective with respect to changing meta-children of this Node is ill-defined; use RootGraph.addNodeMetaChild(int, int) and RootGraph.addEdgeMetaChild(int, int) instead.

This method adds all Nodes and Edges contained in the specified GraphPerspective as children of this Node. The return value of this method is undefined and should not be used.

See Also:
RootGraph.addNodeMetaChild(int, int), RootGraph.addEdgeMetaChild(int, int)

getRootGraph

public RootGraph getRootGraph()
Returns:
the RootGraph that this Node is in

getRootGraphIndex

public int getRootGraphIndex()
Returns:
the index in the RootGraph of this Node

getIdentifier

public java.lang.String getIdentifier()
Returns:
The Unique Identifier of this node

setIdentifier

public boolean setIdentifier(java.lang.String new_id)
There is no check to make sure that this is a unique id

Parameters:
new_id - The new Identifier for this node