Mercurial > hg > Database > Alice
annotate src/main/java/alice/test/topology/share/SendData.java @ 345:8f71c3e6f11d
Change directory structure Maven standard
author | sugi |
---|---|
date | Wed, 16 Apr 2014 18:26:07 +0900 |
parents | |
children | aefbe41fcf12 |
rev | line source |
---|---|
345 | 1 package alice.test.topology.share; |
2 | |
3 import alice.codesegment.CodeSegment; | |
4 import alice.datasegment.CommandType; | |
5 import alice.datasegment.Receiver; | |
6 | |
7 public class SendData extends CodeSegment{ | |
8 private Receiver data = ids.create(CommandType.PEEK); | |
9 | |
10 public SendData(int index){ | |
11 this.data.setKey("data", index); | |
12 } | |
13 | |
14 @Override | |
15 public void run(){ | |
16 new SendData(this.data.index); | |
17 ods.put("parent", "data", this.data.getVal()); | |
18 } | |
19 | |
20 } |