Class EmptyBlackboard
- Namespace
- Aarthificial.Typewriter.Blackboards
- Assembly
- Aarthificial.Typewriter.dll
public class EmptyBlackboard : IBlackboard, IEnumerable<Blackboard.Pair>, IEnumerable
- Inheritance
-
EmptyBlackboard
- Implements
- Inherited Members
Fields
Instance
public static readonly IBlackboard Instance
Field Value
Methods
Add(int, int)
public void Add(int key, int value)
Parameters
Clear()
public void Clear()
Clone()
Create new blackboard containing the same facts as this instance.
public IBlackboard Clone()
Returns
- IBlackboard
Newly created blackboard instance.
CloneWith(IBlackboard)
Create new blackboard with facts from both this instance and another. blackboard.
public IBlackboard CloneWith(IBlackboard other)
Parameters
other
IBlackboardSource of additional facts
Returns
- IBlackboard
Newly created blackboard instance.
Get(int)
public int Get(int key)
Parameters
key
int
Returns
GetEnumerator()
public IEnumerator<Blackboard.Pair> GetEnumerator()
Returns
MergeWith(IBlackboard)
Add facts from another blackboard to this instance.
public void MergeWith(IBlackboard other)
Parameters
other
IBlackboardSource of additional facts.
Modify(BlackboardModification)
public void Modify(BlackboardModification modification)
Parameters
modification
BlackboardModification
ReplaceWith(IBlackboard)
Replace contents of this instance with facts from another blackboard.
public void ReplaceWith(IBlackboard other)
Parameters
other
IBlackboardSource of new facts.
Set(int, int)
public void Set(int key, int value)
Parameters
Test(BlackboardCriterion)
public bool Test(BlackboardCriterion criterion)
Parameters
criterion
BlackboardCriterion