Package org.jamesii.core.experiments

Examples of org.jamesii.core.experiments.ComputationTaskRuntimeInformation


          }
          currentResult = initCompTask.getRunInfo();

          // Notify submitting experiment
          currentTRI =
              new ComputationTaskRuntimeInformation(runConfig, config,
                  initCompTask.getComputationTask(),
                  currentResult.getComputationTaskID(), currentResult);
        } catch (Throwable t) {
          SimSystem.report(t);
        } finally {
          if (currentResult == null) {
            currentResult = new RunInformation(false);
          }
          if (currentTRI == null) {
            currentTRI =
                new ComputationTaskRuntimeInformation(runConfig, config, null,
                    null, currentResult);
          }
          runner.notifyExecutionController(this, execController, currentTRI);
        }
        // Wait for notification: this run will either be executed or canceled
View Full Code Here


        }

        // Notify submitting experiment
        IComputationTask run = initComputationTask.getComputationTask();
        currentTRTI =
            new ComputationTaskRuntimeInformation(compTaskConfig, taskConfig,
                run, run != null ? run.getUniqueIdentifier() : null,
                currentResult);
      } catch (Exception t) {
        SimSystem.report(Level.SEVERE,
            "Problem in initializing execution task", t);
View Full Code Here

    if (cause != null) {
      SimSystem.report(cause);
    }
    RunInformation r = new RunInformation(true);
    currentTRTI =
        new ComputationTaskRuntimeInformation(null, taskConfig, null, null, r);
    getExperimentController(taskConfig).computationTaskInitialized(this,
        currentTRTI);
    waitForNotification();
    getExperimentController(taskConfig).computationTaskExecuted(this,
        currentTRTI, r);
View Full Code Here

      RunInformation currentResult,
      IComputationTaskConfiguration compTaskConfig, Throwable cause) {
    SimSystem.report(cause);
    abortCurrentConfig = true;
    currentTRTI =
        new ComputationTaskRuntimeInformation(compTaskConfig, taskConfig, null,
            null, currentResult);
  }
View Full Code Here

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

        }

        // 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
View Full Code Here

   * @param srti
   *          the new simulation runtime information
   */
  public void init(ComputationTaskRuntimeInformation srti) {
    if (simRuntimeInfo != null) {
      ComputationTaskRuntimeInformation simRTInfo = simRuntimeInfo.get();
      if (simRTInfo != null) {
        simRTInfo.removeComputationTaskExecutionListener(this);
      }
    }

    if (srti == null) {
      setEnabled(false);
View Full Code Here

TOP

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

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.