GraphNode (Java Globus API)

org.globus.ogce.gui.util.graph
Class GraphNode

java.lang.Object
  |
  +--org.globus.ogce.gui.util.graph.GraphNode

public class GraphNode
extends java.lang.Object

Instances of this class are used in vectors that keep track of interconnections between nodes in the Graph class.

See Also:
org.globus.util.graph.Graph, org.globus.util.graph.GraphEdge

Field Summary
protected  java.lang.String name
          The name of the node.
protected  java.lang.Object object
          The actual abstract node object.
 
Constructor Summary
GraphNode(java.lang.String newName, java.lang.Object newNodeObject)
          This method sets the name and object members upon creation of an instance.
 
Method Summary
 java.lang.String getName()
          This method returns the name of the node.
 java.lang.Object getObject()
          This method returns the object of the node.
 void setName(java.lang.String newName)
          This method sets the name member to the user specified String.
 void setObject(java.lang.Object newObject)
          This method sets the object member to the user specified Object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

object

protected java.lang.Object object
The actual abstract node object.


name

protected java.lang.String name
The name of the node.

Constructor Detail

GraphNode

public GraphNode(java.lang.String newName,
                 java.lang.Object newNodeObject)
This method sets the name and object members upon creation of an instance.

Method Detail

setName

public void setName(java.lang.String newName)
This method sets the name member to the user specified String.


setObject

public void setObject(java.lang.Object newObject)
This method sets the object member to the user specified Object.


getName

public java.lang.String getName()
This method returns the name of the node.

Returns:
a String representing the name of the node.

getObject

public java.lang.Object getObject()
This method returns the object of the node.

Returns:
the node's Object.