Class MapPoint


  • public class MapPoint
    extends java.lang.Object
    A map point reflects how often the agent was near to this point.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IVector2 location
      The location.
      protected int quantity
      The visit quantity.
      protected double seen
      The seen value (1=just seen -> 0=never seen).
    • Constructor Summary

      Constructors 
      Constructor Description
      MapPoint()
      Bean constructor required for remote cleaner GUI.
      MapPoint​(IVector2 location, int quantity, double seen)
      Create a new map point.
    • 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:
        toString in class java.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.