protected void fillNominalData(NominalData data) { for (LObject<String> gold : goldObjects) { data.addObject(gold); } for (AssignedLabel<String> assign : assigns) { data.addAssign(assign); } }
@Test public void testIncrementalMV() { IncrementalMV mv = new IncrementalMV(); NominalProject np = new NominalProject(mv); np.initializeCategories(categories, null, null); NominalData nd = np.getData(); Results<String, DatumResult, WorkerResult> results = np.getResults(); mv.setData(nd); mv.setResults(results); nd.addNewUpdatableAlgorithm(mv); fillNominalData(nd); testMVResults(results); }