graphics.graph
Class Nodes

java.lang.Object
  extended by 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()
           
 
Method Summary
 graphics.graph.Node[] getFixedNodes()
           
 graphics.graph.Node getNode(int i)
           
 int getNumberOfNodes()
           
 graphics.graph.Node getRandomNode()
           
 void preturbJRelativetoI(int i, graphics.graph.Node n1)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Nodes

public Nodes()
Method Detail

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()