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 boolean
isValidParamName
(String name) protected TreeNode
recursiveBuildTree
(String currentParamName, Class<?> currentComponent, TreeContext context) protected void
recursiveToIraceParams
(TreeNode node, ArrayList<String> params, ArrayDeque<String> context) protected ComponentParameter
toComponentParameter
(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)
-