Assign a fact to a variable
Parameters: |
|
---|
Return pattern matching
A Fact represents a unique object.
Alter the entity the name of which is same with one of this entity. If the working memory does not have one, then just append this to it.
Parameters: | wm (agent.WorkingMemory) – An agent’s working memory |
---|
Parameters: |
|
---|
Append self to the working memory
Parameters: | wm (agent.WorkingMemory) – An agent’s working memory |
---|
Function wrapper to evaluate the function at the time the rule is activated.
Parameters: | func – the function to evaluate |
---|
Retract a fact from the working memory
Parameters: | fact (Fact) – the fact to retract |
---|
human = Template('human')
human('Socrates') == Fact('human', 'Socrates')
Parameters: |
---|