Class Tuple
java.lang.Object
edu.harvard.seas.pl.abcdatalog.engine.topdown.Tuple
A tuple of terms, i.e., an ordered list of fixed arity.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
elts
The terms in this tuple.
-
-
Constructor Details
-
Tuple
Constructs a tuple from a list of terms.- Parameters:
elts
- the list of terms
-
Tuple
-
-
Method Details
-
get
Returns the term at the ith position in this tuple (0-indexed).- Parameters:
i
- the position- Returns:
- the term
-
size
public int size()Returns the arity of this tuple.- Returns:
- the arity
-
unify
Attempts to unify this tuple with another tuple.- Parameters:
other
- the other tuple- Returns:
- the substitution resulting from the unification, or null if the unification fails
-
toString
-
hashCode
public int hashCode() -
equals
-