Class Pheromone
java.lang.Object
jadex.quickstart.cleanerworld.environment.impl.LocationObject
jadex.quickstart.cleanerworld.environment.impl.Pheromone
- All Implemented Interfaces:
ILocationObject
,IPheromone
,Cloneable
Environment representation of a pheromone.
-
Field Summary
Fields inherited from class jadex.quickstart.cleanerworld.environment.impl.LocationObject
pcs
Fields inherited from interface jadex.quickstart.cleanerworld.environment.IPheromone
EVAPORATION_RATE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jadex.quickstart.cleanerworld.environment.impl.LocationObject
addPropertyChangeListener, equals, getId, getLocation, getPropertyChangeHandler, hashCode, removePropertyChangeListener, setId, setLocation, update
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface jadex.quickstart.cleanerworld.environment.IPheromone
getId, getLocation
-
Constructor Details
-
Pheromone
public Pheromone()Create a new pheromone. -
Pheromone
Create a new pheromone.- Parameters:
location
- The location.
-
-
Method Details
-
toString
Get a string representation of this object. -
clone
Copy the object.- Overrides:
clone
in classLocationObject
-
getType
Get the type of the pheromone.- Specified by:
getType
in interfaceIPheromone
- Returns:
- The pheromone type as string.
-
setType
Set the type of the pheromone. -
getStrength
public double getStrength()Get the strength of the pheromone (0..1).- Specified by:
getStrength
in interfaceIPheromone
- Returns:
- The current strength of the pheromone.
-