Mercurial > hg > Database > Alice
diff src/alice/test/topology/fishmodel/alpha/SendLocation.java @ 127:117dad267a9b working
add apiTest put
author | sugi |
---|---|
date | Mon, 06 Aug 2012 16:19:38 +0900 |
parents | f84e1684c6be |
children | 1044a79ce4ef |
line wrap: on
line diff
--- a/src/alice/test/topology/fishmodel/alpha/SendLocation.java Fri Aug 03 19:14:46 2012 +0900 +++ b/src/alice/test/topology/fishmodel/alpha/SendLocation.java Mon Aug 06 16:19:38 2012 +0900 @@ -20,21 +20,21 @@ @Override public void run() { - FishPoint FP = this.position.asClass(FishPoint.class); + FishPoint fp = this.position.asClass(FishPoint.class); - FP.setXY(FP.getX()+this.x, FP.getY()+this.y); + fp.setXY(fp.getX()+this.x, fp.getY()+this.y); /* - if (FP.getX()+this.x>max){ - FP.setXY(-1.0f, FP.getY()+this.y); - } else if (FP.getX()+this.x< min){ - FP.setXY(max, FP.getY()+this.y); + if (fp.getX()+this.x>max){ + FP.setXY(-1.0f, fp.getY()+this.y); + } else if (fp.getX()+this.x< min){ + fp.setXY(max, fp.getY()+this.y); } else { - FP.setXY(FP.getX()+this.x, FP.getY()+this.y); + fp.setXY(fp.getX()+this.x, fp.getY()+this.y); } */ - ods.update("local", "fish", FP); + ods.update("local", "fish", fp); }