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()booleanequals(java.lang.Object o)Check if the inputted grid is equal to this grid (independent of translation)inthashCode()Gets the hash of the grid.java.lang.StringtoString()Methods inherited from class application.model.patterns.Pattern
compareString, getMaxRule, getMinRule, getName, setMaxRule, setMinRule, setPhasesMethods inherited from class application.model.simulation.Simulator
clearCells, getCellsChanged, getGeneration, getRule, identify, identify, identify, setCell, setCell, setGeneration, setRule, step, step, toRLEMethods 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:
additionalInfoin classPattern
-
equals
public boolean equals(java.lang.Object o)Description copied from class:GridCheck if the inputted grid is equal to this grid (independent of translation) -
hashCode
public int hashCode()Description copied from class:GridGets the hash of the grid.
-