Package eu.su.mas.dedale.env
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
-
Enum Constant Summary
Enum Constants Enum Constant Description AGENTNAME
The name of an agent observed in the vicinityANY_TREASURE
treasure type of the entityDIAMOND
treasure type of the entityGOLD
treasure type of the entityLOCKPICKING
The lockpicking expertise of an agent, part of its expertiseLOCKSTATUS
The status of a treasure lockNO_TREASURE
treasure type of the entitySTENCH
A golem releases its stench in its vicinitySTRENGH
The strength of an agent, part of its expertiseWIND
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.
-
Enum Constant Details
-
GOLD
treasure type of the entity -
DIAMOND
treasure type of the entity -
ANY_TREASURE
treasure type of the entity -
NO_TREASURE
treasure type of the entity -
STENCH
A golem releases its stench in its vicinity -
WIND
A well generates wind around itself -
LOCKSTATUS
The status of a treasure lock -
STRENGH
The strength of an agent, part of its expertise -
LOCKPICKING
The lockpicking expertise of an agent, part of its expertise -
AGENTNAME
The name of an agent observed in the vicinity
-
-
Method Details
-
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
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 namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Enum<Observation>
-
getName
public java.lang.String getName()
-