Package it.unibo.tuprolog.unify

Types

Link copied to clipboard
abstract class AbstractUnificator @JvmOverloads constructor(val context: <ERROR CLASS> = empty()) : Unificator
Link copied to clipboard
class CachedUnificator(val decorated: Unificator, cacheCapacity: Int) : Unificator
Link copied to clipboard
sealed class Equation

A class representing an Equation of logic terms, to be unified;

Link copied to clipboard
interface Unificator

Functions

Link copied to clipboard
infix fun <ERROR CLASS>.eq(that: <ERROR CLASS>): Equation

Creates an equation with this and that terms

Link copied to clipboard
fun Equation.toAssignmentPair(): Pair<<ERROR CLASS>, <ERROR CLASS>>
Link copied to clipboard
fun <ERROR CLASS>.toEquations(): List<Equation>

Transforms a Substitution into the list of corresponding Equations

Link copied to clipboard
fun Equation.toSubstitution(): <ERROR CLASS>

Transforms an Equation of a Var with a Term to the corresponding Substitution

fun Iterable<Equation>.toSubstitution(): <ERROR CLASS>

Creates a Substitution out of a Iterable of Equations assigning Vars to Terms