Ejemplo n.º 1
0
 /** Compute random node ordering */
 public Queue<QEntry> computeRandomNodeOrdering() {
   Queue<QEntry> queue = new PriorityQueue<QEntry>();
   List<Long> randOrderList =
       CommonUtils.generateRandomOrder(new ArrayList<Long>(graph.nodes.keySet()));
   for (Long node : randOrderList) {
     queue.add(new QEntry(node, 0));
   }
   return queue;
 }
Ejemplo n.º 2
0
 static {
   VirtualFile vf = Play.getVirtualFile("public/js/treeResource/bulletinOrg.js");
   String json = CommonUtils.readJsonConfigFile2String(vf.inputstream());
   bulletinClassifies =
       new Gson().fromJson(json, new TypeToken<List<BulletinClassify>>() {}.getType());
 }