Package org.jamesii.core.experiments

Examples of org.jamesii.core.experiments.ExecutionMeasurements


                  + compTaskConfig.getComputationTaskID());
      return new RunInformation(false);
    }

    IComputationTask currentComputationTask = task.getComputationTask();
    ExecutionMeasurements execMeasures =
        new ExecutionMeasurements(task.getRunInfo());

    // Execute the computation task
    execMeasures.startComputationTask();
    try {
      // TODO: check whether this works...
      if (compTaskConfig.isInteractive() && (interactiveConsole != null)
          && currentComputationTask instanceof SimulationRun) {
        interactiveConsole.setSimulation(currentComputationTask);
      }
      // If there is a master server defined by the parameters, start the
      // simulation there
      if (compTaskConfig.useMasterServer()) {

        RemoteComputationTaskRunnerRef remoteSimRunnerRef = null;

        try {
          remoteSimRunnerRef = new RemoteComputationTaskRunnerRef(taskRunner);
        } catch (RemoteException t) {
          SimSystem.report(t);
          task.getRunInfo().storeFailure("Remote computation failed.", t);
        }

        compTaskConfig.getMasterServer().execute(
            task.getRunInfo().getComputationTaskID(), remoteSimRunnerRef);
        // Otherwise start the simulation locally
      } else {
        if (currentComputationTask == null) {
          return task.getRunInfo();
        }
        currentComputationTask.start();
      }
    } catch (RemoteException t) {
      String msg =
          "Computation of task " + compTaskConfig.toString() + " FAILED !!! ";
      SimSystem.report(Level.SEVERE, msg, t);
      attemptDetailedErrorReporting(compTaskConfig);
      task.getRunInfo().storeFailure(msg, t);
      return task.getRunInfo();
    } finally {
      execMeasures.stopComputationTask();
    }

    compTaskConfig.getSetup().cleanUp(compTaskConfig, task.getRunInfo());

    return task.getRunInfo();
View Full Code Here


      List<ISimulationServer> resources) {

    // Please do not execute the garbage collector herein - this will kill any
    // parallel performance as this method might be executed in parallel

    ExecutionMeasurements execMeasures = new ExecutionMeasurements(info);

    // Instantiate model and simulation
    ISimulationRun simulation = null;

    try {
View Full Code Here

TOP

Related Classes of org.jamesii.core.experiments.ExecutionMeasurements

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.