annotate src/test/java/alice/daemon/MulticastIncrement.java @ 369:0c24894db37e multicast

MulticastDataSegment's extends change from LocalDataSegment to RemoteDataSegment
author sugi
date Tue, 20 May 2014 15:00:21 +0900
parents f38cafa457c9
children aefbe41fcf12
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
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
9 public Receiver num = ids.create(CommandType.TAKE);
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
10
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
11 @Override
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
12 public void run() {
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
13 int num = this.num.asInteger();
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
14 System.out.println("[CodeSegment] " + num++);
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
15 if (num == 10) System.exit(0);
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
16 MulticastIncrement cs = new MulticastIncrement();
369
0c24894db37e MulticastDataSegment's extends change from LocalDataSegment to RemoteDataSegment
sugi
parents: 368
diff changeset
17 cs.num.setKey("multicast", "num");
368
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
18
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
19 ods.put("multicast", "num", num);
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
20
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
21 }
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
22
f38cafa457c9 add MulticastDataSegment Test
sugi
parents:
diff changeset
23 }