Package application.model.patterns
Class Catalyst
java.lang.Object
application.model.simulation.Grid
application.model.simulation.Simulator
application.model.patterns.Pattern
application.model.patterns.Catalyst
public class Catalyst extends Pattern
Represents a catalyst
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
additionalInfo()
boolean
equals(java.lang.Object o)
Check if the inputted grid is equal to this grid (independent of translation)int
hashCode()
Gets the hash of the grid.java.lang.String
toString()
Methods inherited from class application.model.patterns.Pattern
compareString, getMaxRule, getMinRule, getName, setMaxRule, setMinRule, setPhases
Methods inherited from class application.model.simulation.Simulator
clearCells, getCellsChanged, getGeneration, getRule, identify, identify, identify, setCell, setCell, setGeneration, setRule, step, step, toRLE
Methods inherited from class application.model.simulation.Grid
addBlock, bfs, clearCells, convertCell, deepCopy, fromApgcode, fromRLE, getBackground, getBlock, getBlockCoordinate, getBlockCoordinates, getBlocks, getBounds, getCell, getCell, getCells, getPopulation, hashCode, hashCode, hasNext, insertCells, iterateCells, iterateCellsInBlock, iterator, next, reflectCellsX, reflectCellsY, removeBlock, rotateCCW, rotateCW, setBackground, shallowCopy, size, slowEquals, toArray, toRLE, updateBounds
-
Constructor Details
-
Catalyst
Contructs a catalyst- Parameters:
rule
- The rule the catalyst operates inpattern
- The catalyst's patternrepeatTime
- The catalyst's repeat time
-
-
Method Details
-
toString
public java.lang.String toString() -
additionalInfo
public java.util.Map<java.lang.String,java.lang.String> additionalInfo()- Specified by:
additionalInfo
in classPattern
-
equals
public boolean equals(java.lang.Object o)Description copied from class:Grid
Check if the inputted grid is equal to this grid (independent of translation) -
hashCode
public int hashCode()Description copied from class:Grid
Gets the hash of the grid.
-