Result
A class in Root.Township, Alta.Intelligence.
One answer to a creature AI logic query: the term bindings that make it true and its weight.
- Listed in Creatures and AI
Constructors
| Member | What it is |
|---|---|
Result(Dictionary<ITerm, ITerm> bindings, float weighting) | Creates a Result from weighting. |
Result(float weighting = 1) | Creates a Result from weighting. |
Properties
| Member | What it is |
|---|---|
Dictionary<ITerm, ITerm> Bindings { get; private set; } | Which variable terms were bound to which values. |
float Weighting { get; set; } | How strong this answer is. 1 by default. |
Methods
| Member | What it is |
|---|---|
override string ToString() | Text listing the weight and each binding. |
Used in
Members of other types that take, return or hold a Result:
And.Resolve, Compound.EvaluateInternal, IntelligenceExtensionMethods.Print, KnowledgeHolder.Query, Not.EvaluateInternal, Operator.Combine, Operator.EvaluateInternal, Operator.IsConflicting, Operator.Resolve, Or.EvaluateInternal, Or.Resolve, Plus.Resolve, Predicate.Evaluate, Predicate.EvaluateInternal, True.EvaluateInternal, Xor.Resolve.