Skip to main content

BaseAtom.Definition

A class in Root.Township, Alta.Intelligence.

A rule in the creature knowledge system: when the compound holds, the goal predicate follows, with a weight that fades as the event it came from ages.

Constructors​

MemberWhat it is
Definition(Compound compound, Predicate goal, float weighting)Creates a BaseAtom.Definition from compound, goal and weighting.

Fields​

1 private and internal field
MemberWhat it is
private float weightingBase weighting. The Weighting property multiplies it by AgeWeighting.

Properties​

MemberWhat it is
float AgeWeighting { get; set; }Age factor, from 1 down to 0, set by the owning Event as it gets older.
Compound Compound { get; private set; }The condition side of the rule.
Predicate Goal { get; private set; }The predicate the rule leads to.
float Weighting { get; }The base weight times AgeWeighting.

Methods​

MemberWhat it is
override string ToString()The rule as compound => goal.

Used in​

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