Examples of generate()


Examples of forestry.apiculture.worldgen.WorldGenHiveSwamer.generate()

    while (i < 10) {
      i++;
      int spawnX = xCoord + worldObj.rand.nextInt(40 * 2) - 40;
      int spawnY = yCoord + worldObj.rand.nextInt(40);
      int spawnZ = zCoord + worldObj.rand.nextInt(40 * 2) - 40;
      if (generator.generate(worldObj, worldObj.rand, spawnX, spawnY, spawnZ)) {
        pendingSpawns.pop();
        break;
      }
    }

View Full Code Here

Examples of forestry.arboriculture.worldgen.WorldGenBalsa.generate()

    int z = (int) player.posZ;

    WorldGenerator gen = new WorldGenBalsa((ITreeGenData) PluginArboriculture.treeInterface.getTree(player.worldObj,
        TreeTemplates.templateAsGenome(PluginArboriculture.treeInterface.getTemplate("treeBalsa"))));

    gen.generate(player.worldObj, player.worldObj.rand, x, y, z);

  }
}
View Full Code Here

Examples of fr.obeo.releng.targetplatform.pde.TargetDefinitionGenerator.generate()

      _builder.append("target \"TP1\"");
      _builder.newLine();
      final TargetPlatform tp1 = this.parser.parse(_builder);
      final ResolvedTargetPlatform resolvedTargetPlatform = ResolvedTargetPlatform.create(tp1, this.indexBuilder);
      final TargetDefinitionGenerator gen = new TargetDefinitionGenerator();
      final String content = gen.generate(resolvedTargetPlatform, 1);
      StringConcatenation _builder_1 = new StringConcatenation();
      _builder_1.append("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>");
      _builder_1.newLine();
      _builder_1.append("<?pde?>");
      _builder_1.newLine();
View Full Code Here

Examples of freenet.support.HTMLNode.generate()

    if(!(count || keys)) {
      try {
        RequestStatus[] reqs = fcp.getGlobalRequests();
        MultiValueTable<String, String> pageHeaders = new MultiValueTable<String, String>();
        HTMLNode pageNode = handleGetInner(pageMaker, reqs, core.clientContext, request, ctx);
        writeHTMLReply(ctx, 200, "OK", pageHeaders, pageNode.generate());
        return;
      } catch (PersistenceDisabledException e) {
        sendPersistenceDisabledError(ctx);
        return;
      }
View Full Code Here

Examples of gdoku.generator.Generator.generate()

      System.out.printf("Generating file '%s' ...\n", args[2]) ;
      Document source = IODocument.readFromFile(documentPath) ;

      /* Generate result file */
      Generator g = new Generator(new File(outputFile), source) ;
      g.generate() ;
      g.close() ;
      System.out.printf("File successfully generated.\n") ;
    } catch (KameleonException e) {
      System.exit(1) ;
    }// try
View Full Code Here

Examples of generator.CodeGenerator.generate()

    SyntacticAnalyzer syntactic = new SyntacticAnalyzer( lexicon.analyze() );
    SyntaxTree tree = syntactic.analyze();
    TableBuilder builder = new TableBuilder( tree );
    CodeGenerator generator = new CodeGenerator( tree, builder.build() );
   
    generator.generate( "codigo.tm" );
  }
}
View Full Code Here

Examples of gnu.java.security.key.IKeyPairGenerator.generate()

        HashMap attributes = new HashMap();
        attributes.put(SRPKeyPairGenerator.SHARED_MODULUS, N);
        attributes.put(SRPKeyPairGenerator.GENERATOR, g);
        kpg.setup(attributes);

        KeyPair clientKP = kpg.generate();
        BigInteger A = ((SRPPublicKey) clientKP.getPublic()).getY();
        BigInteger a = ((SRPPrivateKey) clientKP.getPrivate()).getX();

        attributes.put(SRPKeyPairGenerator.USER_VERIFIER, v);
        kpg.setup(attributes);
View Full Code Here

Examples of gnu.java.security.key.dss.DSSKeyPairGenerator.generate()

      }

    map.put(DSSKeyPairGenerator.MODULUS_LENGTH, new Integer(512));
    map.put(DSSKeyPairGenerator.USE_DEFAULTS, new Boolean(false));
    kpg.setup(map);
    KeyPair kp = kpg.generate();

    BigInteger p1 = ((DSAPublicKey) kp.getPublic()).getParams().getP();
    BigInteger p2 = ((DSAPrivateKey) kp.getPrivate()).getParams().getP();
    harness.check(p1.equals(p2), "p1.equals(p2)");
View Full Code Here

Examples of gnu.java.security.key.rsa.RSAKeyPairGenerator.generate()

    map.put(RSAKeyPairGenerator.MODULUS_LENGTH, new Integer(1024));

    RSAKeyPairGenerator kpg = new RSAKeyPairGenerator();
    kpg.setup(map);

    KeyPair kp = kpg.generate();

    pubK = (RSAPublicKey) kp.getPublic();
    secK = (RSAPrivateKey) kp.getPrivate();
  }
View Full Code Here

Examples of gnu.javax.crypto.key.dh.GnuDHKeyPairGenerator.generate()

      }

    map.put(GnuDHKeyPairGenerator.PRIME_SIZE, new Integer(512));
    map.put(GnuDHKeyPairGenerator.EXPONENT_SIZE, new Integer(160));
    kpg.setup(map);
    KeyPair kp = kpg.generate();

    BigInteger p1 = ((GnuDHPublicKey) kp.getPublic()).getParams().getP();
    BigInteger p2 = ((GnuDHPrivateKey) kp.getPrivate()).getParams().getP();
    harness.check(p1.equals(p2), "p1.equals(p2)");
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.