|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deri.iris.utils.equivalence.IgnoreTermEquivalence
public class IgnoreTermEquivalence
An ineffective term equivalence implementation, i.e. this term equivalence relation does not keep track of equivalent terms, but only provides the basic required functionality. In particular:
areEquivalent only checks for equality of the two terms
using the corresponding equals method.findRepresentative returns the term itself.getEquivalent returns a singleton set cotaining the term
itself.setEquivalent does nothing.
| Constructor Summary | |
|---|---|
IgnoreTermEquivalence()
|
|
| Method Summary | |
|---|---|
boolean |
areEquivalent(ITerm x,
ITerm y)
Checks if the specified terms are equivalent. |
ITerm |
findRepresentative(ITerm term)
Returns a representative term for the specified terms. |
Set<ITerm> |
getEquivalent(ITerm term)
Returns the set of terms which are equivalent to the specified term. |
void |
setEquivalent(ITerm x,
ITerm y)
Defines the specified terms as equivalent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IgnoreTermEquivalence()
| Method Detail |
|---|
public boolean areEquivalent(ITerm x,
ITerm y)
IEquivalentTerms
areEquivalent in interface IEquivalentTermsx - The first term.y - The second term.
true if the two given terms are equivalent,
false otherwise.public ITerm findRepresentative(ITerm term)
IEquivalentTerms
findRepresentative in interface IEquivalentTermsterm - The term.
public Set<ITerm> getEquivalent(ITerm term)
IEquivalentTerms
getEquivalent in interface IEquivalentTermsterm - The term.
public void setEquivalent(ITerm x,
ITerm y)
IEquivalentTerms
setEquivalent in interface IEquivalentTermsx - The first term.y - The second term.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||