示例#1
0
 public Counter getCount() {
   Counter result = new Counter();
   result.addHigh(Math.round(high * (0.5 + (confidence * 0.5))));
   result.addLucky(low);
   if (!this.endNode) {
     for (CloudNode child : this.children.values()) {
       result.addHigh(child.getCount().getHigh());
       result.addLucky(child.getCount().getLucky());
     }
   }
   return result;
 }
示例#2
0
 public void report(Stack<String> stack, ReportFormater report) {
   report.printNode(stack, this);
   report.descend();
   stack.push(this.treeId);
   if (!this.endNode) {
     for (CloudNode child : this.children.values()) {
       child.report(stack, report);
     }
   }
   stack.pop();
   report.elevate();
 }
示例#3
0
 public void addChild(CloudNode child) {
   this.children.put(child.getTreeId(), child);
 }