Package org.trustdeck.algorithms
Class PathFinder
java.lang.Object
org.trustdeck.algorithms.PathFinder
This class allows for finding a path between two arbitrary domains, if there is one.
- Author:
- Eric Wündisch and Armin Müller
-
Constructor Summary
ConstructorsConstructorDescriptionPathFinder(List<Domain> nodes) Constructor to instantiate a new domain tree. -
Method Summary
-
Constructor Details
-
PathFinder
Constructor to instantiate a new domain tree.- Parameters:
nodes- a list of the tree's nodes
-
-
Method Details
-
getPath
Finds the path between two domains in the domain tree.- Parameters:
sourceName- the name of the source domaindestName- the name of the destination domain- Returns:
- the path from the source domain to the destination domain as a list of domain nodes, or
nullif nothing was found
-