jInfer

cz.cuni.mff.ksi.jinfer.functionalDependencies
Class Tuple

java.lang.Object
  extended by cz.cuni.mff.ksi.jinfer.functionalDependencies.Tuple

public class Tuple
extends Object

Class representing tree tuple.


Constructor Summary
Tuple(RXMLTree tree, int tupleId)
          Constructor of tuple for particular tree, with provided ID.
 
Method Summary
 boolean contains(Tuple tuple)
          Check if this tuple contains all nodes from provided tuple.
 boolean equals(Object obj)
           
 int getId()
          Get ID of this tuple.
 List<Node> getNodes()
          Get list of all nodes contained in this tuple.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tuple

public Tuple(RXMLTree tree,
             int tupleId)
Constructor of tuple for particular tree, with provided ID.

Parameters:
tree - Tree for which is tuple created.
tupleId - Tuple ID.
Method Detail

getId

public int getId()
Get ID of this tuple.

Returns:
ID of this tuple.

contains

public boolean contains(Tuple tuple)
Check if this tuple contains all nodes from provided tuple.

Parameters:
tuple - Tuple to be check if is subset of this tuple.
Returns:
true if this tuple contains all nodes from provided tuple.

getNodes

public List<Node> getNodes()
Get list of all nodes contained in this tuple.

Returns:
List of all nodes contained in this tuple.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

jInfer

Generated on Fri Dec 9 00:01:25 CET 2011