Package org.openbel.framework.core.compiler.expansion

Examples of org.openbel.framework.core.compiler.expansion.DistributeStatementExpansionRule


        Term a = new Term(PROTEIN_ABUNDANCE,
                Arrays.asList((BELObject) CommonModelFactory.getInstance()
                        .createParameter(null, "A")));
        Statement defStmt = new Statement(a);

        assertFalse(new DistributeStatementExpansionRule().match(defStmt));
    }
View Full Code Here


                Arrays.asList((BELObject) CommonModelFactory.getInstance()
                        .createParameter(null, "B")));
        Statement simpleStmt = new Statement(a, null, null,
                new Statement.Object(b), INCREASES);

        assertFalse(new DistributeStatementExpansionRule().match(simpleStmt));
    }
View Full Code Here

        Statement bc = new Statement(b, null, null, new Statement.Object(c),
                INCREASES);
        Statement abc = new Statement(a, null, null, new Statement.Object(bc),
                INCREASES);

        assertTrue(new DistributeStatementExpansionRule().match(abc));
    }
View Full Code Here

        Statement bcde = new Statement(b, null, null,
                new Statement.Object(cde), INCREASES);
        Statement abcde = new Statement(a, null, null, new Statement.Object(
                bcde), INCREASES);

        assertFalse(new DistributeStatementExpansionRule().match(abcde));
    }
View Full Code Here

                INCREASES);
        Statement abc = new Statement(a, null, null, new Statement.Object(bc),
                INCREASES);

        List<Statement> expansion = null;
        expansion = new DistributeStatementExpansionRule().expand(abc);

        assertNotNull(expansion);

        if (expansion != null) {
            assertEquals(2, expansion.size());
View Full Code Here

TOP

Related Classes of org.openbel.framework.core.compiler.expansion.DistributeStatementExpansionRule

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.