Package org.openbel.framework.api

Examples of org.openbel.framework.api.RelationshipTypeFilterCriteria


    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);
        kamFilter.add(c1);
        kamFilter.add(c2);

        KamProtoNodesAndEdges all = dao.getKamProtoNodesAndEdges(kamInfo, kamFilter);
        Map<Integer, KamProtoNode> nodes = all.getKamProtoNodes();
View Full Code Here


    @Test
    public void testGetKamWithDuplicateFiltersIsIdempotent()
            throws SQLException {

        RelationshipTypeFilterCriteria c = new RelationshipTypeFilterCriteria();
        c.add(RelationshipType.HAS_COMPONENT);

        testIdempotency(c);
    }
View Full Code Here

        testIdempotency(c);
    }

    @Test
    public void testGetKamIsCommutative() throws SQLException {
        RelationshipTypeFilterCriteria c1 = new RelationshipTypeFilterCriteria(),
                c2 = new RelationshipTypeFilterCriteria();
        c1.add(RelationshipType.INCREASES);
        c2.add(RelationshipType.DECREASES);
        c2.setInclude(false);

        testCommutativity(c1, c2);
    }
View Full Code Here

    public void testGetKamIsCorrect() throws IllegalAccessException,
            IllegalArgumentException, InvocationTargetException,
            InstantiationException, SQLException, ParseException {
        KamFilter f = testKam.getKamInfo().createKamFilter();

        RelationshipTypeFilterCriteria r = new RelationshipTypeFilterCriteria();
        r.add(RelationshipType.ANALOGOUS);
        r.add(RelationshipType.INCLUDES);
        r.add(RelationshipType.INCREASES);
        r.setInclude(false);

        CitationFilterCriteria c = new CitationFilterCriteria();
        Citation[] citations = new Citation[] {
                citation.newInstance(
                        "Trends in molecular medicine", "12928037", "", null,
View Full Code Here

TOP

Related Classes of org.openbel.framework.api.RelationshipTypeFilterCriteria

Copyright © 2018 www.massapicom. 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.