Skip to main content

And

A class in Root.Township, Alta.Intelligence.

Logical AND in the unused Prolog-like logic engine (Predicate, KnowledgeHolder). Yields every pair of left and right results whose bindings agree, with weightings multiplied.

Constructors​

MemberWhat it is
And(Predicate left, Predicate right)Creates an And from left and right.

Methods​

MemberWhat it is
override Result Resolve(Result a, Result b)Combines two results if their bindings don't conflict, multiplying weightings. Returns null on conflict.
override string ToString()Shows the two sides joined with &.
protected override Predicate FromCompoundPart(CompoundPart compoundPart)Rebuilds an And from bound parts when variables are substituted.