Examples of convert()


Examples of dk.brics.relaxng.converter.dtd.DTD2RestrRelaxNG.convert()

      for (Map.Entry<String,String> e : m1.entrySet())
        types.put(e.getKey(), m3.get(m2.get(e.getValue())));
    } else if (u.endsWith(".dtd")) {
      DTD2RestrRelaxNG dtd2rrng = new DTD2RestrRelaxNG();
      if (extend)
        rrng2xg.extend(rngparser.parse(dtd2rrng.convert(url), url));
      else
        xg = rrng2xg.convert(rngparser.parse(dtd2rrng.convert(url), url));
      Map<String,String> m1 = dtd2rrng.getNameMap();
      Map<String,String> m2 = rngparser.getTopLevelNewNames();
      Map<String,SequenceNode> m3 = rrng2xg.getDefineNodes();
View Full Code Here

Examples of dk.brics.relaxng.converter.xmlschema.XMLSchema2RestrRelaxNG.convert()

    RNGParser rngparser = new RNGParser();
    RestrRelaxNG2XMLGraph rrng2xg = new RestrRelaxNG2XMLGraph(xg, datatypes);
    if (u.endsWith(".xsd")) {
      XMLSchema2RestrRelaxNG xsd2rrng = new XMLSchema2RestrRelaxNG(datatypes);
      if (extend)
        rrng2xg.extend(rngparser.parse(xsd2rrng.convert(url), url));
      else
        xg = rrng2xg.convert(rngparser.parse(xsd2rrng.convert(url), url));
      Map<String,String> m1 = xsd2rrng.getNameMap();
      Map<String,String> m2 = rngparser.getTopLevelNewNames();
      Map<String,SequenceNode> m3 = rrng2xg.getDefineNodes();
View Full Code Here

Examples of dk.brics.string.flow.operations.FlowGraph2Grammar.convert()

        if (log.isDebugEnabled()) {
            log.debug(g.toDot(nodes));
        }
        log.info("Transforming into grammar...");
        FlowGraph2Grammar f2g = new FlowGraph2Grammar(g);
        Grammar r = f2g.convert();
        Set<Nonterminal> hs_nt = new HashSet<Nonterminal>();
        for (Node hn : nodes) {
            hs_nt.add(f2g.getNonterminal(hn));
        }
        if (log.isDebugEnabled()) {
View Full Code Here

Examples of dk.brics.string.grammar.operations.Grammar2MLFA.convert()

            log.debug(r.toString() + "Hotspots: " + hs_nt);
        }
        log.info("Converting to MLFA...");

        Grammar2MLFA gm = new Grammar2MLFA(r);
        MLFA mlfa = gm.convert();

        propagateTaint(r);

        for (Node n : nodes) {
            Nonterminal nt = f2g.getNonterminal(n);
View Full Code Here

Examples of dk.brics.string.intermediate.operations.Intermediate2FlowGraph.convert()

        //
        //  Create flow graph
        //
        log.info("Generating flow graph...");
        Intermediate2FlowGraph tr = new Intermediate2FlowGraph(app);
        FlowGraph g = tr.convert(alias, reachingDefinitions, assertions);
       
        // Notify diagnostics of flow graph
        diagnostics.flowGraphCompleted(g);
       
        Map<Statement, Node> m2 = tr.getTranslationMap();
View Full Code Here

Examples of edu.brown.utils.ParameterMangler.convert()

    public MarkovEstimatorState startTransactionImpl(Long txn_id, int base_partition, Procedure catalog_proc, Object[] args) {
        long timestamp = -1l;
        if (this.profiler != null) timestamp = ProfileMeasurement.getTime();
       
        ParameterMangler mangler = this.manglers[catalog_proc.getId()];
        if (mangler != null) args = mangler.convert(args);
       
        assert (catalog_proc != null);
        long start_time = EstTime.currentTimeMillis();
        if (debug.val)
            LOG.debug(String.format("%s - Starting transaction estimation [partition=%d]",
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.EquationOperator.convert()

          "{ defineState(Continuous);" +
          "p( E | X ) =  3 * X - 2; }"
        );
           
        EquationOperator e = new EquationOperator();
        e.convert( EDB.This().get("ROOT.NODES.E.EQUATION"), "X" );
  }
 
  public void test2() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.converter.SDB2UDB.convert()

    //saveNetworkFile(new File(pn.getName()+".xml"), pn);
   
    uToS.convert(pn);
    //EDB.This().get("ROOT").print("");
    CPSCompilerMain.This().compile("run(DMP);")
    ProbabilisticNetwork newNet = sToU.convert(EDB.This().get("ROOT.ENGINES.DMP.NODES"));
    this.setNetwork(newNet);
    iteration_size = EDB.This().get("ROOT.ENGINES.DMP.ITERATION_SIZE").getDataByDouble();
       
    for (Node node : pn.getNodes()) {
      if (node instanceof TreeVariable) {
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.converter.UDB2SDB.convert()

    System.out.println("test_DMP");
    long time = System.nanoTime();
   
    CPSCompilerMain.This().InitCompiler();
    UDB2SDB uToS = new UDB2SDB()
    uToS.convert(pn);
    long time1 = (System.nanoTime()- time);
    System.out.println("Time for converting from unbbayes to cps:  " + (System.nanoTime()- time) + "  nano sec");
   
     
    long time2 = System.nanoTime();
View Full Code Here

Examples of eu.planets_project.pp.plato.services.crib_integration.tu_client.TUMigrationBroker.convert()

            String[] urlArr = urls.toArray(new String[]{});
            /*
             * convert source object
             */
            TUMigrationBroker migrationBroker = new TUMigrationBroker();
            eu.planets_project.pp.plato.services.crib_integration.tu_client.MigrationResult migrationResult = migrationBroker.convert(representationObject, urlArr);
           
            /*
             * collect migration results
             */
            MigrationResult result = new MigrationResult();
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.