Package application.model.patterns
Class LinearReplicator
java.lang.Object
application.model.simulation.Grid
application.model.simulation.Simulator
application.model.patterns.Pattern
application.model.patterns.LinearReplicator
public class LinearReplicator extends Pattern
Represents a linear replicator
-
Field Summary
-
Constructor Summary
Constructors Constructor Description LinearReplicator(Rule rule, Grid pattern, java.util.List<java.lang.Integer> replicationRule, int period)
Constructs a linear replicator -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
additionalInfo()
LinearReplicator
checkPopulation(int[] populationList)
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, equals, fromApgcode, fromRLE, getBackground, getBlock, getBlockCoordinate, getBlockCoordinates, getBlocks, getBounds, getCell, getCell, getCells, getPopulation, hashCode, hashCode, hashCode, hasNext, insertCells, iterateCells, iterateCellsInBlock, iterator, next, reflectCellsX, reflectCellsY, removeBlock, rotateCCW, rotateCW, setBackground, shallowCopy, size, slowEquals, toArray, toRLE, updateBounds
-
Constructor Details
-
LinearReplicator
public LinearReplicator(Rule rule, Grid pattern, java.util.List<java.lang.Integer> replicationRule, int period)Constructs a linear replicator- Parameters:
rule
- The rule the replicator works inpattern
- The replicator patternreplicationRule
- The replicator's replication ruleperiod
- The replicator's period
-
-
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
-
checkPopulation
-