Package org.jamesii.core.experiments.variables

Examples of org.jamesii.core.experiments.variables.NoNextVariableException


      throws NoNextVariableException {
       
    Double result = getCurrentValue() + getIncrementBy();
    setCurrentValue (result);
    if (result.compareTo(getStopValue()) > 0) {
      throw new NoNextVariableException();
    }

    return result;
  }
View Full Code Here


   */
  @Override
  public Configuration next() throws NoNextVariableException {

    if (finished) {
      throw new NoNextVariableException();
    }

    ConfigurationInfos newConfigInfos = null;

    // CancelCriteria
    if (meetCancelCriteria(getState())) {
      SimSystem.report(Level.INFO, "Optimization meets a cancel criteria.");
      throw new NoNextVariableException();
    }

    // check if further replication of a former Configuration is needed
    // if so, put it into the running pool and return it
    if (configsWaitingForFurtherReplication.size() > 0) {
View Full Code Here

  @Override
  public Double next(ExperimentVariables variables)
      throws NoNextVariableException {
    int currentIndex = counter;
    if (currentIndex == points.size()) {
      throw new NoNextVariableException();
    }
    counter++;
    return points.get(currentIndex)[dimension];
  }
View Full Code Here

    // compute the math expression
    ValueNode<T> result = getMathExpression().calc(environment);

    if (isFinished(result.getValue())) {
      throw new NoNextVariableException();
    }

    return result.getValue();
  }
View Full Code Here

  @Override
  public V next(ExperimentVariables variables) throws NoNextVariableException {
    currentValue.modify(1);
    if (currentValue.getValue().compareTo(stopValue) > 0) {
      throw new NoNextVariableException();
    }
    return currentValue;
  }
View Full Code Here

    Configuration tempConfig;
    try {
      tempConfig = currentConfigurationRuns.getConfiguration().clone();
    } catch (CloneNotSupportedException e) {
      throw new NoNextVariableException(e);
    }

    compareWithBestConfiguration(tempConfig, representedValues);

    // refresh state
View Full Code Here

    }

    // CancelCriteria
    if (meetCancelCriteria(state)) {
      SimSystem.report(Level.INFO, "Optimization meets a cancel criteria.");
      throw new NoNextVariableException();
    }

    // Start new Configuration: check pre conditions on new factos
    currentConfigurationRuns =
        new ConfigurationInfos(algorithm.getNextConfiguration(),
View Full Code Here

  }

  @Override
  public V next(ExperimentVariables variables) throws NoNextVariableException {
    if (!it.hasNext()) {
      throw new NoNextVariableException();
    }
    return it.next();
  }
View Full Code Here

  public Integer next(ExperimentVariables variables)
      throws NoNextVariableException {
    Integer result = getCurrentValue() + getIncrementBy();
    setCurrentValue (result);
    if (result > getStopValue()) {
      throw new NoNextVariableException();
    }

    return result;
  }
View Full Code Here

TOP

Related Classes of org.jamesii.core.experiments.variables.NoNextVariableException

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.