java.lang.Object
jadex.quickstart.cleanerworld.environment.impl.LocationObject
jadex.quickstart.cleanerworld.environment.impl.Pheromone
All Implemented Interfaces:
ILocationObject, IPheromone, Cloneable

public class Pheromone extends LocationObject implements IPheromone
Environment representation of a pheromone.
  • Constructor Details

    • Pheromone

      public Pheromone()
      Create a new pheromone.
    • Pheromone

      public Pheromone(Location location, String type)
      Create a new pheromone.
      Parameters:
      location - The location.
  • Method Details

    • toString

      public String toString()
      Get a string representation of this object.
      Overrides:
      toString in class Object
      Returns:
      The string representation.
    • clone

      public Pheromone clone()
      Copy the object.
      Overrides:
      clone in class LocationObject
    • getType

      public String getType()
      Get the type of the pheromone.
      Specified by:
      getType in interface IPheromone
      Returns:
      The pheromone type as string.
    • setType

      public void setType(String type)
      Set the type of the pheromone.
    • getStrength

      public double getStrength()
      Get the strength of the pheromone (0..1).
      Specified by:
      getStrength in interface IPheromone
      Returns:
      The current strength of the pheromone.