public class BasicUniverse extends BasicML implements Universe, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELEMENT_COUNT |
| Constructor and Description |
|---|
BasicUniverse(int height,
int width,
UniverseCellFactory theCellFactory) |
| Modifier and Type | Method and Description |
|---|---|
double |
calculatePercentInvalid() |
java.lang.Object |
clone() |
double |
compare(Universe otherWorld) |
void |
copy(Universe source) |
UniverseCell |
get(int row,
int col) |
UniverseCellFactory |
getCellFactory() |
int |
getColumns() |
int |
getRows() |
boolean |
isValid(int row,
int col) |
void |
randomize() |
void |
updateProperties()
Update any objeccts when a property changes.
|
getProperties, getPropertyDouble, getPropertyLong, getPropertyString, setProperty, setProperty, setPropertypublic static final java.lang.String ELEMENT_COUNT
public BasicUniverse(int height,
int width,
UniverseCellFactory theCellFactory)
public java.lang.Object clone()
public int getColumns()
getColumns in interface Universepublic UniverseCell get(int row, int col)
public UniverseCellFactory getCellFactory()
getCellFactory in interface Universepublic void updateProperties()
MLPropertiesupdateProperties in interface MLPropertiesupdateProperties in class BasicMLpublic double calculatePercentInvalid()
calculatePercentInvalid in interface Universe