ora.gui.helper
Class PathFinder

java.lang.Object
  extended by ora.gui.helper.PathFinder

public class PathFinder
extends java.lang.Object

Author:
Kristian Martin This class helps finding the path between two elements/objects

Constructor Summary
PathFinder(int maxNumberOfWays)
           
 
Method Summary
 java.util.ArrayList findChildPath(ObjectElement source, ObjectElement target)
          Finds childpath between source and target..
 java.util.ArrayList findParentPath(ObjectElement source, ObjectElement target)
          Finds parentpath between source and target..
 java.util.ArrayList findRootPath(ObjectElement source)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathFinder

public PathFinder(int maxNumberOfWays)
Method Detail

findRootPath

public java.util.ArrayList findRootPath(ObjectElement source)

findParentPath

public java.util.ArrayList findParentPath(ObjectElement source,
                                          ObjectElement target)
Finds parentpath between source and target..

Parameters:
source - child
target - parent
Returns:
list

findChildPath

public java.util.ArrayList findChildPath(ObjectElement source,
                                         ObjectElement target)
Finds childpath between source and target..

Parameters:
source - child
target - parent
Returns:
list