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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30
b5a21baf0b07 implements RingTopology
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 package alice.test.topology.ring;
b5a21baf0b07 implements RingTopology
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
b5a21baf0b07 implements RingTopology
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 import alice.topology.node.TopologyNodeConfig;
b5a21baf0b07 implements RingTopology
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
b5a21baf0b07 implements RingTopology
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 public class RingTopologyConfig extends TopologyNodeConfig {
60
a76e603c43a0 add ring relay size
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 46
diff changeset
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
a76e603c43a0 add ring relay size
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 46
diff changeset
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
a76e603c43a0 add ring relay size
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 46
diff changeset
10
30
b5a21baf0b07 implements RingTopology
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 public RingTopologyConfig(String[] args) {
b5a21baf0b07 implements RingTopology
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 super(args);
46
1a498f436332 bug fix for time calculate
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 45
diff changeset
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
a76e603c43a0 add ring relay size
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 46
diff changeset
16 } else if ("-size".equals(args[i])) {
a76e603c43a0 add ring relay size
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 46
diff changeset
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
b5a21baf0b07 implements RingTopology
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 }
b5a21baf0b07 implements RingTopology
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23
b5a21baf0b07 implements RingTopology
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 }