Package es.ull.mazesolver.maze
Enum Class MazeCell.Vision
- All Implemented Interfaces:
Serializable
,Comparable<MazeCell.Vision>
,Constable
- Enclosing class:
- MazeCell
Enumeración de los diferentes estados que puede tener una celda de cara a
un agente cualquiera.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEste estado significa que hay un agente sobre esa celda actualmente y no hay nada interponiéndose en medio.Este estado significa que la celda está vacía y no hay una pared entre las 2 celdas.Este estado significa que la celda referenciada está fuera del laberinto y además no hay una pared en medio.Este estado significa que hay una pared entre la posición actual del agente y la celda. -
Method Summary
Modifier and TypeMethodDescriptionstatic MazeCell.Vision
Returns the enum constant of this class with the specified name.static MazeCell.Vision[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EMPTY
Este estado significa que la celda está vacía y no hay una pared entre las 2 celdas. -
WALL
Este estado significa que hay una pared entre la posición actual del agente y la celda. -
AGENT
Este estado significa que hay un agente sobre esa celda actualmente y no hay nada interponiéndose en medio. -
OFFLIMITS
Este estado significa que la celda referenciada está fuera del laberinto y además no hay una pared en medio.
-
-
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
-