graphics.graph
Class Nodes
java.lang.Object
graphics.graph.Nodes
public class Nodes
- extends java.lang.Object
The responsibility of this class is to maintain
a collection of all of the nodes and be able to
return any particular node or collection of nodes
upon request,
This class has been modified to store the nodes in
the Vector nodeVector rather than the array nodes[].
Constructor Summary |
Nodes()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Nodes
public Nodes()
getRandomNode
public graphics.graph.Node getRandomNode()
getNode
public graphics.graph.Node getNode(int i)
getNumberOfNodes
public int getNumberOfNodes()
preturbJRelativetoI
public void preturbJRelativetoI(int i,
graphics.graph.Node n1)
getFixedNodes
public graphics.graph.Node[] getFixedNodes()