diff src/alice/test/topology/fish/SendWidth.java @ 35:ac3b48c5f4da

share width each other with tree
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Fri, 20 Jan 2012 04:00:12 +0900
parents
children 0b25b48116b6
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/alice/test/topology/fish/SendWidth.java	Fri Jan 20 04:00:12 2012 +0900
@@ -0,0 +1,20 @@
+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);
+		
+		SendWidth cs = new SendWidth();
+		cs.width.setKey("local", "width", this.width.index);
+	}
+
+}