Examples of generate()


Examples of cc.redberry.core.indexgenerator.IndexGenerator.generate()

        IndexGenerator generator = new IndexGenerator(forbiddenGeneratorIndices);//also sorts allForbidden array
        for (Integer index : dummyIndices)
            if (Arrays.binarySearch(allForbidden, index) >= 0 && Arrays.binarySearch(from, index) < 0) {
                fromL.add(index);
                toL.add(generator.generate(IndicesUtils.getType(index)));
            }

        int[] _from = fromL.toArray(), _to = toL.toArray();
        ArraysUtils.quickSort(_from, _to);
View Full Code Here

Examples of cc.redberry.core.indexgenerator.IndexGeneratorFromData.generate()

        int[] from = fromL.toArray(), to = new int[fromL.size()];
        Arrays.sort(from);
        int i;
        IndexGeneratorFromData generator = new IndexGeneratorFromData(allowedDummiesNames);
        for (i = from.length - 1; i >= 0; --i)
            to[i] = generator.generate(IndicesUtils.getType(from[i]));

        return applyIndexMapping(tensor, new IndexMapper(from, to), false);
    }

    /**
 
View Full Code Here

Examples of cc.redberry.core.indexgenerator.IndexGeneratorImpl.generate()

                    }

                    for (j = indices.length - 1; j >= 0; --j)
                        indices[j] = setRawState(getRawStateInt(var.getIndices().get(j)),
                                ig.generate(getType(var.getIndices().get(j))));
                    varIndices = UnsafeIndicesFactory.createIsolatedUnsafeWithoutSort(null, indices);
                    var = Tensors.setIndices(var, varIndices);
                    __from = Tensors.fieldDerivative(__from, varIndices.getInverted(), i);
                    __to = new DifferentiateTransformation(var).transform(__to);
                    --order;
View Full Code Here

Examples of ch.epfl.lbd.datamining.structure.Combiner.generate()

  @Override
  public void consume(Trajectory trj){
    boolean shared = false;
    //retrieving all trajectory combinations that has at least 3 moves
    Combiner trjCombinations = new Combiner();
    ArrayList<ArrayList<Integer>> movesId = trjCombinations.generate(trj.getNumberOfMoves(), 3);
   
    for(int j = 0 ; j < movesId.size() ; j++ ){
      Trajectory subTrajectory = trj.getSubTrajectory(movesId.get(j));
      for(int i = 0 ; i < this.outputs.size() ; i++){
        if(similar(subTrajectory,this.outputs.get(i))){
View Full Code Here

Examples of checkboard.model.MutilatedModel.generate()

public class Checkboard {

  public static void main(String[] args) {

    Model model = new MutilatedModel(4, 4);
    StatementPrinter.print(model.generate(), System.out);
  }
}
View Full Code Here

Examples of circumflex.docco.DoccoBatch.generate()

    DoccoBatch db = new DoccoBatch();
    if (customResources != null)
      for (String res : customResources)
        db.addCustomResource(res);
    getLog().info("Generating docco in " + db.outputPath());
    db.generate();
  }
}
View Full Code Here

Examples of civquest.map.MapGenerator.generate()

  // Just for adding a sample map as long as this can't be done in a proper way
  private void constructMap() throws ConfigurationException {
    Game game = Game.getGame();
    MapGenerator mg = new MapGenerator(game.getRegistry());
    mg.generate();   
  }

  // This method serves for adding some players/nations, as long as this
  // can't be done in a regular way
  private void addSomePlayersAndNations()
View Full Code Here

Examples of cn.jhc.um.generator.PathGenerator.generate()

      if( !checker.checkFileExtension(fileExt) ) {
        out.println(buildResponseScript(editorId, destUrl, bundle.getString(MSG_EXT_VIOLATED)));
        return;
      }

      String path = pathGenerator.generate(request, fileName);
      int last = path.lastIndexOf(File.separator);
      if(last > 0) {
        File lastDir = new File(uploadRoot, path.substring(0, last));
        if(!lastDir.exists())
          lastDir.mkdirs();
View Full Code Here

Examples of cn.org.zeronote.orm.dao.parser.ParamTransformGenerator.generate()

  public <T> List<T> queryForPojoList(String sql, Map<String, Object> params,
      Class<T> pojoType) throws DataAccessException {
    logger.debug("Query Ora SQL:{}", sql);
    // SQL变换
    ParamTransformGenerator generator = new ParamTransformGenerator(sql, params);
    generator.generate();
    String sql2 = generator.getSql()// 将:字段名方式,整理成?方式
    Object[] args = generator.getArgs();
    return queryForPojoList(sql2, args, pojoType);
  }
 
View Full Code Here

Examples of com.adobe.epubcheck.api.Report.generate()

        if (useCustomMessageFile)
        {
          report.setCustomMessageFile(customMessageFile.getAbsolutePath());
        }
        returnValue = processFile(report);
        int returnValue2 = report.generate();
        if (returnValue == 0)
        {
          returnValue = returnValue2;
        }
      }
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.