fr.lri.bd.olap.model
Class CorrelationUtils

java.lang.Object
  extended by fr.lri.bd.olap.model.CorrelationUtils

public class CorrelationUtils
extends Object

Utils used for correlation counting

Author:
holubec

Constructor Summary
CorrelationUtils()
           
 
Method Summary
static edu.uci.ics.jung.graph.Vertex getPred(List<edu.uci.ics.jung.graph.Vertex> vertexes, edu.uci.ics.jung.graph.Vertex v)
          Returns predcesor of specified vertex from vertex lists.
static Correlation loadCorrelation(OlapTree tree1, OlapTree tree2, String fileName)
          Load correlation file for specified olap trees
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CorrelationUtils

public CorrelationUtils()
Method Detail

loadCorrelation

public static Correlation loadCorrelation(OlapTree tree1,
                                          OlapTree tree2,
                                          String fileName)
Load correlation file for specified olap trees

Parameters:
tree1 - Olap tree 1
tree2 - Olap tree 2
fileName - path to file
Returns:
Correlation DTO

getPred

public static edu.uci.ics.jung.graph.Vertex getPred(List<edu.uci.ics.jung.graph.Vertex> vertexes,
                                                    edu.uci.ics.jung.graph.Vertex v)
Returns predcesor of specified vertex from vertex lists. It's used for find relations between schemas.

Parameters:
vertexes -
v - specified vertex
Returns:
predcesor of specified vertex from vertex lists