Package application.model.patterns
Class Pattern
java.lang.Object
application.model.simulation.Grid
application.model.simulation.Simulator
application.model.patterns.Pattern
- Direct Known Subclasses:
Catalyst,LinearGrowth,LinearReplicator,Oscillator,PowerLawPattern,Spaceship
public abstract class Pattern extends Simulator
-
Field Summary
Fields Modifier and Type Field Description protected RuleFamilymaxRuleprotected RuleFamilyminRuleprotected java.lang.Stringname -
Constructor Summary
-
Method Summary
Modifier and Type Method Description abstract java.util.Map<java.lang.String,java.lang.String>additionalInfo()java.util.Comparator<java.lang.String>compareString()RuleFamilygetMaxRule()RuleFamilygetMinRule()java.lang.StringgetName()voidsetMaxRule(RuleFamily maxRule)voidsetMinRule(RuleFamily minRule)voidsetPhases(Grid[] grids)abstract java.lang.StringtoString()Methods 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, 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
-
Field Details
-
Constructor Details
-
Method Details
-
getMinRule
-
getMaxRule
-
getName
public java.lang.String getName() -
setMinRule
-
setMaxRule
-
setPhases
-
toString
public abstract java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
additionalInfo
public abstract java.util.Map<java.lang.String,java.lang.String> additionalInfo() -
compareString
public java.util.Comparator<java.lang.String> compareString()
-