A class in Root.Township, Alta.Intelligence.
A numbered logic variable in the unused Prolog-like logic engine. Two variables are equal when they share a number and belong to the same definition.
Constructors
| Member | What it is |
|---|
Variable(int value) | Creates a Variable from value. |
Properties
| Member | What it is |
|---|
IAtomDefinition Context { get; set; } | The definition this variable belongs to. |
1 private and internal property
| Member | What it is |
|---|
private int Value { get; set; } | The variable's number. |
Methods
| Member | What it is |
|---|
override void ConstantInitialize(IAtomDefinition definition) | Ties the variable to the definition it appears in. |
override bool Contains(ITerm other) | True only for itself. |
override bool Equals(object obj) | Equal if the same object, or the same number in the same definition. |
override int GetHashCode() | Combines the definition's hash and the number. |
override string ToString() | Shows the variable as % followed by its number. |