Class Bounded

java.lang.Object
application.model.simulation.bounds.BoundedGrid
application.model.simulation.bounds.Bounded

public class Bounded
extends BoundedGrid
Implements a bounded grid
  • Constructor Details

    • Bounded

      public Bounded()
    • Bounded

      public Bounded​(java.lang.String specifier, Coordinate initialCoordinate)
      Constructs a bounded grid
      Parameters:
      specifier - The specifier for the bounded grid
      initialCoordinate - The initial coordinate for the bounded grid
  • Method Details

    • parse

      public void parse​(java.lang.String string)
      Parses the identifier string for the bounded grid
      Specified by:
      parse in class BoundedGrid
      Parameters:
      string - The string to parse
    • canonise

      public java.lang.String canonise()
      Canonises the specifier string of the bounded grid
      Specified by:
      canonise in class BoundedGrid
      Returns:
      Returns the canonised string
    • getRegex

      public java.lang.String[] getRegex()
      Description copied from class: BoundedGrid
      Gets the regex for the identifier string of the bounded grid
      Specified by:
      getRegex in class BoundedGrid
      Returns:
      Returns the regexes for identifying the bounded grid
    • map

      public Coordinate map​(Coordinate coordinate)
      Description copied from class: BoundedGrid
      Maps a coordinate to its new position
      Specified by:
      map in class BoundedGrid
      Parameters:
      coordinate - The coordinate to map
      Returns:
      Returns the new mapped coordinate
    • clone

      public java.lang.Object clone()
      Specified by:
      clone in class BoundedGrid