Class MapPoint
- java.lang.Object
- 
- jadex.bdi.examples.cleanerworld.cleaner.MapPoint
 
- 
 public class MapPoint extends java.lang.ObjectA 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 IVector2getLocation()Get the location.static MapPoint[]getMapPointRaster(int numx, int numy, double width, double height)Create a map point raster.intgetQuantity()Get the quantity.doublegetSeen()Get the seen.voidsetLocation(IVector2 location)Set the location.voidsetQuantity(int quantity)Set the quantity.voidsetSeen(double seen)Set the seen.java.lang.StringtoString()Get the string representation.
 
- 
- 
- 
Field Detail- 
locationprotected IVector2 location The location.
 - 
quantityprotected int quantity The visit quantity.
 - 
seenprotected double seen The seen value (1=just seen -> 0=never seen).
 
- 
 - 
Constructor Detail- 
MapPointpublic MapPoint() Bean constructor required for remote cleaner GUI.
 - 
MapPointpublic MapPoint(IVector2 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.
 
 - 
getLocationpublic IVector2 getLocation() Get the location.- Returns:
- The location.
 
 - 
setLocationpublic void setLocation(IVector2 location) Set the location.- Parameters:
- location- The location to set.
 
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
- 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.
 
 
- 
 
-