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; }
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(); }
public void addChild(CloudNode child) { this.children.put(child.getTreeId(), child); }