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 Summary
All 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.int
getQuantity()
Get the quantity.double
getSeen()
Get the seen.void
setQuantity(int quantity)
Set the quantity.void
setSeen(double seen)
Set the seen.java.lang.String
toString()
Get the string representation.-
Methods inherited from class jadex.bdi.examples.cleanerworld_classic.LocationObject
addPropertyChangeListener, clone, equals, getId, getLocation, hashCode, removePropertyChangeListener, setId, setLocation
-
-
-
-
Constructor Detail
-
MapPoint
public MapPoint()
Bean constructor required for remote cleaner GUI.
-
MapPoint
public MapPoint(Location location, int quantity, double seen)
Create a new map point.
-
-
Method Detail
-
getQuantity
public int getQuantity()
Get the quantity.- Returns:
- The quantity.
-
setQuantity
public void setQuantity(int quantity)
Set the quantity.- Parameters:
quantity
- The quantity.
-
getSeen
public double getSeen()
Get the seen.- Returns:
- The seen.
-
setSeen
public void setSeen(double seen)
Set the seen.- Parameters:
seen
- The seen.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toString
in classLocationObject
- Returns:
- The string representation.
-
getMapPointRaster
public 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.
-
-