Class EqualList
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--java.util.ArrayList
|
+--EqualList
- All Implemented Interfaces:
- Cloneable, Collection, List, Serializable
- public class EqualList
- extends ArrayList
This class represents a list of equalities in a clause.
- Author:
- P. URSO
- See Also:
Equality
, Serialized Form
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
EqualList
public EqualList()
getEquality
public Equality getEquality(int i)
- Returns the node at the specified position in this list.
- Parameters:
index
- index of node to return.- Returns:
- the node at the specified position in this list.
applySubst
public EqualList applySubst(Substitution sigma)
- Applies a substitution map to this list.
- Parameters:
sigma
- the substitution.- Returns:
- a new list where all the occurrences of origin variables
are substitued by theirs images.
lowerThan
public boolean lowerThan(Node node)
- Tests if each both sides of equalities in this list are lower than
a specified term.
- Parameters:
node
- the term.
toString
public String toString()
- Returns a string representation of this list.
The string representation consists of equalities separated
by the characters ", ".
- Overrides:
toString
in class AbstractCollection
- Returns:
- a string representation of this clause.