@Test public void testSingleExcludeCriteria() { NodeFilter nf = testKAM.createNodeFilter(); FunctionReturnFilterCriteria rtcriteria = new FunctionReturnFilterCriteria(); rtcriteria.setInclude(false); rtcriteria.add(ReturnType.BIOLOGICAL_PROCESS); nf.add(rtcriteria); Collection<KamNode> nodes = testKAM.getNodes(nf); assertNotNull(nodes); assertEquals(4, nodes.size()); Iterator<KamNode> nodeIt = nodes.iterator(); KamNode n1 = nodeIt.next(); assertEquals(COMPLEX_ABUNDANCE, n1.getFunctionType()); KamNode n2 = nodeIt.next(); assertEquals(PROTEIN_ABUNDANCE, n2.getFunctionType()); KamNode n3 = nodeIt.next(); assertEquals(PROTEIN_ABUNDANCE, n3.getFunctionType()); KamNode n4 = nodeIt.next(); assertEquals(KINASE_ACTIVITY, n4.getFunctionType()); nf = testKAM.createNodeFilter(); FunctionTypeFilterCriteria ftcriteria = new FunctionTypeFilterCriteria(); ftcriteria.setInclude(false); ftcriteria.add(PROTEIN_ABUNDANCE); nf.add(ftcriteria); nodes = testKAM.getNodes(nf); assertNotNull(nodes); assertEquals(3, nodes.size()); nodeIt = nodes.iterator(); n1 = nodeIt.next(); assertEquals(COMPLEX_ABUNDANCE, n1.getFunctionType()); n2 = nodeIt.next(); assertEquals(KINASE_ACTIVITY, n2.getFunctionType()); n3 = nodeIt.next(); assertEquals(BIOLOGICAL_PROCESS, n3.getFunctionType()); }
public NodeFilter add(FunctionReturnFilterCriteria criteria) { getFilterCriteria().add(criteria); return this; }
NodeFilter extends Filter { public NodeFilter add(FunctionReturnFilterCriteria criteria) { getFilterCriteria().add(criteria); return this; } }
NodeFilter extends Filter { public NodeFilter add(FunctionReturnFilterCriteria criteria) { getFilterCriteria().add(criteria); return this; } protected  NodeFilter(KamInfo kamInfo); }
NodeFilter extends Filter { public NodeFilter add(FunctionReturnFilterCriteria criteria) { getFilterCriteria().add(criteria); return this; } protected  NodeFilter(KamInfo kamInfo); NodeFilter add(FunctionReturnFilterCriteria criteria); NodeFilter add(FunctionTypeFilterCriteria criteria); static NodeFilter createAbudancesFilter(Kam kam); static NodeFilter createProcessesFilter(Kam kam); static NodeFilter createAbundanceFunctionFilter(Kam kam); static NodeFilter createActivityFunctionFilter(Kam kam); boolean accept(KamNode node); }
NodeFilter extends Filter { public NodeFilter add(FunctionReturnFilterCriteria criteria) { getFilterCriteria().add(criteria); return this; } protected  NodeFilter(KamInfo kamInfo); NodeFilter add(FunctionReturnFilterCriteria criteria); NodeFilter add(FunctionTypeFilterCriteria criteria); static NodeFilter createAbudancesFilter(Kam kam); static NodeFilter createProcessesFilter(Kam kam); static NodeFilter createAbundanceFunctionFilter(Kam kam); static NodeFilter createActivityFunctionFilter(Kam kam); boolean accept(KamNode node);  }