Mercurial > hg > Members > tatsuki > Alice
diff src/alice/test/topology/aquarium/AutoIncrement.java @ 217:b5c642ba998e working
change as** method and remove "local" key in TEST
author | sugi |
---|---|
date | Wed, 27 Mar 2013 20:02:38 +0900 |
parents | 21bd8af1cf26 |
children | ccce30f84380 |
line wrap: on
line diff
--- a/src/alice/test/topology/aquarium/AutoIncrement.java Wed Mar 27 19:38:33 2013 +0900 +++ b/src/alice/test/topology/aquarium/AutoIncrement.java Wed Mar 27 20:02:38 2013 +0900 @@ -12,14 +12,14 @@ private float max; public AutoIncrement(String key,int index){ - this.number.setKey("local", "maxsize"); - this.position.setKey("local", key, index); + this.number.setKey("maxsize"); + this.position.setKey(key, index); } @Override public void run() { - max = this.number.data.asInteger(this.number)*2-1+0.3f; - FishPoint fp = this.position.data.asClass(FishPoint.class); + max = this.number.asInteger()*2-1+0.3f; + FishPoint fp = this.position.asClass(FishPoint.class); if (fp.getX()+0.01>max){ fp.setXYZ(min, fp.getY(), fp.getZ()); } else if (fp.getX()+0.01< min){ @@ -29,7 +29,7 @@ fp.setXYZ(fp.getX()+0.01f, fp.getY(), fp.getZ()); } - ods.update("local", position.key, fp); + ods.update(position.key, fp); synchronized(this){ try { // TODO