An abstract class in Root.Township, Alta.Intelligence.
Base for predicates that join two other predicates (such as and), in the creature knowledge system. Evaluates the left side, then the right side with the left's bindings.
Constructors
Properties
| Member | What it is |
|---|
protected Predicate Left { get; private set; } | The left predicate. |
protected Predicate Right { get; private set; } | The right predicate. |
Methods
| Member | What it is |
|---|
abstract Result Resolve(Result a, Result b) | Subclasses turn a left and right result into one result, or null to drop it. |
protected Result Combine(Result a, Result b, float weight) | Merges two results' bindings into one result with the given weight. The left side wins on clashes. |
protected override IEnumerable<Result> EvaluateInternal(KnowledgeHolder knowledgeHolder) (iterator) | Yields every combined result Resolve accepts, for each left result and matching right result. |
protected bool IsConflicting(Result a, Result b) | Whether two results bind the same term to different values. |