Interface IPheromone
- All Superinterfaces:
ILocationObject
- All Known Implementing Classes:
Pheromone
Environment representation of a pheromone.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final double
The evaporation rate determines how quickly a pheromone dissolves (in strength per second). -
Method Summary
-
Field Details
-
EVAPORATION_RATE
static final double EVAPORATION_RATEThe 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 interfaceILocationObject
- Returns:
- The id.
-
getLocation
ILocation getLocation()Get the location of this object.- Specified by:
getLocation
in interfaceILocationObject
- 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.
-