Package ca.nengo.ui.configurable

Examples of ca.nengo.ui.configurable.ConfigException


        float start = (Float) properties.getValue(pStart);
        float end = (Float) properties.getValue(pEnd);
        float increment = (Float) properties.getValue(pIncrement);

        if (increment == 0) {
            throw new ConfigException(
                    "Cannot plot with infinite steps because step size is 0");
        }

        Function[] functions = functionInput.getFunctions();

        if (functionIndex >= functions.length) {
            throw new ConfigException("Function index out of bounds");

        }
        Function function = functionInput.getFunctions()[functionIndex];
        Plotter.plot(function, start, increment, end, title + " ("
                + function.getClass().getSimpleName() + ")");
View Full Code Here

TOP

Related Classes of ca.nengo.ui.configurable.ConfigException

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.