class UnionFindSolver[A] extends AnyRef
Unification solver based on union-find.
- A
type parameter describing the kind of constraint system
- Alphabetic
- By Inheritance
- UnionFindSolver
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new UnionFindSolver()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
find(t: Term[A]): Term[A]
Returns the canonical element of the equivalence class of the term
t
.Returns the canonical element of the equivalence class of the term
t
. The term is added as a new equivalence class if it has not been encountered before. Uses path compression. -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val log: Logger
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
solution(): Map[Var[A], Term[A]]
Returns the solution of the solver.
Returns the solution of the solver. Note that the terms in the solution have not yet been closed, i.e. they may contain constraint variables.
- returns
a map associating to each variable the representative of its equivalence class
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
Produces a string representation of the solution.
Produces a string representation of the solution.
- Definition Classes
- UnionFindSolver → AnyRef → Any
-
def
unifications(): Map[Term[A], Traversable[Term[A]]]
Returns all the unifications of the solution.
Returns all the unifications of the solution.
- returns
a map from representative to equivalence class
-
def
unify(t1: Term[A], t2: Term[A]): Unit
Performs the unification of the two terms
t1
andt2
.Performs the unification of the two terms
t1
andt2
. When unifying a variable and a non-variable term, the non-variable term has higher priority for becoming the representative. -
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated