hudson.plugins.depgraph_view
Class CalculateDeps

java.lang.Object
  extended by hudson.plugins.depgraph_view.CalculateDeps

public class CalculateDeps
extends java.lang.Object

Class to calculate the connected components of the dependency graph containing a set of projects. After calculation one can obtain the set of dependencies and the set of projects of the connected components. Respects read permission of the projects.

Author:
wolfs

Constructor Summary
CalculateDeps(java.util.Collection<? extends hudson.model.AbstractProject<?,?>> projects)
           
 
Method Summary
 void calculateNodesAndDependencies()
           
 java.util.Set<hudson.model.DependencyGraph.Dependency> getDependencies()
          Calculates the connected components if necessary
 java.util.Set<hudson.model.AbstractProject<?,?>> getProjects()
          Calculates the connected components if necessary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalculateDeps

public CalculateDeps(java.util.Collection<? extends hudson.model.AbstractProject<?,?>> projects)
Method Detail

calculateNodesAndDependencies

public void calculateNodesAndDependencies()

getProjects

public java.util.Set<hudson.model.AbstractProject<?,?>> getProjects()
Calculates the connected components if necessary

Returns:
projects (nodes) in the connected components

getDependencies

public java.util.Set<hudson.model.DependencyGraph.Dependency> getDependencies()
Calculates the connected components if necessary

Returns:
dependencies (edges) in the connected components


Copyright © 2010. All Rights Reserved.