Class Bounded
java.lang.Object
application.model.simulation.bounds.BoundedGrid
application.model.simulation.bounds.Bounded
public class Bounded extends BoundedGrid
Implements a bounded grid
-
Field Summary
Fields inherited from class application.model.simulation.bounds.BoundedGrid
height, initialCoordinate, specifier, width -
Constructor Summary
Constructors Constructor Description Bounded()Bounded(java.lang.String specifier, Coordinate initialCoordinate)Constructs a bounded grid -
Method Summary
Modifier and Type Method Description java.lang.Stringcanonise()Canonises the specifier string of the bounded gridjava.lang.Objectclone()java.lang.String[]getRegex()Gets the regex for the identifier string of the bounded gridCoordinatemap(Coordinate coordinate)Maps a coordinate to its new positionvoidparse(java.lang.String string)Parses the identifier string for the bounded gridMethods inherited from class application.model.simulation.bounds.BoundedGrid
atEdge, getHeight, getInitialCoordinate, getSpecifier, getWidth, setInitialCoordinate, setSpecifier
-
Constructor Details
-
Method Details
-
parse
public void parse(java.lang.String string)Parses the identifier string for the bounded grid- Specified by:
parsein classBoundedGrid- Parameters:
string- The string to parse
-
canonise
public java.lang.String canonise()Canonises the specifier string of the bounded grid- Specified by:
canonisein classBoundedGrid- Returns:
- Returns the canonised string
-
getRegex
public java.lang.String[] getRegex()Description copied from class:BoundedGridGets the regex for the identifier string of the bounded grid- Specified by:
getRegexin classBoundedGrid- Returns:
- Returns the regexes for identifying the bounded grid
-
map
Description copied from class:BoundedGridMaps a coordinate to its new position- Specified by:
mapin classBoundedGrid- Parameters:
coordinate- The coordinate to map- Returns:
- Returns the new mapped coordinate
-
clone
public java.lang.Object clone()- Specified by:
clonein classBoundedGrid
-