Examples of generate()


Examples of net.sertik.genesia.world.WorldGenerator.generate()

          }
          game.getPlayers().add(player);
        }

        WorldGenerator worldGenerator = (WorldGenerator) worldCreation.getSelectedToggle().getUserData();
        game.setWorld(worldGenerator.generate(64, 256));

        genesia.setGame(game);
      }
    });
View Full Code Here

Examples of net.sf.asap.ASAP.generate()

      asap.getWavHeader(buffer, format);
      os.write(buffer, 0, ASAP.WAV_HEADER_BYTES);
    }
    int n_bytes;
    do {
      n_bytes = asap.generate(buffer, format);
      os.write(buffer, 0, n_bytes);
    } while (n_bytes == buffer.length);
    os.close();
    outputFilename = null;
    song = -1;
View Full Code Here

Examples of net.sf.laja.parser.grammar.element.GrammarElement.generate()

      if (statementList != null && comments.hasElements()) {
        statementList.add(new Statement(phase, comments));
      }
      String name = def.getVarName();
      GrammarElement grammarElement = def.getVal();
      grammarElement.generate(phase, false, generateDeclarations, true, false, null, name, name, "*", "*", grammarData, statementList);
    }
  }

  private void generateDeclarationsIfForwardRef(int phase, GrammarData grammarData,
      ParsingSettings parsingSettings, StatementList statementList) {
View Full Code Here

Examples of net.sf.laja.template.Template.generate()

      Template template = generateCommand.parseTemplate(settings.getSystemImportsFilename());

      for (PrepareGenerateCommand prepareGenerateCommand : inargsParser.getPrepareGenerateCommands()) {
        prepareGenerateCommand.execute(template);
      }
      template.generate();
    }
  }

  // Yes, this is code duplication, but this code is only used for debugging purpose and we don't want to mess up the method generateTemplate.
  private void printTemplate(InargsParser inargsParser) {
View Full Code Here

Examples of net.sf.mrailsim.main.MapReader.generate()

   
    mapReader.addRow( "1 5 5 5 2" );
    mapReader.addRow( "6 . . . 6" );
    mapReader.addRow( "4 5 5 5 3" );
   
    mapReader.generate();
    mapReader.output();
  }

}
View Full Code Here

Examples of net.solosky.maplefetion.util.AuthGeneratorV4.generate()

      Matcher mc = pt.matcher(wwwHeader.getValue());
      if(mc.matches()) {
        String passHex = PasswordEncrypterV4.encryptV4(this.user.getUserId(),this.user.getPassword());
        AuthGeneratorV4 auth = new AuthGeneratorV4();
        String aeskey = ConvertHelper.byte2HexStringWithoutSpace(user.getAesKey());
          String response = auth.generate(mc.group(2), passHex, mc.group(1), aeskey);
          String authString ="Digest response=\""+response+"\",algorithm=\"SHA1-sess-v4\"";
          req.addHeader(SipcHeader.AUTHORIZATION, authString);
          req.addHeader("AK", "ak-value");
         
          String body = MessageTemplate.TMPL_USER_AUTH;
View Full Code Here

Examples of newExamples.gaia.cu4.du438.current_cycle.DmsSimuDU437.generate()

    // DU437 simulator
    DmsSimuDU437 dmsSimuDU437 = new DmsSimuDU437();
    OrbitalParams orbitalParams2 = dmsSimuDU437.generateOrbitalParams(
        star, massPlanet, period, timePeriastron, eccentricity, omega2, nodeAngle, inclination);
     
    StellarSource systemRandom    = dmsSimuDU437.generate(star, new Random());
    StellarSource systemOnePlanet = dmsSimuDU437.generateSystem(star, orbitalParams2);
   
    // Write sources to UMStellar file
    ArrayList<gaiasimu.universe.source.AstroSource> objList = new ArrayList<gaiasimu.universe.source.AstroSource>() ; // simulated data
    //objList.add( systemRandom );
View Full Code Here

Examples of nz.ac.waikato.modeljunit.GreedyTester.generate()

      tester.addCoverageMetric(new TransitionCoverage());
      tester.addCoverageMetric(new TransitionPairCoverage());
     
      tester.addListener(new StopOnFailureListener());
     
      tester.generate(10000);
     
      tester.printCoverage();
    }
   
    public void testAddDelRowModel()
View Full Code Here

Examples of nz.ac.waikato.modeljunit.RandomTester.generate()

        metric.clear();
        tester.reset();
        tester.setRandom(new Random(seed));
        int count = 0;
        while (metric.getPercentage() < 100.0) {
          tester.generate(1);
          if (model.getTime() > lastTime) {
            lastTime = model.getTime();
          } else {
            testSeqTime += lastTime;
            //System.out.println("added " + lastTime + " secs");
View Full Code Here

Examples of nz.ac.waikato.modeljunit.Tester.generate()

        metric.clear();
        tester.reset();
        tester.setRandom(new Random(seed));
        int count = 0;
        while (metric.getPercentage() < 100.0) {
          tester.generate(1);
          if (model.getTime() > lastTime) {
            lastTime = model.getTime();
          } else {
            testSeqTime += lastTime;
            //System.out.println("added " + lastTime + " secs");
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.