Mercurial > hg > Members > tatsuki > Alice
view src/alice/test/topology/fish/GetStartX.java @ 212:b5daccf36104 working
add Receiver state pattern
author | one |
---|---|
date | Wed, 27 Mar 2013 17:30:52 +0900 |
parents | 0b25b48116b6 |
children | fec0726bb126 |
line wrap: on
line source
package alice.test.topology.fish; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class GetStartX extends CodeSegment { public Receiver startX = ids.create(CommandType.PEEK); @Override public void run() { int startX = this.startX.data.asInteger(this.startX); System.out.println("GetStartX: " + startX); GetStartX cs = new GetStartX(); cs.startX.setKey("local", "startX", this.startX.data.index); } }