Interface IPheromone
-
- All Superinterfaces:
ILocationObject
public interface IPheromone extends ILocationObject
Environment representation of a pheromone.
-
-
Field Summary
Fields Modifier and Type Field Description static double
EVAPORATION_RATE
The evaporation rate determines how quickly a pheromone dissolves (in strength per second).
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getId()
Get the id (or name) of this object.ILocation
getLocation()
Get the location of this object.double
getStrength()
Get the strength of the pheromone (0..1).java.lang.String
getType()
Get the type of the pheromone.
-
-
-
Field Detail
-
EVAPORATION_RATE
static final double EVAPORATION_RATE
The evaporation rate determines how quickly a pheromone dissolves (in strength per second).- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
java.lang.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
java.lang.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.
-
-