edu.pdx.cs399J.net
Class GraphNode
java.lang.Object
edu.pdx.cs399J.net.GraphNode
- All Implemented Interfaces:
- Serializable
public class GraphNode
- extends Object
- implements Serializable
This class is used to demonstrate object serialization support for
referential integrity.
- See Also:
- Serialized Form
|
Method Summary |
void |
addChild(GraphNode child)
Adds a child node to this node |
int |
traverse()
Returns this node's number of unvisited descendents |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphNode
public GraphNode()
addChild
public void addChild(GraphNode child)
- Adds a child node to this node
traverse
public int traverse()
- Returns this node's number of unvisited descendents
Copyright © 2000-2009 Portland State University. All Rights Reserved.