Skip to main content

Compound

A class in Root.Township, Alta.Intelligence.

A Prolog-style term with a functor and arguments in the AI knowledge system, such as likes(x, y). Evaluates by unifying with known definitions.

Constructors​

MemberWhat it is
Compound(BaseAtom functor, ITerm[] terms)Creates a Compound from functor and terms.

Methods​

MemberWhat it is
override string ToString()Writes the term as functor(arg, arg).
protected override IEnumerable<Result> EvaluateInternal(KnowledgeHolder knowledgeHolder) (iterator)Unifies with each matching definition, evaluates its goal and yields the bindings weighted by the definition.
protected override Predicate FromCompoundPart(CompoundPart compoundPart)Builds a compound from a parsed compound part.

Used in​

Members of other types that take, return or hold a Compound: