/** * Retuns a list of all instanciated and registered KnowledgeSource * * @return Currently active knowledge sources. */ public List<AbstractKnowledgeSource> getLiveKnowledgeSources() { List<AbstractKnowledgeSource> list = new ArrayList<AbstractKnowledgeSource>(); for (AbstractComponent component : cm.getLiveComponents()) { if (component instanceof AbstractKnowledgeSource) { list.add((AbstractKnowledgeSource) component); } } return list; }
/** * Retuns a list of all instanciated and registered LearningAlgorithm * * @return Currently active learning algorithms. */ public List<AbstractCELA> getLiveLearningAlgorithms() { List<AbstractCELA> list = new ArrayList<AbstractCELA>(); for (AbstractComponent component : cm.getLiveComponents()) { if (component instanceof AbstractCELA) { list.add((AbstractCELA) component); } } return list; }