Mercurial > hg > Database > Alice
view src/main/java/alice/test/topology/ring/RingTopologyConfig.java @ 419:aefbe41fcf12 dispose
change tab to space
author | sugi |
---|---|
date | Tue, 15 Jul 2014 16:00:22 +0900 |
parents | 8f71c3e6f11d |
children |
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 = Integer.parseInt(args[++i]); } else if ("-size".equals(args[i])) { this.size = Integer.parseInt(args[++i]); } else if ("-nodeNum".equals(args[i])) { this.nodeNum = Integer.parseInt(args[++i]); } } } }