diff src/alice/test/topology/fishmodel/beta/CheckLocalIndex.java @ 109:96674c803853 working

set background
author sugi
date Sun, 15 Jul 2012 20:48:01 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/alice/test/topology/fishmodel/beta/CheckLocalIndex.java	Sun Jul 15 20:48:01 2012 +0900
@@ -0,0 +1,23 @@
+package alice.test.topology.fishmodel.beta;
+
+import alice.codesegment.CodeSegment;
+import alice.datasegment.CommandType;
+import alice.datasegment.Receiver;
+
+public class CheckLocalIndex extends CodeSegment {
+
+	private Receiver data = ids.create(CommandType.PEEK);
+	String key;
+	
+	public CheckLocalIndex(String key, int index){
+		this.key = key;
+		this.data.setKey("local", this.key, index);
+	}
+	
+	@Override
+	public void run() {
+		new Update(this.key, this.data);
+		
+	}
+
+}