previous contents index next
(Statement Part..) Contents Index (..Statement Part..)

3.2.2 Cells (Cell)

As already mentioned, we imagine the cells of a CA to be placed in a finite area of the ZZ^n, we call retina. It has been determined in the declaration part. Like we used to do there, we address a single cell by indicating its position within the space as a n-dimensional vector (coordinate).

Cell - Syntax:

Syntax: Cell

The given coordinate must, of course, be within the retina. In particular, IntExpressionList must consist of n elements of IntExpression.


Example 37:

Looking at a three-dimensional retina specified by RANGE [-5,0,7]..[9,2,-1];, we consider the following examples for cells:
  [-5,0,7]        /* right */
  [-5,0,8]        /* wrong */
  [abs(-7),0,0]   /* right */

previous contents index next
(Statement Part..) Contents Index (..Statement Part..)