view.agentevents module¶
Prints a history of agent events to file.
-
class
view.agentevents.AgentEvents¶ Bases:
events.EventListenerView class
-
create_if_not_exists(agent)¶ Add the agent to the history if it does not yet exist in the history.
Parameters: agent – The agent to add to the history
-
notify(event)¶
-
write(fp)¶ Writes the view as json to a stream.
Parameters: fp – a write()-supporting file-like object
-