|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfnug.resource.Tarjan
public class Tarjan
Implementation of Tarjan's strongly connected components algorithm. Used for finding load order the dependent resources, and to discover cyclic dependencies.
Tarjan's_strongly_connected_components_algorithm
Constructor Summary | |
---|---|
Tarjan(List<Resource> resources,
boolean checkModified)
Performs a tarjan's calculation of the given resources. |
|
Tarjan(Resource... resources)
Same as Tarjan(List, boolean) , with checkModified set to false,but provided as array. |
Method Summary | |
---|---|
List<Resource> |
getResult()
Returns the result of the algorithm. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Tarjan(List<Resource> resources, boolean checkModified)
BundleConfig.files()
, additional dependencies are discovered as part of this algorithm using
Resource.findRequiresTags()
.
resources
- starting resources.checkModified
- public Tarjan(Resource... resources)
Tarjan(List, boolean)
, with checkModified set to false,but provided as array. For testing.
resources
- resources to start from.Method Detail |
---|
public List<Resource> getResult()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |