uwcse.sim
Class SmartFish.CellData

java.lang.Object
  |
  +--uwcse.sim.SmartFish.CellData
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
SmartFish

class SmartFish.CellData
extends java.lang.Object
implements java.lang.Comparable

This class is used to represent data about neighboring cells.


Field Summary
(package private)  int count
          Represent the relative location of the cell, and its contents.
(package private)  int dx
          Represent the relative location of the cell, and its contents.
(package private)  int dy
          Represent the relative location of the cell, and its contents.
 
Constructor Summary
(package private) SmartFish.CellData(int dx, int dy, int count)
          Create a new data item.
 
Method Summary
 int compareTo(java.lang.Object o)
          Compare this cell to another cell.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dx

int dx
Represent the relative location of the cell, and its contents.

dy

int dy
Represent the relative location of the cell, and its contents.

count

int count
Represent the relative location of the cell, and its contents.
Constructor Detail

SmartFish.CellData

SmartFish.CellData(int dx,
                   int dy,
                   int count)
Create a new data item.
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Compare this cell to another cell.
Specified by:
compareTo in interface java.lang.Comparable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object