The structure of the ANIMAT2 Agent is described in the scilab file zcs2-animat 16.3. The main structure is a list called ANIMAT which contains alle elements which are actually associated with the AGENT structure:
With regard to the theoretical formula we have to apply the following mapping:
Thus the different parameters of the ANIMAT2-structure are different properties of the internal states (ISTATES). The 'meaning' of these different parameters can be described as follows:
While
we have to map
Additionally one could include the parameter PERCEPTION. This is until now only handled as an input parameter to the behavior function which rules the behavior of the ANIMAT agent. There is not yet a clearly defined ANIMAT agent behavior function distinguished from all the other functions. The managing function lifeR2() is a collection of functions where a subset rules the agent as such and the others rule the behavior of the environment4.3
[ANIMAT, HISTORY, GRID, FOOD]=
liveR2(ANIMAT, X, Y, GRID, RUNS, SHOW, MATCHSET, ACTIONSET, CLASSIF, FOODIDX)
To execute the behavior of an ANIMAT agent structure one has to provide -position of the agent in a given . Then will the liveR2-function place the agent in this position by setting and . Furthermore one has to deliver the maximal number of cycles () which shall be executed until the agent shall stop again. The -parameter has only a technical meaning: if set to '1' certain print-commands within the functions will print some control values. If set to '0' these prints will be suppressed. The parameters are only additional names for certain parts of the ANIMAT structure (see the descriptions above). While have to be defined before starting the behavior function the parameters are computed during runtime.
To start the behavior function liveR2() one has to call this function on the console like in the examples 16.6.1 and 16.6.3.
Gerd Doeben-Henisch 2012-03-31