@Test public void testMultipleIncludeExcludeCriteria() { NodeFilter nf = testKAM.createNodeFilter(); FunctionTypeFilterCriteria ftcriteria = new FunctionTypeFilterCriteria(); ftcriteria.setInclude(false); ftcriteria.add(COMPLEX_ABUNDANCE); ftcriteria.add(PROTEIN_ABUNDANCE); nf.add(ftcriteria); FunctionReturnFilterCriteria rtcriteria = new FunctionReturnFilterCriteria(); rtcriteria.setInclude(true); rtcriteria.add(ReturnType.BIOLOGICAL_PROCESS); nf.add(rtcriteria); Collection<KamNode> nodes = testKAM.getNodes(nf); assertNotNull(nodes); assertEquals(2, nodes.size()); Iterator<KamNode> nodeIt = nodes.iterator(); KamNode n1 = nodeIt.next(); assertEquals(KINASE_ACTIVITY, n1.getFunctionType()); KamNode n2 = nodeIt.next(); assertEquals(BIOLOGICAL_PROCESS, n2.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);  }