|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objects373.cellularautomata.CAdata
s373.cellularautomata.CA1d
public class CA1d
CA1d 1d 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 | |
---|---|
CA1d(int dimx)
CA1d 1d cellular automaton class constructor with an int specifies number of cells. |
Method Summary | |
---|---|
int |
getCell1D(int locx)
get cell val at index. |
int[] |
getData()
get data array |
void |
print()
|
void |
setCell1D(int locx,
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 CA1d(int dimx)
dimx
- Method Detail |
---|
public void setCell1D(int locx, byte val)
locx
- val
- public int getCell1D(int locx)
locx
-
public void setCenter1()
setCenter1
in class CAdata
public void update()
update
in class CAdata
public int[] getData()
CAdata
getData
in class CAdata
public void setData()
public void print()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |