CachedUnificator

class CachedUnificator(val decorated: Unificator, cacheCapacity: Int) : Unificator

Constructors

Link copied to clipboard
fun CachedUnificator(decorated: Unificator, cacheCapacity: Int)

Functions

Link copied to clipboard
open fun match(term1: <ERROR CLASS>, term2: <ERROR CLASS>): Boolean

Tells whether two Terms match each other, that is there's a Most General Unifier for them. It performs unification with occur check

open fun match(    term1: <ERROR CLASS>,     term2: <ERROR CLASS>,     occurCheckEnabled: Boolean): Boolean

Tells whether two Terms match each other, that is there's a Most General Unifier for them

Link copied to clipboard
open fun merge(substitution1: <ERROR CLASS>, substitution2: <ERROR CLASS>): <ERROR CLASS>

Merges two Substitutions, with occurs check

open override fun merge(    substitution1: <ERROR CLASS>,     substitution2: <ERROR CLASS>,     occurCheckEnabled: Boolean): <ERROR CLASS>

Merges two Substitutions

Link copied to clipboard
open fun mgu(term1: <ERROR CLASS>, term2: <ERROR CLASS>): <ERROR CLASS>

Calculates the Most General Unifier of given Terms, enabling occur-check

open override fun mgu(    term1: <ERROR CLASS>,     term2: <ERROR CLASS>,     occurCheckEnabled: Boolean): <ERROR CLASS>

Calculates the Most General Unifier of given Terms, optionally enabling occur-check

Link copied to clipboard
open fun unify(term1: <ERROR CLASS>, term2: <ERROR CLASS>): <ERROR CLASS>?

Unifies two Terms if possible, with occurs check

open fun unify(    term1: <ERROR CLASS>,     term2: <ERROR CLASS>,     occurCheckEnabled: Boolean): <ERROR CLASS>?

Unifies two Terms if possible

Properties

Link copied to clipboard
open override val context: <ERROR CLASS>

The context (in terms of already present bindings) in which the unification is performed

Link copied to clipboard
val decorated: Unificator