Examples of TaskConfiguration


Examples of org.jamesii.core.experiments.TaskConfiguration

        // model,
        // new SimulationConfiguration(1, null, null, parameters
        // .getParameterBlock())).getSimulation();

      } else { // if we don't use a server we create a simulation on our own
        TaskConfiguration config =
            new TaskConfiguration(1, null, null, parameters.getParameterBlock());
        SimulationRunConfiguration srConfig =
            (SimulationRunConfiguration) config
                .newComputationTaskConfiguration(new ComputationTaskIDObject());
        simulation = new SimulationRun("SimRun", model, srConfig, null);
      }
      if (simulation == null) {
        SimSystem.report(Level.SEVERE, "Simulation creation failed!!!");
View Full Code Here

Examples of org.jamesii.core.experiments.TaskConfiguration

   * Create a configuration based on the parameters.
   *
   * @return
   */
  private IComputationTaskConfiguration createConfiguration() {
    TaskConfiguration config =
        new TaskConfiguration(1, null, null, parameters.getParameterBlock());
    ParameterBlock pb = new ParameterBlock();
    pb.addSubBlock(SimTimeStopFactory.SIMEND, stopTime);
    config
        .setComputationTaskStopFactory(new ParameterizedFactory<ComputationTaskStopPolicyFactory<?>>(
            new SimTimeStopFactory(), pb));
    return config
        .newComputationTaskConfiguration(new ComputationTaskIDObject());
  }
View Full Code Here

Examples of org.jamesii.core.experiments.TaskConfiguration

          if (simTableInfo.getSimState() != ComputationRuntimeState.FINISHED) {
            continue;
          }

          // 1: store the simConfig's model parameters
          TaskConfiguration simConfig =
              simTableInfo.getSrti().getComputationTaskConfiguration();
          Map<String, ?> parameters = simConfig.getParameters();
          for (Entry<String, ?> parameter : parameters.entrySet()) {
            bufferedWriter.append(parameter.getKey() + "="
                + parameter.getValue() + sepSequence);
          }

          // 2: store some of the simConfig's simulation parameters
          bufferedWriter.append(simConfig.getSimStartTime() + sepSequence);
          bufferedWriter.append(simConfig.getSimStopFactory() + sepSequence);

          // 3: store the run information
          RunInformation runInfo = simTableInfo.getRunInfo();
          bufferedWriter.append(runInfo.getTotalRuntime() + sepSequence);
          bufferedWriter.append(runInfo.getModelCreationTime() + sepSequence);
View Full Code Here

Examples of org.jamesii.core.experiments.TaskConfiguration

   */
  private static final long serialVersionUID = -8926002988010907858L;

  @Override
  void renderSimTableInfo(SimulationTableInformation sti) {
    TaskConfiguration simConfig =
        sti.getSrti().getComputationTaskConfiguration();
    this.setText("URI:"
        + simConfig.getModelReaderParams().getSubBlockValue("URI"));
  }
View Full Code Here

Examples of org.jamesii.core.experiments.TaskConfiguration

  public void execute(IOptimizationAlgorithm optAlgo) {
    Optimizer optimizer = new Optimizer(optAlgo, problemDef);
    try {
      while (true) {
        optimizer.next();
        TaskConfiguration simConfig = new TaskConfiguration();
        RunInformation runInfo =
            new RunInformation(simConfig.newComputationTaskConfiguration(null));
        runInfo.setResponse(new HashMap<String, Object>());
        optimizer.executionFinished(null, runInfo);
      }
    } catch (NoNextVariableException ex) {
      paretoFront = optimizer.getParetoFront();
View Full Code Here

Examples of org.openstreetmap.osmosis.core.pipeline.common.TaskConfiguration

    // Build a unique task id.
    taskId = (taskConfigList.size() + 1) + "-" + taskType;
   
    // Create a new task information object and add it to the list.
    taskConfigList.add(
      new TaskConfiguration(taskId, taskType, pipeArgs, taskArgs, defaultArg)
    );
   
    return i;
  }
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.