annotate src/test/java/alice/daemon/MulticastIncrement.java @ 547:e91a574b69de dispose

remove index
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Tue, 18 Aug 2015 16:15:17 +0900
parents aefbe41fcf12
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
368
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
1 package alice.daemon;
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
2
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
3 import alice.codesegment.CodeSegment;
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
4 import alice.datasegment.CommandType;
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
5 import alice.datasegment.Receiver;
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
6
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
7 public class MulticastIncrement extends CodeSegment {
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
8
419
aefbe41fcf12 change tab to space
sugi
parents: 369
diff changeset
9 public Receiver num = ids.create(CommandType.TAKE);
368
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
10
419
aefbe41fcf12 change tab to space
sugi
parents: 369
diff changeset
11 @Override
aefbe41fcf12 change tab to space
sugi
parents: 369
diff changeset
12 public void run() {
aefbe41fcf12 change tab to space
sugi
parents: 369
diff changeset
13 int num = this.num.asInteger();
aefbe41fcf12 change tab to space
sugi
parents: 369
diff changeset
14 System.out.println("[CodeSegment] " + num++);
aefbe41fcf12 change tab to space
sugi
parents: 369
diff changeset
15 if (num == 10) System.exit(0);
aefbe41fcf12 change tab to space
sugi
parents: 369
diff changeset
16 MulticastIncrement cs = new MulticastIncrement();
547
e91a574b69de remove index
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 419
diff changeset
17 cs.num.setKey("multicast", "num", this);
419
aefbe41fcf12 change tab to space
sugi
parents: 369
diff changeset
18
aefbe41fcf12 change tab to space
sugi
parents: 369
diff changeset
19 ods.put("multicast", "num", num);
aefbe41fcf12 change tab to space
sugi
parents: 369
diff changeset
20
aefbe41fcf12 change tab to space
sugi
parents: 369
diff changeset
21 }
368
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
22
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
23 }