Package ca.nengo.ui.configurable

Examples of ca.nengo.ui.configurable.ConfigSchemaImpl


    pName.setDescription("Name of the network");
  }

  @Override
  public ConfigSchemaImpl getNodeConfigSchema() {
    return new ConfigSchemaImpl(); // nothing to configure
  }
View Full Code Here


      throws ConfigException;

  public final ConfigSchema getSchema() {
    ConfigSchema nodeConfigSchema = getNodeConfigSchema();

    ConfigSchemaImpl newConfigSchema = new ConfigSchemaImpl(nodeConfigSchema.getProperties()
        .toArray(new Property[] {}), nodeConfigSchema.getAdvancedProperties().toArray(
        new Property[] {}));

    newConfigSchema.addProperty(pName, 0);

    return newConfigSchema;
  }
View Full Code Here

  }

  @Override
  public ConfigSchemaImpl getNodeConfigSchema() {
    return new ConfigSchemaImpl(pFunctions);
  }
View Full Code Here

            }

            pValue.setDefaultValue(getFunction().getValue());
        }

        return new ConfigSchemaImpl(new Property[] { pDimension, pValue });
    }
View Full Code Here

                } catch (InvocationTargetException e) {
                    e.printStackTrace();
                }
            }
        }
        return new ConfigSchemaImpl(myProperties);
    }
View Full Code Here

        pExpression = new PString(EXPRESSION_STR, EXPRESSION_DESC, expression);
        pDimensions = new PInt(DIMENSION_STR, DIMENSION_DESC, dim);
        pDimensions.setEditable(isInputDimEditable);

        Property[] props = new Property[] { pExpression, pDimensions };
        return new ConfigSchemaImpl(props);
    }
View Full Code Here

  @Override
  public ConfigSchema getSchema() {
    pTransformMatrix = new PTerminationWeights("Weights", nefEnsembleParent.getDimension());

    Property[] zProperties = { pName, pTransformMatrix, pTauPSC, pIsModulatory };
    return new ConfigSchemaImpl(zProperties);

  }
View Full Code Here

     * @throws ConfigException TODO
     */
    public static Object configure(Property prop, String typeName, Container parent)
            throws ConfigException {

        ConfigResult properties = configure(new ConfigSchemaImpl(prop), typeName, null, parent,
                ConfigMode.TEMPLATE_NOT_CHOOSABLE);
        return properties.getValue(prop);
    }
View Full Code Here

     * @return TODO
     * @throws ConfigException TODO
     */
    public static ConfigResult configure(Property[] schema, String typeName, Container parent,
            ConfigMode configMode) throws ConfigException {
        return configure(new ConfigSchemaImpl(schema), typeName, null, parent, configMode);
    }
View Full Code Here

    //List<String> commonNodes = AbstractEnsemble.findCommon1DOrigins(nodes);

    //pNodeOrigin = new OriginSelector("Node Origin Name", commonNodes.toArray(new String[0]));

    Property[] zProperties = { pName, pFunctions};//, pNodeOrigin };
    return new ConfigSchemaImpl(zProperties);

  }
View Full Code Here

TOP

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

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.