org.pf.tools.cda.core.dependency.analyzer.model
Class CircularDependenciesResult

java.lang.Object
  extended by org.pf.tools.cda.core.dependency.analyzer.model.CircularDependenciesResult

public class CircularDependenciesResult
extends java.lang.Object

Contains the result or a circular dependencies analysis.

Version:
1.0
Author:
M.Duchrow

Constructor Summary
CircularDependenciesResult(Workset aWorkset)
          Initialize the new instance with default values.
 
Method Summary
 void addDependencyPath(ClassInformation[] path)
          Add the given dependency path to this result.
 ClassInformation[] getCycleAt(int index)
          Returns classes that build a cycle from the internal position defined by index.
 java.util.List<ClassInformation[]> getDependencyPaths()
           
 Workset getWorkset()
           
 boolean isEmpty()
          Returns true if no dependency cycle is in this result
 int numberOfCycles()
          Returns how many circular dependencies this result contains.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CircularDependenciesResult

public CircularDependenciesResult(Workset aWorkset)
Initialize the new instance with default values.

Method Detail

getWorkset

public Workset getWorkset()

getDependencyPaths

public java.util.List<ClassInformation[]> getDependencyPaths()

addDependencyPath

public void addDependencyPath(ClassInformation[] path)
Add the given dependency path to this result.


numberOfCycles

public int numberOfCycles()
Returns how many circular dependencies this result contains.


getCycleAt

public ClassInformation[] getCycleAt(int index)
Returns classes that build a cycle from the internal position defined by index.


isEmpty

public boolean isEmpty()
Returns true if no dependency cycle is in this result