unify
/
it.unibo.tuprolog.unify
/
AbstractUnificator
Abstract
Unificator
abstract class
AbstractUnificator
@
JvmOverloads
()
constructor(context:
Substitution
) :
Unificator
Content copied to clipboard
Functions
Properties
Functions
match
Link copied to clipboard
open fun
match
(term1:
Term
, term2:
Term
):
Boolean
Content copied to clipboard
Tells whether two
Term
s match each other, that is there's a Most General Unifier for them.
open fun
match
(term1:
Term
, term2:
Term
, occurCheckEnabled:
Boolean
):
Boolean
Content copied to clipboard
Tells whether two
Term
s match each other, that is there's a Most General Unifier for them
merge
Link copied to clipboard
open fun
merge
(substitution1:
Substitution
, substitution2:
Substitution
):
Substitution
Content copied to clipboard
Merges two
Substitution
s, with occurs check
open override fun
merge
(substitution1:
Substitution
, substitution2:
Substitution
, occurCheckEnabled:
Boolean
):
Substitution
Content copied to clipboard
Merges two
Substitution
s
mgu
Link copied to clipboard
open fun
mgu
(term1:
Term
, term2:
Term
):
Substitution
Content copied to clipboard
Calculates the Most General Unifier of given
Term
s, enabling occur-check
open override fun
mgu
(term1:
Term
, term2:
Term
, occurCheckEnabled:
Boolean
):
Substitution
Content copied to clipboard
Calculates the Most General Unifier of given
Term
s, optionally enabling occur-check
unify
Link copied to clipboard
open fun
unify
(term1:
Term
, term2:
Term
):
Term
?
Content copied to clipboard
Unifies two
Term
s if possible, with occurs check
open fun
unify
(term1:
Term
, term2:
Term
, occurCheckEnabled:
Boolean
):
Term
?
Content copied to clipboard
Unifies two
Term
s if possible
Properties
context
Link copied to clipboard
open override val
context
:
Substitution
Content copied to clipboard
The context (in terms of already present bindings) in which the unification is performed