Mercurial > hg > Database > Alice
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 |
rev | line source |
---|---|
368 | 1 package alice.daemon; |
2 | |
3 import alice.codesegment.CodeSegment; | |
4 import alice.datasegment.CommandType; | |
5 import alice.datasegment.Receiver; | |
6 | |
7 public class MulticastIncrement extends CodeSegment { | |
8 | |
9 public Receiver num = ids.create(CommandType.TAKE); | |
10 | |
11 @Override | |
12 public void run() { | |
13 int num = this.num.asInteger(); | |
14 System.out.println("[CodeSegment] " + num++); | |
15 if (num == 10) System.exit(0); | |
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 | 18 |
19 ods.put("multicast", "num", num); | |
20 | |
21 } | |
22 | |
23 } |