|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nak.cleaning.map.FieldMap
public class FieldMap
Field map class
| Field Summary | |
|---|---|
static int |
_CHARGE_STATION_
|
static int |
_CLEANER_ROBOT_
|
static int |
_DEPTH_
|
static int |
_EMPTY_
|
static int |
_HEAVY_WAIGHT_DUST_
|
static int |
_LIGHT_WAIGHT_DUST_
|
static int |
_MIDDLE_WAIGHT_DUST_
|
static int |
_WIDTH_
|
java.awt.Point |
initRobotPoint
|
java.util.HashMap<java.awt.Point,Element> |
map
|
Obstacle |
obstacle
|
| Constructor Summary | |
|---|---|
FieldMap()
The constructor. |
|
| Method Summary | |
|---|---|
boolean |
existsDust(java.awt.Point p)
Checks whether a dust item is located at the specified point. |
Appearance |
getAppearance(java.awt.Point p)
Gets appearance of the object located at the point p. |
static FieldMap |
getFieldMap()
|
java.util.HashMap<java.awt.Point,Element> |
getHashMap()
Returns map data representing as (Concurrent)HashMap |
boolean |
isContainedInMap(java.awt.Point p)
Checks whether the specified point is in the map. |
boolean |
isFinished()
Returns whether dust items remain in the map. |
boolean |
isLocated(java.awt.Point p,
java.lang.String className)
Checks whether the specified object exists at the specified point. |
Element |
pickUp(java.awt.Point p)
Returns the result of picking up at the point p. |
Element |
sweep(java.awt.Point p)
Returns the result of sweeping at the point p. |
Element |
wipe(java.awt.Point p)
Returns the result of wiping at the point p. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int _WIDTH_
public static int _DEPTH_
public static final int _EMPTY_
public static final int _LIGHT_WAIGHT_DUST_
public static final int _MIDDLE_WAIGHT_DUST_
public static final int _HEAVY_WAIGHT_DUST_
public static final int _CHARGE_STATION_
public static final int _CLEANER_ROBOT_
public Obstacle obstacle
public java.awt.Point initRobotPoint
public java.util.HashMap<java.awt.Point,Element> map
| Constructor Detail |
|---|
public FieldMap()
| Method Detail |
|---|
public static FieldMap getFieldMap()
public java.util.HashMap<java.awt.Point,Element> getHashMap()
public boolean isLocated(java.awt.Point p,
java.lang.String className)
p - PointclassName - Class name of the specified object
public boolean isFinished()
public boolean isContainedInMap(java.awt.Point p)
p - Point
public boolean existsDust(java.awt.Point p)
p - Point
public Appearance getAppearance(java.awt.Point p)
public Element sweep(java.awt.Point p)
public Element pickUp(java.awt.Point p)
public Element wipe(java.awt.Point p)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||