diff src/alice/test/topology/aquarium/SetLocation.java @ 178:1b532146b355 working

minor change
author e095732
date Sun, 03 Feb 2013 18:20:46 +0900
parents 6a69891b7232
children b5daccf36104
line wrap: on
line diff
--- a/src/alice/test/topology/aquarium/SetLocation.java	Tue Jan 29 15:25:22 2013 +0900
+++ b/src/alice/test/topology/aquarium/SetLocation.java	Sun Feb 03 18:20:46 2013 +0900
@@ -9,12 +9,10 @@
 	
 	private Receiver position = ids.create(CommandType.PEEK);
 	private MakeObject obj;
-	private String key;
-	int range;
+	private int range; // should be DS
 	
-	public SetLocation(MakeObject obj ,String key,int index,int range){
+	public SetLocation(MakeObject obj ,String key, int index, int range){
 		this.obj = obj;
-		this.key = key;
 		this.range = range;
 		this.position.setKey("local",key,index);
 	}
@@ -23,7 +21,7 @@
 	public void run(){
 		FishPoint fp = this.position.asClass(FishPoint.class);
 		obj.setLocation(fp.getX(), fp.getY(), fp.getZ());
-		new SetLocation(this.obj, this.key, this.position.index, this.range);
+		new SetLocation(obj, position.key, position.index, range);
 					
 	}