sealed class Equation: TermConvertible, Any
Fields
Methods
asContradiction
open fun asContradiction(): Contradiction?
ReturnValue
Name | Description |
---|---|
Contradiction?
|
castToContradiction
fun castToContradiction(): Contradiction
ReturnValue
Name | Description |
---|---|
Contradiction
|
toTerm
open fun toTerm(): Struct
Converts this instance to a Prolog Term
ReturnValue
Name | Description |
---|---|
Struct
|
apply
fun apply(substitution: Substitution, equalityChecker: (Term, Term)->Boolean): Equation
Applies given substitution to the Equation left-hand and right-hand sides, returning the new Equation
To modify default equality between Terms, a custom equalityChecker can be provided
Parameters
Name | Description |
---|---|
substitution: Substitution
|
|
equalityChecker: (Term, Term)->Boolean
|
ReturnValue
Name | Description |
---|---|
Equation
|
Extensions
CompanionObject
Equation
sealed class Equation: TermConvertible, Any
A class representing an Equation of logic terms, to be unified;
LHS stands for Left-Hand side and RHS stands for Right-Hand side, of the Equation
Methods
of
fun of(lhs: Term, rhs: Term, equalityChecker: (Term, Term)->Boolean): Equation
Creates an Equation with provided left-hand and right-hand sides
ReturnValue
Name | Description |
---|---|
Equation
|
of
fun of(pair: Pair
ReturnValue
Name | Description |
---|---|
Equation
|
from
fun from(pairs: Sequence
Parameters
ReturnValue
Name | Description |
---|---|
Sequence
|
from
fun from(pairs: Iterable<Pair
Parameters
ReturnValue
Name | Description |
---|---|
Sequence
|
from
fun from(vararg pairs: Pair
ReturnValue
Name | Description |
---|---|
Sequence
|
allOf
fun allOf(pair: Pair
ReturnValue
Name | Description |
---|---|
Sequence
|
A class representing an Equation of logic terms, to be unified;
LHS stands for Left-Hand side and RHS stands for Right-Hand side, of the Equation