previous contents index next
(..Acc. Single Reg...) Contents Index (..Acc. Single Reg...)

2.9.2 Accessing Sites by their Position

by
CellDomain.IntRegIdentifier
CellDomain.StringRegIdentifier

is only possible in RDL in order to design an initial configuration. Here, CellDomain represents one (or more) existing coordinate(s) within the range of the retina, while IntRegIdentifier and StringRegIdentifier represent the labels of an integer or string register.
Since it is not necessary to read the initial configuration just created, we only have a writing access in RDL.


 
Example 25:

This example of a retina (comp. to [6]) should represent the snapshot of a 0-sky with 1-snow flurry. Therefore, the random function is used to fill all registers of the two-dimensional retina with corners (0,0) and (5,10) with 1 or 0. The site with coordinate (2,4) should contain a snowflake, at any rate.


RETINA falling_snow;

RANGE [0,0]..[5,10];   /* rectangular retina */

REGISTER INT state;    /* integer register state */

START

   [0,0]..[5,10].state = rand(0,1);   /* rand. 0/1 pattern */
   [2,4].state = 1;                   /* a fixed snowflake */ 

Source Code: snow.rdl


previous contents index next
(..Acc. Single Reg...) Contents Index (..Acc. Single Reg...)