Implementation of the model of spatial working memory

The model is arranged as a set of three directories:
person - a set of BAD files created by the user, to describe the subject's brain
world - files representing the 3D spatial environment the subject is in
exp - specific files for the particular experiment being conducted

(i) the brain modules:
object_motion.pl , object_action.pl , scene.pl , object_identity.pl , goal.pl , plan.pl , plan_self_action.pl , fef.pl , spatial_action.pl , macroaction.pl , event.pl , event_map.pl , context.pl , routine.pl .
(ii) the connections among modules:
gmod.pl - list of modules, sensors and effectors
output_data_items.pl - connections among modules giving data types to be transmitted, and also update specifications for data types to be stored in the same module as created.
(iii) the sensor file:
sens.pl - specifying the sensing of the environment by each agent.
(iv) the load files, showing what is actually loaded:
load_agent.pl , load_world.pl
(v) the main control file for the brain model during execution
trial.pl - giving what happens in detail during one cycle.

The system is a multiagent system, so it can run any number of agents interacting via a world, and all of these can be on different computers, and communication is via sockets. The distribution of agents and the world is specified by the distrib.pl file which gives an IP number for each computer for each agent and also port numbers to be used for sockets etc. Typically, there is one main computer from which everything is initiated, with a window for each agent on whatever computer it is running and a window for the world, and possibly other windows for various visualizations that are generated by the system. In the current case, I just ran everything on one computer, my laptop, running linux, so I just have two windows each running a Prolog session, one for the human subject and one for the world, and these sessions communicate via sockets to the local host.

Looking at the complete directories:
For some reason you can look at any files but not at directories, so I have made a dir file in each directory so you can see the names of files.
So you can start for example at http://www.exso.com/ccp/dir
or for the code for the spatial working memory model at: http://www.exso.com/ccp/swmem/bad/dir
Then in bad/person/dir you might for example be interested in a file plan.pl, and you can look at it by going to
http://www.exso.com/ccp/swmem/bad/person/plan.pl

Note that I have not included the files for the underlying BAD system.