vishnu.model.algebra
Class CartesianProduct

java.lang.Object
  extended by vishnu.model.algebra.AbstractBinaryRelation
      extended by vishnu.model.algebra.CartesianProduct
All Implemented Interfaces:
BinaryRelation, Relation

public class CartesianProduct
extends AbstractBinaryRelation

Representa a la relacion producto cartesiano del algebra relacional.

Author:
Mariano Tepper
 

Nested Class Summary
 
Nested classes/interfaces inherited from interface vishnu.model.algebra.Relation
Relation.Context, Relation.ContextNotSelectedException
 
Field Summary
 
Fields inherited from class vishnu.model.algebra.AbstractBinaryRelation
r, s
 
Constructor Summary
CartesianProduct(Relation r, Relation s)
          Creates a new instance of ProductoCartesiano
 
Method Summary
protected static void addSignature(DefaultTableSignature dest, TableSignature source)
           
 TableSignature calculateSignature()
           
 boolean equals(java.lang.Object o)
           
static TableSignature getProductSignature(TableSignature leftSignature, TableSignature rightSignature)
          Construye la signatura combinada en base a las signaturas de sus parametros.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class vishnu.model.algebra.AbstractBinaryRelation
algorithm, algorithm, debugging, hasChanged, leftRelation, leftRelation, perform, rightRelation, rightRelation, setChanged, setContext, signature
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CartesianProduct

public CartesianProduct(Relation r,
                        Relation s)
Creates a new instance of ProductoCartesiano

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getProductSignature

public static TableSignature getProductSignature(TableSignature leftSignature,
                                                 TableSignature rightSignature)
Construye la signatura combinada en base a las signaturas de sus parametros.


addSignature

protected static void addSignature(DefaultTableSignature dest,
                                   TableSignature source)

calculateSignature

public TableSignature calculateSignature()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object