Enum Class PheromoneType

java.lang.Object
java.lang.Enum<PheromoneType>
com.tnsai.coordination.groups.swarm.PheromoneType
All Implemented Interfaces:
Serializable, Comparable<PheromoneType>, Constable

public enum PheromoneType extends Enum<PheromoneType>
Types of pheromone signals used in swarm communication.

Pheromones are indirect signals that influence swarm member behavior through stigmergy - coordination via environment modification.

  • Enum Constant Details

    • ATTRACTION

      public static final PheromoneType ATTRACTION
      Indicates an interesting or valuable location. Used in exploration and foraging.
    • REPULSION

      public static final PheromoneType REPULSION
      Indicates a dangerous or unproductive location. Agents avoid areas with high repulsion.
    • TRAIL

      public static final PheromoneType TRAIL
      Trail marker for path following. Used in ant-colony optimization.
    • COMPLETION

      public static final PheromoneType COMPLETION
      Indicates a task has been completed here. Prevents redundant work.
    • RECRUITMENT

      public static final PheromoneType RECRUITMENT
      Recruitment signal for help. Attracts agents to assist.
    • WARNING

      public static final PheromoneType WARNING
      Warning signal about problems. Causes cautious approach.
    • QUALITY

      public static final PheromoneType QUALITY
      Quality indicator for solutions. Higher quality = stronger signal.
    • CUSTOM

      public static final PheromoneType CUSTOM
      Custom pheromone for user-defined purposes.
  • Method Details

    • values

      public static PheromoneType[] 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

      public static PheromoneType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getDescription

      public String getDescription()
      Gets pheromone description.
      Returns:
      description
    • getDefaultIntensity

      public double getDefaultIntensity()
      Gets default intensity for this type.
      Returns:
      default intensity