Examples of RunInformation


Examples of org.jamesii.core.experiments.RunInformation

    SimulationRunConfiguration srConfig =
        (SimulationRunConfiguration) config
            .newComputationTaskConfiguration(new ComputationTaskIDObject());
    initSim =
        ComputationTaskHandler.initComputationTask(srConfig, null,
            new RunInformation(srConfig), null);
    assertNotNull(initSim);

    RunInformation runInfo =
        ComputationTaskHandler.runComputationTask(initSim, srConfig,
            new InteractiveConsole(), new StringBuffer(), null);
    assertNotNull(runInfo);
  }
View Full Code Here

Examples of org.jamesii.core.experiments.RunInformation

    } catch (Exception t) {
      SimSystem.report(t);
      getExperimentController(taskConfig).computationTaskInitialized(
          this,
          new ComputationTaskRuntimeInformation(null, taskConfig, null, null,
              new RunInformation(true)));
    }
  }
View Full Code Here

Examples of org.jamesii.core.experiments.RunInformation

    if (job == null) {
      SimSystem.report(Level.SEVERE, "ComputationTaskExecution job not found");
    }
    if (job == null) {
      getExperimentController(taskInfo.getComputationTaskConfiguration())
          .computationTaskExecuted(this, taskInfo, new RunInformation(true));
    } else {
      job.setRunComputationTask(run);
    }
  }
View Full Code Here

Examples of org.jamesii.core.experiments.RunInformation

        // System.out.println("Finishing a job!");

        ComputationTaskExecutionJob job = quad.getE1();
        ComputationTaskRuntimeInformation compTaskRTI = quad.getE2();
        TaskConfiguration taskConfig = quad.getE3();
        RunInformation results = quad.getE4();

        // if we have a data storage attached we will inform the storage that no
        // more data for this computation task will be written

        if (taskConfig.hasDataStorage()) {
          taskConfig.createPlainDataStorage().computationTaskDone(
              results.getComputationTaskID().getId());
        }

        // get the run information for the task configuration
        List<RunInformation> runInfo = getRunInfos().get(taskConfig);

        // add the results to this run information
        runInfo.add(results);

        // schedule further jobs (if required; will be determined by the
        // method
        // called)
        scheduleNewJobs(taskConfig, runInfo);

        // check once more for stop as scheduleNewJobs might need some time
        // (e.g., due to replication criteria ...)
        if (stop) {
          stopped();
          return;
        }

        // flag to determine whether the TaskConfiguration is finished
        // (no
        // replications are left)
        boolean jobDone = true;

        if ((jobs.get(taskConfig).size() > 1)) {
          jobDone = false;
        } else {
          results.setJobDone(true);
        }

        // get the execution controller of the
        // ComputationTaskConfiguration
        IExperimentExecutionController execControl =
View Full Code Here

Examples of org.jamesii.core.experiments.RunInformation

    }

    if (simStopTime == 0) {
      return Double.MAX_VALUE;
    }
    RunInformation runInfo = srti.getRunInformation();

    if (runInfo == null || runInfo.getTotalRuntime() == -1) {
      return 0;
    }

    if (runInfo.getTotalRuntime() == 0) {
      return Double.MAX_VALUE;
    }

    return simStopTime / runInfo.getTotalRuntime();
  }
View Full Code Here

Examples of org.jamesii.core.experiments.RunInformation

    }

    for (; lastListSize < newListSize; lastListSize++) {
      // fetch the last run information, hopefully this method is called per
      // run
      RunInformation rI = runInformation.get(lastListSize);

      // make sure that we have access to the storage
      setupStorage(rI);

      storage.setConfigurationID(null, rI.getConfID());

      // select the last run
      storage.setComputationTaskID(null, null, rI.getComputationTaskID());

      // read the latest value
      // TODO: change handling of incoming information!
      Object sampleObj =
          ((IWriteReadDataStorage) storage).readLatestData(dataid, attribute);
View Full Code Here

Examples of org.jamesii.core.experiments.RunInformation

    // update the means and variances for all species
    for (; lastListSize < newListSize; lastListSize++) {
      try {
        // fetch the last run information, hopefully this method is called per
        // run
        RunInformation rI = runInformation.get(lastListSize);
        int n = lastListSize + 1;

        // select the last run
        expID = getStorage().setExperimentID(rI.getExpID());
        getStorage().setConfigurationID(null, rI.getConfID());
        taskID =
            getStorage().setComputationTaskID(null, null,
                rI.getComputationTaskID());

        // read the latest value
        long[] sample =
            ((IWriteReadDataStorage<?>) getStorage()).readLatestData(
                getDataid(), getAttribute());
View Full Code Here

Examples of org.jamesii.core.experiments.RunInformation

  @Override
  public RunInformation initializeSimulationRun(
      SimulationRunConfiguration config, String simName,
      List<ISimulationHost> bookedResources) throws RemoteException {

    RunInformation result = new RunInformation(config);
    ISimulationRun simulation;
    // create the model reader
    IModelReader modelReader = null;
    ModelReaderFactory modelReaderFactory =
        SimSystem.getRegistry().getFactory(AbstractModelReaderFactory.class,
View Full Code Here

Examples of org.jamesii.core.experiments.RunInformation

          // 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);
          bufferedWriter.append(runInfo.getObserverConfigurationTime()
              + sepSequence);
          bufferedWriter.append(runInfo.getComputationTaskCreationTime()
              + sepSequence);
          bufferedWriter.append(runInfo.getComputationTaskRunTime()
              + sepSequence);
          bufferedWriter.append('\n');
        }
      }
    };
View Full Code Here

Examples of org.jamesii.core.experiments.RunInformation

    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
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.