Mercurial > hg > Applications > TreeVNC
diff src/main/java/jp/ac/u_ryukyu/treevnc/TreeManagement.java @ 418:0543c380308c
Move bottleneck Node to outside node list
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Dec 2015 13:48:21 +0900 |
parents | 4c670edf3065 |
children | ffe01c959cdd |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/TreeManagement.java Mon Dec 14 16:20:20 2015 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/TreeManagement.java Fri Dec 18 13:48:21 2015 +0900 @@ -41,7 +41,7 @@ * @param nodeNum * parent value */ - private void moveLastNodeToLostNodePosition(int nodeNum) { + public void moveLastNodeToLostNodePosition(int nodeNum) { nodeList.remove(nodeNum); if (nodeNum != nodeList.size()) { TreeVNCNode node = nodeList.removeLast(); @@ -131,7 +131,7 @@ * send reconnect to all children * @param deadNode */ - private void lostNodeConnection(TreeVNCNode deadNode) { + public void lostNodeConnection(TreeVNCNode deadNode) { if (nodeList.size() < deadNode.getTreeNum()+1) { return; }