Mercurial > hg > Members > tatsuki > Alice
view src/alice/test/topology/ring/RingTopologyConfig.java @ 62:ead04b496305
change print relay count to node num on ring
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 09 Feb 2012 17:53:24 +0900 |
parents | a76e603c43a0 |
children | 4a2ecd0a5e8f |
line wrap: on
line source
package alice.test.topology.ring; import alice.topology.node.TopologyNodeConfig; public class RingTopologyConfig extends TopologyNodeConfig { public int count = 10; public int size = 10; public int nodeNum = 10; public RingTopologyConfig(String[] args) { super(args); for (int i = 0; i < args.length; i++) { if ("-count".equals(args[i])) { this.count = new Integer(args[++i]); } else if ("-size".equals(args[i])) { this.size = new Integer(args[++i]); } else if ("-nodeNum".equals(args[i])) { this.nodeNum = new Integer(args[++i]); } } } }