|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--Cell
Abstract class Cell - Defines signatures of a cell
| Constructor Summary | |
Cell()
Cell constructor |
|
Cell(double x,
double y,
double r)
Cell constructor |
|
| Method Summary | |
abstract double |
area()
Calculate the area of the cell |
boolean |
coverage(double x,
double y)
Check whether a point is covered by the cell |
double |
distance(double x,
double y)
Calculate the distance of a point to the cell centre |
double |
getR()
Get radius of the cell |
double |
getX()
Get x coordinate of the cell |
double |
getY()
Get y coordinate of the cell |
String |
toString()
Represent the Cell content information |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Cell()
public Cell(double x,
double y,
double r)
x - Cell X Locationy - Cell Y Locationr - Cell radius| Method Detail |
public abstract double area()
public boolean coverage(double x,
double y)
x - The x point of access coordinatey - The y point of access coordinate
public double distance(double x,
double y)
x - The x point of access coordinatey - The y point of access coordinate
public double getR()
public double getX()
public double getY()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||