Examples of PFunction


Examples of ca.nengo.ui.configurable.descriptors.PFunction

        class NewFunctionAL implements ActionListener {

            public void actionPerformed(ActionEvent e) {
                try {
                    PString pFnName = new PString("Name");
                    PFunction pFunction = new PFunction("New Function", 1, true, null);

                    ConfigResult props = ConfigManager.configure(new Property[] { pFnName,
                            pFunction }, "Register fuction", FunctionDialog.this,
                            ConfigMode.TEMPLATE_NOT_CHOOSABLE);
View Full Code Here

Examples of ca.nengo.ui.configurable.descriptors.PFunction

            if (defaultValues != null && i < defaultValues.length && defaultValues[i] != null) {
                defaultValue = defaultValues[i];

            }
            PFunction function = new PFunction("Function " + i, inputDimension, false, defaultValue);
            function.setDescription("The function to use for dimension "+i);

            props[i] = function;
        }

        return new ConfigSchemaImpl(props);
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.