public class DataGrid extends java.util.HashMap<java.lang.Double,java.util.Map<java.lang.Double,Rating>>
Constructor and Description |
---|
DataGrid() |
Modifier and Type | Method and Description |
---|---|
Rating |
getRating(double x,
double y)
Method to get the rating of a specific grid point.
|
boolean |
isPointVisited(double x,
double y)
Method to see if a particular point has been visited.
|
void |
visit(double x,
double y,
Rating r)
Method to add a point to the map of visited points.
|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
public boolean isPointVisited(double x, double y)
x
- The x coordinate.y
- The y coordinate.public void visit(double x, double y, Rating r)
x
- The x coordinate.y
- The y coordinate.r
- The rating of the point.public Rating getRating(double x, double y)
x
- The x coordinate.y
- The y coordinate.