Mercurial > hg > Database > Alice
view src/main/java/alice/test/topology/fish/SendWidth.java @ 345:8f71c3e6f11d
Change directory structure Maven standard
author | sugi |
---|---|
date | Wed, 16 Apr 2014 18:26:07 +0900 |
parents | |
children | aefbe41fcf12 |
line wrap: on
line source
package alice.test.topology.fish; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class SendWidth extends CodeSegment { Receiver width = ids.create(CommandType.PEEK); @Override public void run() { int width = this.width.asInteger(); ods.put("parent", "widths", width); System.out.println("send widths: " + width); SendWidth cs = new SendWidth(); cs.width.setKey("width", this.width.index); } }