Class MapPoint
- java.lang.Object
- 
- jadex.bdi.examples.cleanerworld_classic.LocationObject
- 
- jadex.bdi.examples.cleanerworld_classic.MapPoint
 
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable
 
 public class MapPoint extends LocationObject A map point reflects how often the agent was near to this point.
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MapPoint[]getMapPointRaster(int numx, int numy, double width, double height)Create a map point raster.intgetQuantity()Get the quantity.doublegetSeen()Get the seen.voidsetQuantity(int quantity)Set the quantity.voidsetSeen(double seen)Set the seen.java.lang.StringtoString()Get the string representation.- 
Methods inherited from class jadex.bdi.examples.cleanerworld_classic.LocationObjectaddPropertyChangeListener, clone, equals, getId, getLocation, hashCode, removePropertyChangeListener, setId, setLocation
 
- 
 
- 
- 
- 
Constructor Detail- 
MapPointpublic MapPoint() Bean constructor required for remote cleaner GUI.
 - 
MapPointpublic MapPoint(Location location, int quantity, double seen) Create a new map point.
 
- 
 - 
Method Detail- 
getQuantitypublic int getQuantity() Get the quantity.- Returns:
- The quantity.
 
 - 
setQuantitypublic void setQuantity(int quantity) Set the quantity.- Parameters:
- quantity- The quantity.
 
 - 
getSeenpublic double getSeen() Get the seen.- Returns:
- The seen.
 
 - 
setSeenpublic void setSeen(double seen) Set the seen.- Parameters:
- seen- The seen.
 
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- LocationObject
- Returns:
- The string representation.
 
 - 
getMapPointRasterpublic static MapPoint[] getMapPointRaster(int numx, int numy, double width, double height) Create a map point raster.- Parameters:
- numx- The number of x points.
- numy- The number of y points.
 
 
- 
 
-