Package ch.tatool.element

Examples of ch.tatool.element.Executable


  protected int checkLevelChange(ExecutionContext context, int currentLevel) {
    List<Trial> trials = context.getExecutionData().getTrials();
    int oldLevel = currentLevel;
    int newLevel = oldLevel;

    Executable executable = context.getActiveExecutable();

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


  protected int checkLevelChange(ExecutionContext context, int currentLevel) {
    List<Trial> trials = context.getExecutionData().getTrials();
    int oldLevel = currentLevel;
    int newLevel = oldLevel;

    Executable executable = context.getActiveExecutable();

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

        return;
      }
     
      // fetch the new execution element
        Element newElement = elementTree.getTop();
        Executable newExecutable = null;
        if (newElement == null) {
          continueModule = false;
          return;
        }
       
View Full Code Here

        stopCurrentCycle();
    }
   
    private void stopCurrentCycle() {
        // stop a currently running task
        Executable executable = currentExecutable;
        if (executable != null) {
            logger.info("cancelTask: Cancelling executable " + executable.getId());
            executable.cancel();
        }
       
        // stop currently running phase executable
        PhaseRunnable phaseRunnable = currentPhaseExecutable;
        if (phaseRunnable != null) {
View Full Code Here

  protected int checkLevelChange(ExecutionContext context, int currentLevel) {
    List<Trial> trials = context.getExecutionData().getTrials();
    int oldLevel = currentLevel;
    int newLevel = oldLevel;

    Executable executable = context.getActiveExecutable();

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

  protected int checkLevelChange(ExecutionContext context, int currentLevel) {
    List<Trial> trials = context.getExecutionData().getTrials();
    int oldLevel = currentLevel;
    int newLevel = oldLevel;

    Executable executable = context.getActiveExecutable();

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

* @author Michael Ruflin
*/
public class DefaultTrialCountEvaluator  extends NodeImpl implements TrialCountEvaluator {

  public int getTrialCount(ExecutionContext context) {
    Executable executable = context.getActiveExecutable();
    List<Trial> trials = context.getExecutionData().getTrials();
    if (!trials.isEmpty() && Result.getResultProperty().isSet(trials.get(0), executable)) {
      return 1;
    } else {
      return 0;
View Full Code Here

      continueModule = selectorStrategy.updateElementStack(executionContext);
      if (! continueModule) return;
     
      // fetch the new execution element
        Element newElement = elementTree.getTop();
        Executable newExecutable = null;
        if (newElement == null) {
          continueModule = false;
          return;
        }
       
View Full Code Here

        stopCurrentCycle();
    }
   
    private void stopCurrentCycle() {
        // stop a currently running task
        Executable executable = currentExecutable;
        if (executable != null) {
            logger.info("cancelTask: Cancelling executable " + executable.getId());
            executable.cancel();
        }
       
        // stop currently running phase executable
        PhaseRunnable phaseRunnable = currentPhaseExecutable;
        if (phaseRunnable != null) {
View Full Code Here

   
    /**
     * Returns a simple test executable that return SUCCESS
     */
    protected Element createRootElement() {
      Executable executable = createExecutable();
      return new ExecutableElement(executable);
    }
View Full Code Here

TOP

Related Classes of ch.tatool.element.Executable

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.