Package eu.su.mas.dedale.env
Enum Class ElementType
- All Implemented Interfaces:
Serializable
,Comparable<ElementType>
,Constable
All the types of objects/elements that can be found in the environment, independently of the instantiation
Not directly known by the end user, only by the environment manager
- Author:
- hc
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDiamond is visible at a distance of 0 and possess an occurrence percentage of 0.01GOld is visible at a distance of 0 and possess an occurrence percentage of 0.1The lock is associated to the treasure characteristicsPath is generated by the human controlled agent, is visible on the case it is released, and has an occurrence that only depends on the agent position and current potential next-destinationStench is generated by the wumpus, is visible on the case it is released, and has an occurrence that only depends on the wumpus position and dispersion radiusA Well is visible at a distance of 1 and possess an occurrence percentage of 0.05The wind is generated by a well, is visible on the case it is released, and has an occurrence that only depends on the well position -
Method Summary
Modifier and TypeMethodDescriptiongetName()
int
getValue()
toString()
static ElementType
Returns the enum constant of this class with the specified name.static ElementType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WELL
A Well is visible at a distance of 1 and possess an occurrence percentage of 0.05 -
GOLD
GOld is visible at a distance of 0 and possess an occurrence percentage of 0.1 -
DIAMOND
Diamond is visible at a distance of 0 and possess an occurrence percentage of 0.01 -
STENCH
Stench is generated by the wumpus, is visible on the case it is released, and has an occurrence that only depends on the wumpus position and dispersion radius -
PATH
Path is generated by the human controlled agent, is visible on the case it is released, and has an occurrence that only depends on the agent position and current potential next-destination -
WIND
The wind is generated by a well, is visible on the case it is released, and has an occurrence that only depends on the well position -
LOCK
The lock is associated to the treasure characteristics -
COMMUNICATION
-
-
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
-
toString
- Overrides:
toString
in classEnum<ElementType>
-
getRadius
public int getRadius()- Returns:
- the influence radius of the given component (0,1,2,..)
-
getName
- Returns:
- the name of the component
-
getOccurrencePercentage
- Returns:
- occurrence percentage of the component on the map between [0,1] (null if not used)
-
getValue
- Returns:
- value of the element (null if not used)
-