Examples of Alternative


Examples of apigen.adt.Alternative

          }
        } else if (!typeConverter.isReserved(type.getId())) {
          /* no make method for operators with builtin codomain */
          Iterator<Alternative> alts = type.alternativeIterator();
          while (alts.hasNext()) {
            Alternative alt = alts.next();
            genInternalMakeMethod(type, alt, forwarding, moduleName);
            genMakeMethod(type, alt, forwarding, moduleName);
            if (!forwarding) {
              genAltFromTerm(type, alt);
            }
View Full Code Here

Examples of apigen.adt.Alternative

        }
        listTypeCount++;
      } else if (!typeConverter.isReserved(type.getId())) {
        Iterator<Alternative> alts = type.alternativeIterator();
        while (alts.hasNext()) {
          Alternative alt = alts.next();
          String funVar = funVariable(type, alt);
          String afunName = type.getId() + "_" + alt.getId();

          println("    "
              + patternVariable(type, alt)
              + " = factory.parse(\""
              + StringConversions.escapeQuotes(alt
                  .buildMatchPattern().toString()) + "\");");
          println("    " + funVar + " = factory.makeAFun(\"" + "_"
              + afunName + "\", " + type.getAltArity(alt)
              + ", false);");
          println();
View Full Code Here

Examples of apigen.adt.Alternative

    genInitializeEmptySeparatedList(type, listTypeCount);
    genInitializeManyPattern(type);
  }

  private void genInitializeManyPattern(SeparatedListType type) {
    Alternative alt = type.getManyAlternative();
    println("    "
        + patternListVariable(type)
        + " = factory.parse(\""
        + StringConversions.escapeQuotes(alt.buildMatchPattern()
            .toString()) + "\");");
  }
View Full Code Here

Examples of apigen.adt.Alternative

  }

  protected void genAltFromTermCalls(Type type) {
    Iterator<Alternative> alts = type.alternativeIterator();
    while (alts.hasNext()) {
      Alternative alt = alts.next();
      String methodName = concatTypeAlt(type, alt) + "FromTerm";
      println("    tmp = " + methodName + "(trm);");
      println("    if (tmp != null) {");
      println("      return tmp;");
      println("    }");
View Full Code Here

Examples of apigen.adt.Alternative

  private void genListTypeTomAltOperators(Type type) {
    Iterator<Alternative> alts = type.alternativeIterator();

    while (alts.hasNext()) {
      Alternative alt = alts.next();
      if (!alt.isEmpty() && !alt.isMany() && !alt.isSingle()) {
        genTomAltOperator(type, alt);
      }
    }
  }
View Full Code Here

Examples of apigen.adt.Alternative

  private void genTomAltOperators(Type type) {
    Iterator<Alternative> alts = type.alternativeIterator();

    while (alts.hasNext()) {
      Alternative alt = alts.next();
      genTomAltOperator(type, alt);
    }
  }
View Full Code Here

Examples of apigen.adt.Alternative

      if (type instanceof ListType) {
        genListVisit(type);
      } else if (!typeConverter.isReserved(type.getId())) {
        /* builtin childs are not visitable */
        while (alts.hasNext()) {
          Alternative alt = alts.next();
          genVisit(type, alt);
        }
      }
    }
  }
View Full Code Here

Examples of eu.planets_project.pp.plato.model.Alternative

        rec2.setShortName("zwo");
        rec2.getData().setData(byteStream.getBytes());

        q.getSampleRecordsDefinition().addRecord(rec2);

        Alternative alt1 = Alternative.createAlternative();
        alt1.setName("PDF/A ToolA");
        alt1.setDescription("Convert to PDF/A using this new tool named 'A'");
        q.getAlternativesDefinition().addAlternative(alt1);

        Alternative alt2 = Alternative.createAlternative();
        alt2.setName("PDF/A ToolB");
        alt2.setDescription("Convert to PDF/A using the well-tested tool 'B'");
        q.getAlternativesDefinition().addAlternative(alt2);

        Decision d2 = new Decision();
        d2.setDecision(GoDecision.GO);
        d2.setActionNeeded("also no actions needed");
View Full Code Here

Examples of eu.planets_project.pp.plato.model.Alternative

        p.getProjectBasis().setDocumentTypes("This is a test documentation string.");
        p.getPlanProperties().setOrganization("ICW - Icebears for Climate warming");
        p.getSampleRecordsDefinition().setSamplesDescription("yes yes i know");
        p.getState().setValue(PlanState.ANALYSED);
        p.setTree(t);
        Alternative alt = new Alternative();
        alt.setName("Alternative Name");
        p.getAlternativesDefinition().getAlternatives().add(alt);
        p.getAlternativesDefinition().getAlternatives().add(alt);

        em.persist(p);
View Full Code Here

Examples of eu.planets_project.pp.plato.model.Alternative

        // are there experiments which can be run automated?
        hasAutomatedExperiments.setBool(false);
        Iterator<Alternative> iter = consideredAlternatives.iterator();
        while (iter.hasNext() && !hasAutomatedExperiments.isBool()) {
            Alternative a = iter.next();
            if (a.isExecutable()) {
                hasAutomatedExperiments.setBool(true);
            }
        }

        // add empty result files where missing (only for considered alternatives!)
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.