Package org.boris.expr.engine

Examples of org.boris.expr.engine.SimpleGraphEngine$EngineFunctionManager


import org.boris.expr.engine.SimpleGraphEngine;

public class SimpleGraphEngineTest extends TH
{
    public void testEngine1() throws Exception {
        SimpleGraphEngine e = new SimpleGraphEngine();
        e.setValue("x", 3.);
        e.setValue("y", 5.);
        e.setFormula("z", "x+y+2");
        e.setFormula("a", "z/2");
        e.setFormula("b", "a^2");
        e.setFormula("y", "13+5");
        e.calculate();
        assertEquals(e.get("a"), 5.);
    }
View Full Code Here

TOP

Related Classes of org.boris.expr.engine.SimpleGraphEngine$EngineFunctionManager

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.