Enum Class PheromoneType
- All Implemented Interfaces:
Serializable,Comparable<PheromoneType>,Constable
Types of pheromone signals used in swarm communication.
Pheromones are indirect signals that influence swarm member behavior through stigmergy - coordination via environment modification.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates an interesting or valuable location.Indicates a task has been completed here.Custom pheromone for user-defined purposes.Quality indicator for solutions.Recruitment signal for help.Indicates a dangerous or unproductive location.Trail marker for path following.Warning signal about problems. -
Method Summary
Modifier and TypeMethodDescriptiondoubleGets default intensity for this type.Gets pheromone description.static PheromoneTypeReturns the enum constant of this class with the specified name.static PheromoneType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ATTRACTION
Indicates an interesting or valuable location. Used in exploration and foraging. -
REPULSION
Indicates a dangerous or unproductive location. Agents avoid areas with high repulsion. -
TRAIL
Trail marker for path following. Used in ant-colony optimization. -
COMPLETION
Indicates a task has been completed here. Prevents redundant work. -
RECRUITMENT
Recruitment signal for help. Attracts agents to assist. -
WARNING
Warning signal about problems. Causes cautious approach. -
QUALITY
Quality indicator for solutions. Higher quality = stronger signal. -
CUSTOM
Custom pheromone for user-defined purposes.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getDescription
Gets pheromone description.- Returns:
- description
-
getDefaultIntensity
public double getDefaultIntensity()Gets default intensity for this type.- Returns:
- default intensity
-