fr.lri.bd.olap.dto
Class GraphPath

java.lang.Object
  extended by fr.lri.bd.olap.dto.GraphPath

public class GraphPath
extends Object

GraphPath class represents path in the graph.

Author:
holubec

Constructor Summary
GraphPath(OlapTree tree, List<edu.uci.ics.jung.graph.Vertex> preds, edu.uci.ics.jung.graph.Vertex mTo)
          Default constructor
GraphPath(OlapTree tree, edu.uci.ics.jung.graph.Vertex mTo)
          Minimal constructor
 
Method Summary
 List<edu.uci.ics.jung.graph.Edge> getEdges()
           
 String getName()
           
 List<edu.uci.ics.jung.graph.Edge> getOriginalEdges()
          In case that this path belongs to datamart, function returns list of edges in original tree.
 edu.uci.ics.jung.graph.Vertex getOriginalVertexTo()
          In case that this path belongs to datamart, function returns destination vertex in original tree.
 List<edu.uci.ics.jung.graph.Vertex> getPreds()
           
 edu.uci.ics.jung.graph.Vertex getRoot()
           
 edu.uci.ics.jung.graph.Vertex getVertexTo()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphPath

public GraphPath(OlapTree tree,
                 edu.uci.ics.jung.graph.Vertex mTo)
Minimal constructor

Parameters:
tree - OlapTree class
mTo - destination vertex

GraphPath

public GraphPath(OlapTree tree,
                 List<edu.uci.ics.jung.graph.Vertex> preds,
                 edu.uci.ics.jung.graph.Vertex mTo)
Default constructor

Parameters:
tree - OlapTree class
preds - vertexes from root vertex to destination vertex sorted in order
mTo - destination vertex
Method Detail

getEdges

public List<edu.uci.ics.jung.graph.Edge> getEdges()
Returns:
list of edges on the path

getVertexTo

public edu.uci.ics.jung.graph.Vertex getVertexTo()
Returns:
destination vertex

getOriginalVertexTo

public edu.uci.ics.jung.graph.Vertex getOriginalVertexTo()
In case that this path belongs to datamart, function returns destination vertex in original tree. Otherwise it returns destination vertex, which belongs to current Olap tree.

Returns:
Destination vertex from original tree (if exists). Otherwise is result same like from getVertexTo method

getPreds

public List<edu.uci.ics.jung.graph.Vertex> getPreds()
Returns:
vertexes from root vertex to destination vertex sorted in order

getRoot

public edu.uci.ics.jung.graph.Vertex getRoot()
Returns:
root vertex which belongs to current olap tree

getName

public String getName()
Returns:
name compound from path edge names

getOriginalEdges

public List<edu.uci.ics.jung.graph.Edge> getOriginalEdges()
In case that this path belongs to datamart, function returns list of edges in original tree. Otherwise it returns same result like method getEdges

Returns:
list of original edges