org.caida.otter
Class Coordinate

java.lang.Object
  |
  +--org.caida.otter.Coordinate
Direct Known Subclasses:
Label, Node

public class Coordinate
extends java.lang.Object

Base class for a lot of display type thingys


Field Summary
 java.lang.String colName
           
 int colNum
           
 int index
           
 boolean isSetColRow
           
 boolean isSetXY
           
 java.lang.String name
           
 int nodeNumber
           
 int rowNum
           
 int x
           
 int y
           
 
Constructor Summary
Coordinate(int index)
          Create a new coordinate
Coordinate(int index, int col, int row)
          Create a new coordinate
Coordinate(int index, int col, int row, java.lang.String name)
          Create a new coordinate
Coordinate(int index, int col, int row, java.lang.String name, java.lang.String colName)
          Create a new coordinate
Coordinate(int index, int col, int row, java.lang.String name, java.lang.String colName, int nodeNumber)
          Keep track of the orignal node number from the LibSea Graph file.
 
Method Summary
 void debug()
           
 boolean equals(java.lang.Object otherObj)
          override default equals to do name equivalance if both args are Coordinates.
 int getColNum()
          Get the column number
 java.lang.String getColumnName()
          get column name
 java.lang.String getName()
          Get the coordinate name
 int getRowNum()
          Get the row number
 void setColumnName(java.lang.String colName)
          set column name
 void setColumnNum(int colNum)
          set column number
 void setName(java.lang.String name)
          Set the node name
 void setRowNum(int rowNum)
          set the row number
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name

isSetXY

public boolean isSetXY

x

public int x

y

public int y

isSetColRow

public boolean isSetColRow

colNum

public int colNum

rowNum

public int rowNum

colName

public java.lang.String colName

index

public int index

nodeNumber

public int nodeNumber
Constructor Detail

Coordinate

public Coordinate(int index)
Create a new coordinate

Coordinate

public Coordinate(int index,
                  int col,
                  int row)
Create a new coordinate

Coordinate

public Coordinate(int index,
                  int col,
                  int row,
                  java.lang.String name)
Create a new coordinate

Coordinate

public Coordinate(int index,
                  int col,
                  int row,
                  java.lang.String name,
                  java.lang.String colName)
Create a new coordinate

Coordinate

public Coordinate(int index,
                  int col,
                  int row,
                  java.lang.String name,
                  java.lang.String colName,
                  int nodeNumber)
Keep track of the orignal node number from the LibSea Graph file. John Tusson Tue Aug 14 16:23:29 PDT 2001
Method Detail

setColumnName

public void setColumnName(java.lang.String colName)
set column name

getColumnName

public java.lang.String getColumnName()
get column name

setColumnNum

public void setColumnNum(int colNum)
set column number

setRowNum

public void setRowNum(int rowNum)
set the row number

getColNum

public int getColNum()
Get the column number

getRowNum

public int getRowNum()
Get the row number

getName

public java.lang.String getName()
Get the coordinate name

setName

public void setName(java.lang.String name)
Set the node name

equals

public boolean equals(java.lang.Object otherObj)
override default equals to do name equivalance if both args are Coordinates.
Overrides:
equals in class java.lang.Object

debug

public void debug()