Enum Class Observation

java.lang.Object
java.lang.Enum<Observation>
eu.su.mas.dedale.env.Observation
All Implemented Interfaces:
Serializable, Comparable<Observation>, Constable

public enum Observation extends Enum<Observation> implements Serializable
Known by the user

The type of data the agents can observe from the environment

Author:
hc
  • Enum Constant Details

    • GOLD

      public static final Observation GOLD
      treasure type of the entity
    • DIAMOND

      public static final Observation DIAMOND
      treasure type of the entity
    • ANY_TREASURE

      public static final Observation ANY_TREASURE
      treasure type of the entity
    • NO_TREASURE

      public static final Observation NO_TREASURE
      treasure type of the entity
    • STENCH

      public static final Observation STENCH
      A golem releases its stench in its vicinity
    • WIND

      public static final Observation WIND
      A well generates wind around itself
    • LOCKSTATUS

      public static final Observation LOCKSTATUS
      The status of a treasure lock
    • STRENGH

      public static final Observation STRENGH
      The strength of an agent, part of its expertise
    • LOCKPICKING

      public static final Observation LOCKPICKING
      The lockpicking expertise of an agent, part of its expertise
    • AGENTNAME

      public static final Observation AGENTNAME
      The name of an agent observed in the vicinity
  • Method Details

    • values

      public static Observation[] 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 Observation 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Observation>
    • getName

      public String getName()