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.
- Listed in Creatures and AI
- Nested in
BaseAtom - Inherits or implements
IAtomDefinition - Attributes
DebuggerDisplay
Constructors
| Member | What it is |
|---|---|
Definition(Compound compound, Predicate goal, float weighting) | Creates a BaseAtom.Definition from compound, goal and weighting. |
Fields
1 private and internal field
Properties
| Member | What 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
| Member | What it is |
|---|---|
override string ToString() | The rule as compound => goal. |
Used in
Members of other types that take, return or hold a Definition: