agent

Class summary
action-agent inherits from agent
Method summary
act agent world action
consolidate-agent agent world
finalize-action agent world action
rerun action-agent
restart-object (agent action-agent) (restart-data t) &key &allow-other-keys
run-agent agent world interaction experiment &key &allow-other-keys
action-agent   inherits from agent  [Class]
:rerun    [Initarg]
rerun    [Slot]

After an agent-level repair-strategy has been successfull it can fill this slot with data it wants to be available in the next run.

rerun   action-agent  [Generic function]

Returns and (with setf) changes the rerun of the specified action-agent

consolidate-agent   agent world  [Generic function]

Is called for each of the interacting agents ath the end of an interaction. It is intended for commiting learned things or update scores of inventories.

act   agent world action  [Generic function]

Called from run-agent to act on some action and should return a new action or nil. Function might be called multiple times on the same action when agent repairs repaired something. Should return an action object.

finalize-action   agent world action  [Generic function]

Called from run-agent after nothing was repaired anymore with the last action computed in act

run-agent   agent world interaction experiment &key &allow-other-keys  [Generic function]

overloadable method for running an agent

restart-object   (agent action-agent) (restart-data t) &key &allow-other-keys  [Method]

rerunning just requires to set rerun agent to t