Class Knot

java.lang.Object
  |
  +--Knot

public class Knot
extends java.lang.Object

Class for representing knots in graphs. A knot is defined by its unique id. There are for integer values associated with each knot: Its x- and y-coordinate and two arbitrary values to be visualized.

Author:
Stefan Daschek

Field Summary
 int id
          Id of the knot.
 int val1
          First value associated with knot.
 int val2
          Second value associated with knot.
 int x
          X-Coordinate of the knot.
 int y
          Y-Coordinate of the knot.
 
Constructor Summary
Knot(int id, int x, int y, int val1, int val2)
          Default constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public int id
Id of the knot.


x

public int x
X-Coordinate of the knot.


y

public int y
Y-Coordinate of the knot.


val1

public int val1
First value associated with knot.


val2

public int val2
Second value associated with knot.

Constructor Detail

Knot

public Knot(int id,
            int x,
            int y,
            int val1,
            int val2)
Default constructor.

Parameters:
id - id of the knot
x - x-coordinate of the knot
y - y-coordinate of the knot
val1 - first value associated with knot
val2 - second value associated with knot