Examples of generate()


Examples of scenic3.apt.ScenicControllerGenerator.generate()

            }
            ScenicControllerDesc desc = new ScenicControllerDesc(pageClassName, rootPackage, pagePath, actionPath,
                    d.getSimpleName(), method, args.toArray(new Argument[args.size()]));
            PrintWriter writer = env.getFiler().createSourceFile(desc.qName);
            ScenicControllerGenerator generator = new ScenicControllerGenerator(desc, writer);
            generator.generate();
            return desc;
        }
    }

}
View Full Code Here

Examples of sql.optimizers.Optimizer.generate()

    return map;
  }

  public QueryPlan generatePlan(Map map) {
    final Optimizer opt = pickOptimizer(map);
    return opt.generate();
  }

  private Optimizer pickOptimizer(Map map) {
    final String optStr = SystemParameters.getString(map, "DIP_OPTIMIZER_TYPE");
    LOG.info("Selected optimizer: " + optStr);
View Full Code Here

Examples of sun.security.x509.CertAndKeyGen.generate()

      int days = 365;

      CertAndKeyGen keypair;
      keypair = new CertAndKeyGen(keyAlgName, sigAlgName, providerName);

      keypair.generate(keysize);

      PrivateKey privKey = keypair.getPrivateKey();
      X500Name x500name = new X500Name("CN=" + name);
     
      X509Certificate cert
View Full Code Here

Examples of uk.co.halfninja.randomnames.NameGenerator.generate()

   */
  @Test
  public void test() {
    NameGenerator generator = NameGenerators.standardGenerator();
    for (int i=0; i<10; i++) {
      System.out.println( generator.generate(Gender.male) );
      System.out.println( generator.generate(Gender.female) );
    }
  }

}
View Full Code Here

Examples of uk.gov.nationalarchives.droid.report.planets.xml.PlanetsXMLGenerator.generate()

        planetsData.getProfileStat().setProfileSaveDate(profile.getDateCreated());

        planetsData.setTopLevelItems(ReportUtils.toResourcePaths(profile.getProfileSpec().getResources()));

        PlanetsXMLGenerator planetXMLGenerator = new PlanetsXMLGenerator(observer, nameAndPathOfTheFile, planetsData);
        planetXMLGenerator.generate();

        long stopTime = System.currentTimeMillis();
        log.info(String.format("Time for profile [%s]: %s ms", profileId, stopTime - startTime));
    }
View Full Code Here

Examples of util.GraphGenerator.generate()

//                }
//            }

//                long generatingGraphStartTime = System.nanoTime();
                GraphGenerator generator = new RandomIntervalGraphGenerator();
                Graph graph = (Graph) generator.generate(num);
//                long generatingGraphEndTime = System.nanoTime() - generatingGraphStartTime;
//            System.out.println("Generation graph time is - " + generatingGraphEndTime);
//
////            Graph graph = new Graph(a);
//            System.out.println("The matrix is:");
View Full Code Here

Examples of util.RandomIntervalGraphGenerator.generate()

//                }
//            }

//                long generatingGraphStartTime = System.nanoTime();
                GraphGenerator generator = new RandomIntervalGraphGenerator();
                Graph graph = (Graph) generator.generate(num);
//                long generatingGraphEndTime = System.nanoTime() - generatingGraphStartTime;
//            System.out.println("Generation graph time is - " + generatingGraphEndTime);
//
////            Graph graph = new Graph(a);
//            System.out.println("The matrix is:");
View Full Code Here

Examples of vash.Output.generate()

      TestOperationIntegration.compare(actual, width, height, String.format("./test/reference-%s/%03d.png", name, i), null);
     
      OutputParameters op = new OutputParameters(String.format("./gallery-%s/%03d.png", name, i), width, height);
      Output out = new Output(op, tree);
      try {
        out.generate();
      } catch(IOException e) {
        System.err.println(e.toString());
        Assert.assertTrue(false);
      }
    }
View Full Code Here

Examples of weka.core.TestInstances.generate()

    test = TestInstances.forCapabilities(m_FilteredClassifier.getCapabilities());
    test.setNumRelational(0);
    test.setClassIndex(TestInstances.CLASS_IS_LAST);

    result = test.generate();
   
    return result;
  }

  public void testTypical() {
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.