Class Node

java.lang.Object
  extended by Node

public class Node
extends java.lang.Object

Node represents a node in a TSP problem. A node has an (x,y) coordinate and a number.


Field Summary
 int n
           
 int x
           
 int y
           
 
Constructor Summary
Node(int number, int xPos, int yPos)
          Constructs Node.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

n

public int n

x

public int x

y

public int y
Constructor Detail

Node

public Node(int number,
            int xPos,
            int yPos)
Constructs Node.

Parameters:
number - Node number
xPos - Node's X position in the 2D plane
yPos - Node's Y position in the 2D plane