Jadex 0.96

jadex.examples.cleanerworld.multi
Class MapPoint

java.lang.Object
  extended by jadex.examples.cleanerworld.multi.LocationObjectData
      extended by jadex.examples.cleanerworld.multi.LocationObject
          extended by jadex.examples.cleanerworld.multi.MapPoint
All Implemented Interfaces:
Serializable, Cloneable, nuggets.INugget

public class MapPoint
extends LocationObject

A map point reflects how often the agent was near to this point.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface nuggets.INugget
nuggets.INugget.Helper
 
Constructor Summary
MapPoint(Location location, int quantity, double seen)
          Create a new map point.
 
Method Summary
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.
 String toString()
          Get the string representation.
 
Methods inherited from class jadex.examples.cleanerworld.multi.LocationObject
clone, equals, hashCode
 
Methods inherited from class jadex.examples.cleanerworld.multi.LocationObjectData
_persist, _set, getId, getLocation, setId, setLocation
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 String toString()
Get the string representation.

Overrides:
toString in class LocationObjectData
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.

Jadex 0.96

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.