Mercurial > hg > Members > tatsuki > Alice
view src/alice/test/topology/ring/RingTopologyConfig.java @ 65:ca42a2c8ac22
add local access api
author | kazz |
---|---|
date | Thu, 09 Feb 2012 19:33:46 +0900 |
parents | ead04b496305 |
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]); } } } }