Skip to main content

Variable

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​

MemberWhat it is
Variable(int value)Creates a Variable from value.

Properties​

MemberWhat it is
IAtomDefinition Context { get; set; }The definition this variable belongs to.
1 private and internal property
MemberWhat it is
private int Value { get; set; }The variable's number.

Methods​

MemberWhat 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.