Mercurial > hg > Members > tatsuki > Alice
diff src/alice/test/topology/movement/CheckMyName.java @ 93:6601f8854126 working
can KeyInputCodeSegment
author | sugi |
---|---|
date | Tue, 05 Jun 2012 16:33:28 +0900 |
parents | 8e3c1217aad4 |
children | 38f4021353c5 |
line wrap: on
line diff
--- a/src/alice/test/topology/movement/CheckMyName.java Tue Jun 05 14:31:04 2012 +0900 +++ b/src/alice/test/topology/movement/CheckMyName.java Tue Jun 05 16:33:28 2012 +0900 @@ -23,7 +23,9 @@ if (type.equals("cli")){ System.out.println("cli"+cliNum); + MakeFrame frame = new MakeFrame(); + MakeObject obj = new MakeObject(frame); frame.register(obj); CheckFishLocation cs = new CheckFishLocation(obj,"fish1X"); @@ -37,12 +39,17 @@ cs2.nowX.setKey("parent","fish2X"); MakeObject obj3 = new MakeObject(frame); - frame.registerKObj(obj3); - + frame.register(obj3); + CheckFishLocation cs3 = new CheckFishLocation(obj3,"fish3X"); + cs3.host.setKey("local","host"); + cs3.nowX.setKey("parent","fish3X"); + + }else if(type.equals("node")){ System.out.println("node0"); ods.update("local", "fish1X", -1000); ods.update("local", "fish2X", -1000); + ods.update("local", "fish3X", 0); } }