Enum Observation

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

public enum Observation
extends java.lang.Enum<Observation>
implements java.io.Serializable
Known by the user

The type of data the agents can observe from the environment

Author:
hc
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    AGENTNAME
    The name of an agent observed in the vicinity
    ANY_TREASURE
    treasure type of the entity
    DIAMOND
    treasure type of the entity
    GOLD
    treasure type of the entity
    LOCKPICKING
    The lockpicking expertise of an agent, part of its expertise
    LOCKSTATUS
    The status of a treasure lock
    NO_TREASURE
    treasure type of the entity
    STENCH
    A golem releases its stench in its vicinity
    STRENGH
    The strength of an agent, part of its expertise
    WIND
    A well generates wind around itself
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getName()  
    java.lang.String toString()  
    static Observation valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static Observation[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Method Details

    • values

      public static Observation[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Observation valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • toString

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

      public java.lang.String getName()