Class AlgorithmCandidateGenerator
java.lang.Object
es.urjc.etsii.grafo.autoconfig.generator.AlgorithmCandidateGenerator
-
Constructor Summary
ConstructorsConstructorDescriptionAlgorithmCandidateGenerator(AlgorithmInventoryService inventoryService, IExplorationFilter explorationFilter) -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<Class<?>, List<ComponentParameter>> Analyze algorithm components recursively, starting from all algorithm classes, and extract parameter informationbuildTree(int maxDepth, int maxRepeat) Map<Class<?>, List<ComponentParameter>> protected booleanisValidParamName(String name) protected TreeNoderecursiveBuildTree(String currentParamName, Class<?> currentComponent, TreeContext context) protected voidrecursiveToIraceParams(TreeNode node, ArrayList<String> params, ArrayDeque<String> context) protected ComponentParametertoComponentParameter(Map<Class<?>, Collection<Class<?>>> types, Parameter p) toIraceParams(List<TreeNode> nodes)
-
Constructor Details
-
AlgorithmCandidateGenerator
public AlgorithmCandidateGenerator(AlgorithmInventoryService inventoryService, IExplorationFilter explorationFilter)
-
-
Method Details
-
isValidParamName
-
analyzeParameters
Analyze algorithm components recursively, starting from all algorithm classes, and extract parameter information- Returns:
- parameter info for each component
-
toComponentParameter
protected ComponentParameter toComponentParameter(Map<Class<?>, Collection<Class<?>>> types, Parameter p) -
componentParams
-
toIraceParams
-
recursiveToIraceParams
protected void recursiveToIraceParams(TreeNode node, ArrayList<String> params, ArrayDeque<String> context) -
buildTree
-
recursiveBuildTree
protected TreeNode recursiveBuildTree(String currentParamName, Class<?> currentComponent, TreeContext context)
-