public interface Unifiable extends PCExpression
PCExpression
interface and creates the subdivision of the
predicate expressions that can be unified.Modifier and Type | Method and Description |
---|---|
String |
getName()
Gets the name of the expression.
|
SubstitutionSet |
unify(Unifiable expr,
SubstitutionSet s)
Unifies the expression with the specified
expr expression
given the bindings s . |
replaceVariables, standardizeVariablesApart
String getName()
null
if there is
no one.SubstitutionSet unify(Unifiable expr, SubstitutionSet s)
expr
expression
given the bindings s
. This tries to get or add bindings in order
to make logically equivalent the expression and the specified
expression.
This method is recursive over all Unifiable
implementations.
expr
- an expression to unify with the expression.s
- the SubstitutionSet
object representing the bindings
so far and/or the constraints applied.SubstitutionSet
object that contains all the bindings
needed to unify the expression to the specified expression.SubstitutionSet