Package ch.tatool.core.element

Examples of ch.tatool.core.element.CompoundElement


        boolean isDone = true;
        while (this.getParent() != null) {

            // CompoundElement
            if (currElement instanceof CompoundElement) {
                CompoundElement comp = (CompoundElement) currElement;

                for (Object handler : comp.getHandlers()) {
                    if (handler instanceof CompoundSelector) {
                        CompoundSelector selector = (CompoundSelector) handler;
                        isDone = selector.isDone();
                    }
                }
View Full Code Here


        boolean isDone = true;
        while (this.getParent() != null) {

            // CompoundElement
            if (currElement instanceof CompoundElement) {
                CompoundElement comp = (CompoundElement) currElement;

                for (Object handler : comp.getHandlers()) {
                    if (handler instanceof CompoundSelector) {
                        CompoundSelector selector = (CompoundSelector) handler;
                        isDone = selector.isDone();
                    }
                }
View Full Code Here

        while (this.getParent() != null
                && this.getParent() != currElement) {

            // CompoundElement
            if (currElement instanceof CompoundElement) {
                CompoundElement comp = (CompoundElement) currElement;

                for (Object handler : comp.getHandlers()) {
                    if (handler instanceof CompoundSelector) {
                        CompoundSelector selector = (CompoundSelector) handler;
                        isDone = selector.isDone();
                    }
                }
View Full Code Here

        while (this.getParent() != null
                && this.getParent() != currElement) {

            // CompoundElement
            if (currElement instanceof CompoundElement) {
                CompoundElement comp = (CompoundElement) currElement;

                for (Object handler : comp.getHandlers()) {
                    if (handler instanceof CompoundSelector) {
                        CompoundSelector selector = (CompoundSelector) handler;
                        isDone = selector.isDone();
                    }
                }
View Full Code Here

   */
  public int getTrialCount(ExecutionContext context) {
    List<Element> elements = context.getElementStack();
    for (int x=elements.size() - 2; x >= 0; x--) {
      if (elements.get(x) instanceof CompoundElement) {
        CompoundElement ce = (CompoundElement) elements.get(x);
       
        // check that the stack element succeeding the compound element is the primary element
        if (elements.get(x + 1) == ce.getPrimary()) {
          if (baseEvaluator != null) {
            // return whatever the base evaluator returns, e.g. would return 0 for skip states
            return baseEvaluator.getTrialCount(context);
          } else {
            logger.warn("No base TrialCountEvaluator specified for CompoundElementTrialCountEvaluator.");
View Full Code Here

   */
  private boolean isCompoundDone(ExecutionContext context) {

    // CompoundElement
    if (this.getParent() instanceof CompoundElement) {
      CompoundElement comp = (CompoundElement) this.getParent();

      for (Object handler : comp.getHandlers()) {
        if (handler instanceof CompoundSelector) {
          CompoundSelector selector = (CompoundSelector) handler;
          return selector.isDone();
        }
      }
View Full Code Here

TOP

Related Classes of ch.tatool.core.element.CompoundElement

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.