Mercurial > hg > Database > Alice
view 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 |
line wrap: on
line source
package alice.daemon; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class MulticastIncrement extends CodeSegment { public Receiver num = ids.create(CommandType.TAKE); @Override public void run() { int num = this.num.asInteger(); System.out.println("[CodeSegment] " + num++); if (num == 10) System.exit(0); MulticastIncrement cs = new MulticastIncrement(); cs.num.setKey("multicast", "num"); ods.put("multicast", "num", num); } }