Mercurial > hg > Database > Alice
comparison 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 |
comparison
equal
deleted
inserted
replaced
344:9f97ec18f8c5 | 345:8f71c3e6f11d |
---|---|
1 package alice.test.topology.ring; | |
2 | |
3 import alice.topology.node.TopologyNodeConfig; | |
4 | |
5 public class RingTopologyConfig extends TopologyNodeConfig { | |
6 | |
7 public int count = 10; | |
8 public int size = 10; | |
9 public int nodeNum = 10; | |
10 | |
11 public RingTopologyConfig(String[] args) { | |
12 super(args); | |
13 for (int i = 0; i < args.length; i++) { | |
14 if ("-count".equals(args[i])) { | |
15 this.count = Integer.parseInt(args[++i]); | |
16 } else if ("-size".equals(args[i])) { | |
17 this.size = Integer.parseInt(args[++i]); | |
18 } else if ("-nodeNum".equals(args[i])) { | |
19 this.nodeNum = Integer.parseInt(args[++i]); | |
20 } | |
21 } | |
22 } | |
23 | |
24 } |