|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectNode
public class Node
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 |
|---|
public int n
public int x
public int y
| Constructor Detail |
|---|
public Node(int number,
int xPos,
int yPos)
number - Node numberxPos - Node's X position in the 2D planeyPos - Node's Y position in the 2D plane
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||