Mercurial > hg > Papers > 2015 > nozomi-midterm
annotate source/afterCompress.java @ 2:026e38c007dc
writed
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 26 Oct 2015 16:10:32 +0900 |
parents | |
children |
rev | line source |
---|---|
2 | 1 public class RemoteIncrement extends CodeSegment { |
2 | |
3 public Receiver num = ids.create(CommandType.TAKE); | |
4 | |
5 @Override | |
6 public void run() { | |
7 int num = this.num.asInteger(); | |
8 System.out.println("[CodeSegment] " + num++); | |
9 if (num == 10) System.exit(0); | |
10 | |
11 RemoteIncrement cs = new RemoteIncrement(); | |
12 cs.num.setKey("compressedremote", "num"); | |
13 | |
14 ods.put("compressedlocal", "num", num); | |
15 } | |
16 | |
17 } |