The template memory is another that holds the various templates that IDA uses compose commands to access databases or issue orders, and to compose messages to sailors. IDA's intermediate term memory acts as an episodic memory, providing context for email messages and for the contents of database screens. IDA's associative memory does what you'd expect. It associates memories, emotions and actions with incoming percepts. The operation of these last two, more complex, memory systems deserves more explanation.
Activation is sent to the behavior net, that is, the environment influences action selection.
The associative memory is read using the percept as the cue. These associations also activate the behavior net and the emotion module. Associations influence action selection. At the same time intermediate term memory is read with the same cue. The most similar case is returned, again with emotion and action, into yet another copy of the expanded perception registers.