/** * Get registered components which are of the specified type. * * @param type The super type. * @return All sub classes of type. */ public SortedSet<String> getComponentStringsOfType(Class type) { SortedSet<String> result = getComponentsOfType(type).stream() .map(AnnComponentManager::getShortName) .collect(Collectors.toCollection(TreeSet::new)); return result; }
+ Strings.repeat("*", name.length() + 4) + "\n\n"); for(Class<? extends Component> comp : cm.getComponentsOfType(cats)) { if (componentsDone.contains(comp)) continue; sc.append(getComponentConfigString(comp, cats));
@Test public void testGetComponentsOfType() { Collection<Class<? extends Component>> components = AnnComponentManager.getInstance().getComponentsOfType(ReasonerComponent.class); // System.out.println(components); // currently: [class org.dllearner.reasoning.OWLAPIReasoner, class org.dllearner.reasoning.FastInstanceChecker] Assert.assertTrue(components.size() >= 1); } }