Esempio n. 1
0
  /**
   * do change kernel events
   *
   * @param index : kernel index in matched kernel list
   * @return kernel json in 30%
   */
  public String changeKernel(int index) {

    // System.out.println("[change kernel]"+index);
    matchKernelList = kernelMatch.getOneMatchKernel(index);
    kernelOperation.init(searchAuthorList, matchKernelList);
    return kernelOperation.toJSON(30);
  }
Esempio n. 2
0
  /** init the model init the matched kernel list and search author list */
  public void init(String kernelfile, List<Integer> searchAuthorList) {

    this.searchAuthorList = searchAuthorList;
    kernelMatch = new KernelMatch();
    matchKernelList = kernelMatch.getOneMatchKernel(kernelfile, searchAuthorList, 0);
    kernelOperation = new KernelOperation();
    kernelOperation.init(searchAuthorList, matchKernelList);
  }