Enum Class MazeCell.Vision

java.lang.Object
java.lang.Enum<MazeCell.Vision>
es.ull.mazesolver.maze.MazeCell.Vision
All Implemented Interfaces:
Serializable, Comparable<MazeCell.Vision>, Constable
Enclosing class:
MazeCell

public static enum MazeCell.Vision extends Enum<MazeCell.Vision>
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 Constants
    Enum Constant
    Description
    Este 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 Type
    Method
    Description
    valueOf​(String name)
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

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

    • EMPTY

      public static final MazeCell.Vision EMPTY
      Este estado significa que la celda está vacía y no hay una pared entre las 2 celdas.
    • WALL

      public static final MazeCell.Vision WALL
      Este estado significa que hay una pared entre la posición actual del agente y la celda.
    • AGENT

      public static final MazeCell.Vision AGENT
      Este estado significa que hay un agente sobre esa celda actualmente y no hay nada interponiéndose en medio.
    • OFFLIMITS

      public static final MazeCell.Vision OFFLIMITS
      Este estado significa que la celda referenciada está fuera del laberinto y además no hay una pared en medio.
  • Method Details

    • values

      public static MazeCell.Vision[] 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 MazeCell.Vision 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