Mercurial > hg > Database > Alice
view src/alice/test/topology/share/SendData.java @ 212:b5daccf36104 working
add Receiver state pattern
author | one |
---|---|
date | Wed, 27 Mar 2013 17:30:52 +0900 |
parents | ae6ed9c35288 |
children | fec0726bb126 |
line wrap: on
line source
package alice.test.topology.share; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class SendData extends CodeSegment{ private Receiver data = ids.create(CommandType.PEEK); public SendData(int index){ this.data.setKey("local", "data", index); } @Override public void run(){ new SendData(this.data.data.index); ods.put("parent", "data", this.data.data.val); } }