Mercurial > hg > Members > tatsuki > Alice
annotate 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 |
rev | line source |
---|---|
30 | 1 package alice.test.topology.ring; |
2 | |
3 import alice.topology.node.TopologyNodeConfig; | |
4 | |
5 public class RingTopologyConfig extends TopologyNodeConfig { | |
60 | 6 |
45
ae24d5d40c10
add to calculate the time of RingTopology required
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
30
diff
changeset
|
7 public int count = 10; |
60 | 8 public int size = 10; |
62
ead04b496305
change print relay count to node num on ring
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
60
diff
changeset
|
9 public int nodeNum = 10; |
60 | 10 |
30 | 11 public RingTopologyConfig(String[] args) { |
12 super(args); | |
46 | 13 for (int i = 0; i < args.length; i++) { |
45
ae24d5d40c10
add to calculate the time of RingTopology required
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
30
diff
changeset
|
14 if ("-count".equals(args[i])) { |
ae24d5d40c10
add to calculate the time of RingTopology required
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
30
diff
changeset
|
15 this.count = new Integer(args[++i]); |
60 | 16 } else if ("-size".equals(args[i])) { |
17 this.size = new Integer(args[++i]); | |
62
ead04b496305
change print relay count to node num on ring
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
60
diff
changeset
|
18 } else if ("-nodeNum".equals(args[i])) { |
ead04b496305
change print relay count to node num on ring
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
60
diff
changeset
|
19 this.nodeNum = new Integer(args[++i]); |
45
ae24d5d40c10
add to calculate the time of RingTopology required
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
30
diff
changeset
|
20 } |
ae24d5d40c10
add to calculate the time of RingTopology required
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
30
diff
changeset
|
21 } |
30 | 22 } |
23 | |
24 } |