Package org.boris.expr.engine

Examples of org.boris.expr.engine.ListenerEngine


import org.boris.expr.function.ExcelFunctionProvider;

public class ListenerEngineTest
{
    public static void main(String[] args) throws Exception {
        ListenerEngine le = new ListenerEngine(new ExcelFunctionProvider());
        le.addListener(new DebugEngineListener());
        le.set("a", "b+c");
        le.set("c", "sin(123+b)");
        le.set("b", "54.32");
        ExecutorService es = Executors.newFixedThreadPool(5);
        le.startCalculation(es, 5);
        Thread.sleep(500);
        le.set("d", "a*b");
        le.set("b", "2.");
    }
View Full Code Here

TOP

Related Classes of org.boris.expr.engine.ListenerEngine

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.