defworld.agent — Agents

class defworld.agent.Agent(initial_facts, rules)

A forward inference agent

activate()

Activate the rule on the top of agenda

linearize()

Return linearized rete tree

class defworld.agent.WorkingMemory(initial_facts=[])

A working memory of an Agent which stores patterns.Fact and patterns.Entity

Parameters:initial_facts (a list of patterns.Fact) –
append(fact)

Append a Fact to the WorkingMemory

Parameters:fact (patterns.Fact) – a pointer to PixelWand to compare

Project Versions

Previous topic

Defworld

Next topic

defworld.basic — Basic types

This Page