Skip to main content

Atom<T1, T2>

A class in Root.Township, Alta.Intelligence.

A named AI logic atom that takes two terms. Define turns it into a weighted definition the AI can reason with.

Constructors​

MemberWhat it is
Atom(string name)Creates an Atom from name.

Methods​

MemberWhat it is
BaseAtom.Definition Define(T1 term1, T2 term2, float weighting = 1)Builds a definition testing the two terms, with an optional goal predicate (true by default) and a weighting.
BaseAtom.Definition Define(T1 term1, T2 term2, Predicate goal, float weighting = 1)Builds a definition testing the two terms, with an optional goal predicate (true by default) and a weighting.
static Atom<T1, T2> op_Implicit(string name)Makes an atom from its name.

Used in​

Members of other types that take, return or hold a Atom&lt;T1, T2>: