Mercurial > hg > Database > Alice
view src/main/java/alice/test/topology/ring/RingTopologyConfig.java @ 345:8f71c3e6f11d
Change directory structure Maven standard
author | sugi |
---|---|
date | Wed, 16 Apr 2014 18:26:07 +0900 |
parents | |
children | aefbe41fcf12 |
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]); } } } }