![]() |
![]() |
![]() |
![]() |
(..Declaration Part) | Contents | Index | (..Statement Part..) |
Before looking at the statement part, let us have a quick review on what we
have already achieved by the
declaration part.
We are now able to localize the CA in an Euclidean space of arbitrary
dimension, more concretely, we can - in a unique way - identify every cell of
its retina with a coordinate of the space.
Furthermore we have
already decided in favour of a general
structure of the state set. But we
have not mentioned yet, in which state each cell should be before running the
simulation. This is the main purpose of the statement part of a RDL program!
Just as variables (and
symbolic constants)
SCARLET initializes the
cells of the retina, too: integer
registers get
the value 0 and string
registers are filled with the empty string "". To say it in other
words,
we need not worry about possibly undefined states, for SCARLET
automatically puts the retina
together with an initial configuration to our
disposal. But it would, of course, be very boring to watch its evolution
in time because of its great homogeneity! What else could, therefore, be our
task than changing the contents of -
at least a few - cells?!
But before learning something about how to assign new values, we are going to see in how far it is possible to deal with sets of cells, and how to characterize both cells and sets of cells in a syntactically right way:
![]() |
![]() |
![]() |
![]() |
(..Declaration Part) | Contents | Index | (..Statement Part..) |