artificial life

Chapter 3: Cellular Automata

3.6 One Dimensional CA Applet

A Java Applet that implements a set of One Dimensional Cellular Automata is created as part of this project.



The Cellular Automata created in the applet have a neighborhood of 3 cells and each cell has 2 possible states. There are several components that the user can manipulate to change the output of the main image pane.

Draw button: User clicks this to draw or redraw a CA.

Zoom: The user can manipulate the size of the pixels with this box, larger numbers result in larger pixels.

Scroll checkbox: If this is not checked then the CA stops when it hits the bottom of the image pane, otherwise the applet continues to calculate the CA by drawing over the top of the CA.

Init type: Allows the user to determine how the CA is initiated. ‘Seed’ initiates the CA with a single ‘on’ cell at the center of the vector.

“Random” randomly initiates the entire vector.

Rules checkboxes: These boxes determine the rule set for the CA. A check indicates that cells with the same neighborhood as the boxes above the checkbox are ‘on’ in the next generation.



Source Code for One Dimensional Cellular Automata Applet:

OneDCA.java