Examples of KamInfo


Examples of org.openbel.framework.api.internal.KAMCatalogDao.KamInfo

    @Test
    public void testGetKamWithAnnotationFilter() throws SQLException,
            InstantiationException, IllegalAccessException,
            IllegalArgumentException, InvocationTargetException {
        KamInfo kamInfo = testKam.getKamInfo();
        KamFilter filter = kamInfo.createKamFilter();

        AnnotationType[] types = new AnnotationType[] {
                annotationType.newInstance(
                        14, "HemicAndImmuneSystem", null, null, AnnotationDefinitionType.URL,
                        "http://resource.belframework.org/belframework/1.0/annotation/mesh-hemic-and-immune-system.belanno"),
View Full Code Here

Examples of org.openbel.framework.api.internal.KAMCatalogDao.KamInfo

    }

    @Test
    public void testGetKamWithOppositeFiltersReturnsNothing()
            throws SQLException {
        KamInfo kamInfo = testKam.getKamInfo();
        KamFilter kamFilter = kamInfo.createKamFilter();

        RelationshipTypeFilterCriteria c1 = new RelationshipTypeFilterCriteria(),
                c2 = new RelationshipTypeFilterCriteria();
        c1.add(RelationshipType.INCREASES);
        c2.add(RelationshipType.DECREASES);
View Full Code Here

Examples of org.openbel.framework.api.internal.KAMCatalogDao.KamInfo

            f.add((BelDocumentFilterCriteria) c);
        }
    }

    private void testIdempotency(FilterCriteria c) throws SQLException {
        KamInfo kamInfo = testKam.getKamInfo();
        KamFilter f = kamInfo.createKamFilter(),
                f2 = kamInfo.createKamFilter();

        addFilterCriteria(f, c);
        addFilterCriteria(f2, c);
        addFilterCriteria(f2, c);
View Full Code Here

Examples of org.openbel.framework.api.internal.KAMCatalogDao.KamInfo

        assertSame(edges_f, edges_f2);
    }

    private void testCommutativity(FilterCriteria a, FilterCriteria b)
            throws SQLException {
        KamInfo kamInfo = testKam.getKamInfo();
        KamFilter ab = kamInfo.createKamFilter(),
                ba = kamInfo.createKamFilter();

        addFilterCriteria(ab, a);
        addFilterCriteria(ab, b);
        addFilterCriteria(ba, b);
        addFilterCriteria(ba, a);
View Full Code Here

Examples of org.openbel.framework.api.internal.KAMCatalogDao.KamInfo

    private void testSameResultAsPreviousImplementation(KamFilter kamFilter)
            throws IllegalAccessException, IllegalArgumentException,
            InvocationTargetException, InstantiationException, SQLException {

        // Test against the previous implementation.
        KamInfo kamInfo = testKam.getKamInfo();

        Map<Integer, KamProtoNode> prevNodes = getKamProtoNodes(kamInfo, kamFilter);
        Map<Integer, KamProtoEdge> prevEdges = getKamProtoEdges(kamInfo, prevNodes, kamFilter);

        KamProtoNodesAndEdges current = dao.getKamProtoNodesAndEdges(kamInfo, kamFilter);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.