Examples of FunctionEnum


Examples of org.openbel.framework.common.enums.FunctionEnum

                    : e.getSourceNode());

            // handle ACTS_IN edge independently since we care about similar
            // activity functions
            if (e.getRelationshipType() == ACTS_IN) {
                final FunctionEnum actfun = opnode.getFunctionType();

                // lookup first seen node for activity function
                KamNode node = acts.get(actfun);

                // if not yet seen mark opposite node and edge as species collapse
View Full Code Here

Examples of org.openbel.framework.common.enums.FunctionEnum

        return new Statement(subject, comment, ag, object, rel);
    }

    static void writeTerm(ObjectOutput out, Term term) throws IOException {
        // 1: function enum, never null
        FunctionEnum fx = term.getFunctionEnum();
        out.writeObject(fx);
        // 2: function arguments, may be null
        List<BELObject> fxargs = term.getFunctionArguments();
        if (fxargs == null) {
            out.writeByte(0);
View Full Code Here

Examples of org.openbel.framework.common.enums.FunctionEnum

    }

    static Term readTerm(ObjectInput in) throws IOException,
            ClassNotFoundException {
        // 1: function enum
        FunctionEnum fx = (FunctionEnum) in.readObject();
        // 2: functions arguments
        List<BELObject> fxargs = null;
        byte obyte = in.readByte();
        if (obyte == 1) {
            int size = in.readInt();
View Full Code Here

Examples of org.openbel.framework.common.enums.FunctionEnum

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean match(Term term) {
        FunctionEnum fx = term.getFunctionEnum();
        if (!fx.isTranslocating()) {
            // Translocating functions only
            return false;
        }

        List<BELObject> args = term.getFunctionArguments();
View Full Code Here

Examples of org.openbel.framework.common.enums.FunctionEnum

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean match(Term term) {
        FunctionEnum fx = term.getFunctionEnum();
        if (fx != COMPLEX_ABUNDANCE) {
            // Complex abundance functions only
            return false;
        }

View Full Code Here

Examples of org.openbel.framework.common.enums.FunctionEnum

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean match(Term term) {
        FunctionEnum fx = term.getFunctionEnum();
        if (!getActivities().contains(fx)) {
            // Activity functions only
            return false;
        }

View Full Code Here

Examples of org.openbel.framework.common.enums.FunctionEnum

    public boolean match(Term term) {

        // XXX the checks here essentially reproduce the
        // semantics of the reaction function

        FunctionEnum fx = term.getFunctionEnum();
        if (fx != REACTION) {
            // Reaction functions only
            return false;
        }
        List<BELObject> args = term.getFunctionArguments();
View Full Code Here

Examples of org.openbel.framework.common.enums.FunctionEnum

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean match(Term term) {
        FunctionEnum fx = term.getFunctionEnum();
        if (fx != DEGRADATION) {
            // Degradation functions only
            return false;
        }
        List<BELObject> args = term.getFunctionArguments();
View Full Code Here

Examples of org.openbel.framework.common.enums.FunctionEnum

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean match(Term term) {
        FunctionEnum fx = term.getFunctionEnum();
        if (fx != COMPOSITE_ABUNDANCE) {
            // Composite abundance functions only
            return false;
        }
        List<BELObject> args = term.getFunctionArguments();
View Full Code Here

Examples of org.openbel.framework.common.enums.FunctionEnum

    }

    @Test(expected = SemanticWarning.class)
    public void testNoArgumentFailure() throws SemanticWarning {
        err.println("testNoArgumentFailure");
        FunctionEnum funcEnum = FunctionEnum.COMPLEX_ABUNDANCE;
        List<BELObject> args = new ArrayList<BELObject>();
        Term t = new Term(funcEnum, args);

        subject.checkParameterizedTerm(t);
        fail("expected semantic failure");
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.