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 RuleFamily
maxRule
protected RuleFamily
minRule
protected java.lang.String
name
-
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()
RuleFamily
getMaxRule()
RuleFamily
getMinRule()
java.lang.String
getName()
void
setMaxRule(RuleFamily maxRule)
void
setMinRule(RuleFamily minRule)
void
setPhases(Grid[] grids)
abstract java.lang.String
toString()
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
-
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:
toString
in 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()
-