Examples of Trial


Examples of ch.tatool.data.Trial

    Executable executable = context.getActiveExecutable();

    // loop through all trials
    for (int i = 0; i < trials.size(); i++) {
      Trial trial = trials.get(i);

      totalScore += Points.getPointsProperty().getValue(trial,
          trial.getParentId(), 0);
      maxScore += Points.getMaxPointsProperty().getValue(trial,
          trial.getParentId(), 0);

      if (trials.isEmpty())
        return currentLevel;

      String trialOutcome = Misc.getOutcomeProperty().getValue(trial,
View Full Code Here

Examples of ch.tatool.data.Trial

      } else {
        samples = timerSampleSize;
      }

      for (int i = 0; i < samples - 1; i++) {
        Trial t = trials.get(trials.size() - 1 - i);
        Long duration = durationProperty.getValue(t, this);
        if (duration != null) {
          // use reactionTime or timeout if no reactionTime is present
          //Long duration = durationProperty.getValue(t, this);
          Long reactionTime = reactionTimeProperty.getValue(t, this);
View Full Code Here

Examples of ch.tatool.data.Trial

  private void executionPostProcess(ExecutionContext context) {
    if (this.getParent() == context.getActiveExecutable()) {
      List<Trial> trials = context.getExecutionData().getTrials();
      if (trials != null && trials.size() > 0) {
        Trial firstTrial = trials.get(0);
            durationProperty.setValue(firstTrial, this, defaultTimerDuration);
            reactionTimeProperty.setValue(firstTrial, this, reactionTime);
      }
         
        }
View Full Code Here

Examples of ch.tatool.data.Trial

   
    /** Set the timeout in the trial properties. */
    private void executionPostProcess(ExecutionContext context) {
        // only set if we are applied to the current task
        if (this.getParent() == context.getActiveExecutable() && logTrialProperties) {
          Trial firstTrial = context.getExecutionData().getCreateFirstTrial();
          durationProperty.setValue(firstTrial, this, defaultTimerDuration);
          reactionTimeProperty.setValue(firstTrial, this, reactionTime);
        }
    }
View Full Code Here

Examples of ch.tatool.data.Trial

  /** Delete a trial object. */
  public void deleteTrial(Module module, ModuleSession session, Trial trial) {
    Iterator<Trial> it = ((ModuleSessionImpl) session).getTrials()
        .iterator();
    while (it.hasNext()) {
      Trial t = it.next();
      if (t.getId().equals(trial.getId())) {
        it.remove();
      }
    }
    sessionFactory.getCurrentSession().delete(trial);
  }
View Full Code Here

Examples of ch.tatool.data.Trial

   
    /** Delete a trial object. */
    public void deleteTrial(Module module, ModuleSession session, Trial trial) {
        Iterator<Trial> it = ((ModuleSessionImpl) session).getTrials().iterator();
        while (it.hasNext()) {
            Trial t = it.next();
            if (t.getId().equals(trial.getId())) {
                it.remove();
            }
        }
        getHibernateTemplate().delete(trial);
    }
View Full Code Here

Examples of com.google.caliper.model.Trial

  @Test
  public void intrinsics() throws Exception {
    runner.forBenchmark(ArrayListGrowthBenchmark.class)
        .instrument("allocation")
        .run();
    Trial trial = Iterables.getOnlyElement(runner.trials());
    ImmutableListMultimap<String, Measurement> measurementsByDescription =
        Measurement.indexByDescription(trial.measurements());
    // 14 objects and 1960 bytes are the known values for growing an ArrayList from 1 element to 100
    // elements
    for (Measurement objectMeasurement : measurementsByDescription.get("objects")) {
      assertEquals(14.0, objectMeasurement.value().magnitude() / objectMeasurement.weight(), 0.001);
    }
View Full Code Here

Examples of com.google.caliper.model.Trial

    for (int i = 0; i < options.trialsPerScenario(); i++) {
      for (Experiment experiment : experimentsToRun) {
        stdout.printf("Starting trial %d of %d: %s\u2026 ",
            trialNumber, totalTrials, experiment);
        try {
          Trial trial = TrialScopes.makeContext(UUID.randomUUID(), trialNumber, experiment)
              .call(new Callable<Trial>() {
                @Override public Trial call() throws Exception {
                  return runLoopProvider.get().call();
                }
              });
View Full Code Here

Examples of com.google.gwt.junit.client.Trial

    results.setAgent(agent);
    String machine = request.getRemoteHost();
    results.setHost(machine);
    List trials = results.getTrials();
    for (int i = 0; i < trials.size(); ++i) {
      Trial trial = (Trial) trials.get(i);
      ExceptionWrapper ew = trial.getExceptionWrapper();
      trial.setException(deserialize(ew));
    }
    host.reportResults(testClassName, results);
    return host.getNextTestName(getClientId(), testClassName,
        TIME_TO_WAIT_FOR_TESTNAME);
  }
View Full Code Here

Examples of com.google.gwt.junit.client.Trial

      resultElement.setAttribute("agent", result.getAgent());

      List trials = result.getTrials();

      for (Iterator it = trials.iterator(); it.hasNext();) {
        Trial trial = (Trial) it.next();
        Element trialElement = toElement(doc, trial);
        resultElement.appendChild(trialElement);
      }

      return resultElement;
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.