comparison src/main/java/alice/test/topology/aquarium/SetLocation.java @ 419:aefbe41fcf12 dispose

change tab to space
author sugi
date Tue, 15 Jul 2014 16:00:22 +0900
parents 8f71c3e6f11d
children e91a574b69de
comparison
equal deleted inserted replaced
418:a269a019f5f8 419:aefbe41fcf12
4 import alice.datasegment.CommandType; 4 import alice.datasegment.CommandType;
5 import alice.datasegment.Receiver; 5 import alice.datasegment.Receiver;
6 6
7 7
8 public class SetLocation extends CodeSegment{ 8 public class SetLocation extends CodeSegment{
9 9
10 private Receiver position = ids.create(CommandType.PEEK); 10 private Receiver position = ids.create(CommandType.PEEK);
11 private MakeObject obj; 11 private MakeObject obj;
12 12
13 public SetLocation(MakeObject obj ,String key, int index){ 13 public SetLocation(MakeObject obj ,String key, int index){
14 this.obj = obj; 14 this.obj = obj;
15 this.position.setKey(key,index); 15 this.position.setKey(key,index);
16 } 16 }
17 17
18 @Override 18 @Override
19 public void run(){ 19 public void run(){
20 FishPoint fp = this.position.asClass(FishPoint.class); 20 FishPoint fp = this.position.asClass(FishPoint.class);
21 obj.setLocation(fp.getX(), fp.getY(), fp.getZ()); 21 obj.setLocation(fp.getX(), fp.getY(), fp.getZ());
22 new SetLocation(obj, position.key, position.index); 22 new SetLocation(obj, position.key, position.index);
23 23
24 } 24 }
25 25
26 26
27 } 27 }