|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objects373.cellularautomata.CAdata
s373.cellularautomata.CA2d
public class CA2d
CA2d 2d cellular automaton class.
Field Summary |
---|
Fields inherited from class s373.cellularautomata.CAdata |
---|
currentGrid, debug, dimx, dimy, dimz, nextGrid, numactive, numbit, numpixels, rules, rulesInt |
Constructor Summary | |
---|---|
CA2d(int dimx)
CA2d 2d cellular automaton class constructor with an int specifies number of int x int cells. |
|
CA2d(int rx,
int ry)
CA2d 2d cellular automaton class constructor with x,y ints specifies grid of this 2d cellular automaton. |
Method Summary | |
---|---|
int |
getCell2D(int locx,
int locy)
get cell val at index. |
int[] |
getData()
get data array |
void |
print()
|
void |
setCell2D(int locx,
int locy,
byte val)
set cell val at index. |
void |
setCenter1()
set center cell 1. |
void |
setData()
|
void |
update()
update the automaton. |
Methods inherited from class s373.cellularautomata.CAdata |
---|
clear, getBinaryRule, getBinaryRuleString, getRule, random, setBinaryRule, setNumBits, setRule, setRules, setRules |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CA2d(int dimx)
dimx
- public CA2d(int rx, int ry)
rx
- ry
- Method Detail |
---|
public void setCell2D(int locx, int locy, byte val)
locx
- locy
- val
- public int getCell2D(int locx, int locy)
locx
- locy
-
public void update()
update
in class CAdata
public int[] getData()
CAdata
getData
in class CAdata
public void setData()
public void setCenter1()
CAdata
setCenter1
in class CAdata
public void print()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |