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 Summary
All 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
-
location
protected IVector2 location
The location.
-
quantity
protected int quantity
The visit quantity.
-
seen
protected double seen
The seen value (1=just seen -> 0=never seen).
-
-
Constructor Detail
-
MapPoint
public MapPoint()
Bean constructor required for remote cleaner GUI.
-
MapPoint
public MapPoint(IVector2 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.
-
getLocation
public IVector2 getLocation()
Get the location.- Returns:
- The location.
-
setLocation
public void setLocation(IVector2 location)
Set the location.- Parameters:
location- The location to set.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toStringin classjava.lang.Object- 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.
-
-