Interface IPheromone

All Superinterfaces:
ILocationObject
All Known Implementing Classes:
Pheromone

public interface IPheromone extends ILocationObject
Environment representation of a pheromone.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final double
    The evaporation rate determines how quickly a pheromone dissolves (in strength per second).
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the id (or name) of this object.
    Get the location of this object.
    double
    Get the strength of the pheromone (0..1).
    Get the type of the pheromone.
  • Field Details

    • EVAPORATION_RATE

      static final double EVAPORATION_RATE
      The evaporation rate determines how quickly a pheromone dissolves (in strength per second).
      See Also:
  • Method Details

    • getId

      String getId()
      Get the id (or name) of this object.
      Specified by:
      getId in interface ILocationObject
      Returns:
      The id.
    • getLocation

      ILocation getLocation()
      Get the location of this object.
      Specified by:
      getLocation in interface ILocationObject
      Returns:
      The location of the object.
    • getType

      String getType()
      Get the type of the pheromone.
      Returns:
      The pheromone type as string.
    • getStrength

      double getStrength()
      Get the strength of the pheromone (0..1).
      Returns:
      The current strength of the pheromone.