Package org.jamesii.core.model.variables

Examples of org.jamesii.core.model.variables.IntVariable


    ISimSpaceExplorer explorer =
        new SimpleSimSpaceExplorer(configWindow.getSelectionTreeSet());

    // TODO this should be editable via the GUI
    Set<BaseVariable<?>> expModelVars = explorer.getModelVariables();
    expModelVars.add(new IntVariable("numOfReactants", 5, 1, 10, 2));
    expModelVars.add(new IntVariable("numOfSpecies", 5, 1, 10, 2));
    expModelVars.add(new IntVariable("ReactPerSpecies", 2, 1, 5, 1));

    // Check whether the experiment is already set up with some other variables
    ExperimentVariables newExpVars = new ExperimentVariables();
    if (expVars != null) {
      newExpVars.setSubLevel(expVars);
View Full Code Here


  protected synchronized void configureModelVarsForExploration() {
    if (experimentVariablesForModel != null) {
      return;
    }
    experimentVariablesForModel = simSpaceExplorer.getModelVariables();
    experimentVariablesForModel.add(new IntVariable(Strings
        .dispClassName(BogusSimulatorFactoryA.class), 1, 1, maxParamVal, 1));
    experimentVariablesForModel.add(new IntVariable(Strings
        .dispClassName(BogusSimulatorFactoryB.class), 1, 1, maxParamVal, 1));
    experimentVariablesForModel.add(new IntVariable(Strings
        .dispClassName(BogusSimulatorFactoryC.class), 1, 1, maxParamVal, 1));
  }
View Full Code Here

TOP

Related Classes of org.jamesii.core.model.variables.IntVariable

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.