Class DependencyCalculator
- java.lang.Object
-
- org.palladiosimulator.dependencytool.DependencyCalculator
-
public class DependencyCalculator extends Object
Handles the assignment of provided objects to required objects.
-
-
Constructor Summary
Constructors Constructor Description DependencyCalculator(GitHubAPIHandler ghRepo, UpdateSiteTypes type)
Create a new DependencyCalculator object to handle the assignment of dependencies.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<RepositoryObject>
calculateDependencies(Boolean includeImports)
Assign dependencies to the repositories.
-
-
-
Constructor Detail
-
DependencyCalculator
public DependencyCalculator(GitHubAPIHandler ghRepo, UpdateSiteTypes type) throws IOException
Create a new DependencyCalculator object to handle the assignment of dependencies.- Parameters:
ghRepo
- The API handler to use.type
- The type of the update site to analyze. Can be nightly or release.- Throws:
IOException
-
-
Method Detail
-
calculateDependencies
public Set<RepositoryObject> calculateDependencies(Boolean includeImports) throws IOException, ParserConfigurationException, SAXException
Assign dependencies to the repositories.- Parameters:
includeImports
- Considers imports in the feature.xml while calculating dependencies if true.- Returns:
- A Set of RepositoryObjects with their dependencies set in RepositoryObject.getDependency();
- Throws:
IOException
ParserConfigurationException
SAXException
-
-