Package ch.tatool.exec

Examples of ch.tatool.exec.ExecutionContext


  public void startExecutionAWT() {
    regionsContainer = ContainerUtils.getRegionsContainer();
    display = ExecutionDisplayUtils.getDisplay(getExecutionContext());
    ContainerUtils.showRegionsContainer(display);
    ExecutionContext context = getExecutionContext();
   
    // get current stimulus
    getCurrentStimulus();
   
    // check for question dependency
    if (!stimulusInfo[1].equals("")) {
      int questionID = Integer.parseInt(stimulusInfo[1]);
      String oldResponse = trialResponses.get(questionID);
      if (!oldResponse.equals(stimulusInfo[2])) {
        // skip this question
        if (getFinishExecutionLock()) {
          cancelExecutionAWT();
          finishExecution();
          return;
        }
      }
    }

    // create trial
    currentTrial = context.getExecutionData().getCreateLastTrial();
    currentTrial.setParentId(getId());
    Timing.getStartTimeProperty().setValue(this, new Date());


    item = stimulusInfo[3];
View Full Code Here


  public void startExecutionAWT() {
    regionsContainer = ContainerUtils.getRegionsContainer();
    display = ExecutionDisplayUtils.getDisplay(getExecutionContext());
    ContainerUtils.showRegionsContainer(display);
    ExecutionContext context = getExecutionContext();
   
    // get current stimulus
    getCurrentStimulus();
   
    // check for question dependency
    if (!stimulusInfo[1].equals("")) {
      int questionID = Integer.parseInt(stimulusInfo[1]);
      String oldResponse = trialResponses.get(questionID);
      if (oldResponse == null || !oldResponse.equals(stimulusInfo[2])) {
        // skip this question
        if (getFinishExecutionLock()) {
          cancelExecutionAWT();
          finishExecution();
          return;
        }
      }
    }

    // create trial
    currentTrial = context.getExecutionData().getCreateLastTrial();
    currentTrial.setParentId(getId());
    Timing.getStartTimeProperty().setValue(this, new Date());


    item = stimulusInfo[3];
View Full Code Here

TOP

Related Classes of ch.tatool.exec.ExecutionContext

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.