# HG changeset patch # User e095732 # Date 1359884056 -32400 # Node ID 9bacc8b30c4bb7b18a20edb4bd7153c1587b6917 # Parent 5e6d40908c6093c4ebc78f64c3411b3a6dab9e29 minor change diff -r 5e6d40908c60 -r 9bacc8b30c4b fxml/aquarium.fxml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fxml/aquarium.fxml Sun Feb 03 18:34:16 2013 +0900 @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff -r 5e6d40908c60 -r 9bacc8b30c4b src/alice/test/topology/aquarium/fx/PositionController.java --- a/src/alice/test/topology/aquarium/fx/PositionController.java Sun Feb 03 17:49:26 2013 +0900 +++ b/src/alice/test/topology/aquarium/fx/PositionController.java Sun Feb 03 18:34:16 2013 +0900 @@ -7,7 +7,7 @@ public class PositionController extends CodeSegment{ private Receiver data = ids.create(CommandType.PEEK); - double max = 1600; + private double max = 1600; // should be DS public PositionController(String key){ this.data.setKey(key); @@ -30,11 +30,9 @@ FishData fd = data.asClass(FishData.class); if(fd.getX()+2.0>max){ - System.out.println("over "+this.data.key); fd.SetXYZ(0, fd.getY(), fd.getZ()); } else { - fd.SetXYZ(fd.getX()+3.0, fd.getY(), fd.getZ()); } diff -r 5e6d40908c60 -r 9bacc8b30c4b src/alice/test/topology/aquarium/fx/SetTranslation.java --- a/src/alice/test/topology/aquarium/fx/SetTranslation.java Sun Feb 03 17:49:26 2013 +0900 +++ b/src/alice/test/topology/aquarium/fx/SetTranslation.java Sun Feb 03 18:34:16 2013 +0900 @@ -33,14 +33,11 @@ public void run() { int startX = data2.asInteger(); int width = data3.asInteger(); - System.out.println(data2.val); FishData fd = data1.asClass(FishData.class); if (startX<=fd.getX()&& fd.getX()<=startX+width){ iv.setTranslateX(fd.getX() - startX); iv.setTranslateY(fd.getY()); iv.setTranslateZ(fd.getZ()); - - } new SetTranslation(iv, data1.key, data1.index); } diff -r 5e6d40908c60 -r 9bacc8b30c4b src/alice/test/topology/aquarium/fx/UpdateData.java --- a/src/alice/test/topology/aquarium/fx/UpdateData.java Sun Feb 03 17:49:26 2013 +0900 +++ b/src/alice/test/topology/aquarium/fx/UpdateData.java Sun Feb 03 18:34:16 2013 +0900 @@ -19,8 +19,7 @@ public void run() { FishData fd1 = data1.asClass(FishData.class); FishData fd2 = data2.asClass(FishData.class); - - System.out.println(data1.val); + fd1.SetXYZ(fd1.getX()+fd2.getX(), fd1.getY()+fd2.getY(), fd1.getZ()+fd2.getZ());