Mercurial > hg > Papers > 2015 > sugi-master
annotate paper/source/MulticastIncrement.java @ 6:3c415702fab0
modify chapter3
author | sugi |
---|---|
date | Tue, 06 Jan 2015 12:47:49 +0900 |
parents | |
children | cefaf86da446 |
rev | line source |
---|---|
6 | 1 public class MulticastIncrement extends CodeSegment { |
2 | |
3 private Receiver num = ids.create(CommandType.TAKE); | |
4 | |
5 public MutlicastIncrement() { | |
6 num.setKey("multicast", "num"); | |
7 } | |
8 | |
9 @Override | |
10 public void run() { | |
11 int num = this.num.asInteger(); | |
12 System.out.println("[CodeSegment] " + num); | |
13 if (num == 10) System.exit(0); | |
14 | |
15 new MulticastIncrement(); | |
16 | |
17 ods.put("multicast", "num", ++num); | |
18 } | |
19 | |
20 } |