Mercurial > hg > Database > Alice
comparison src/alice/test/topology/aquarium/CheckMyName.java @ 139:f995396f2af7 working
remove bug
author | sugi |
---|---|
date | Tue, 18 Sep 2012 16:19:50 +0900 |
parents | 87f1a30a8c82 |
children | b51d3bf971e7 |
comparison
equal
deleted
inserted
replaced
138:87f1a30a8c82 | 139:f995396f2af7 |
---|---|
27 String type = matcher.group(1); | 27 String type = matcher.group(1); |
28 int num = new Integer(matcher.group(2)); | 28 int num = new Integer(matcher.group(2)); |
29 | 29 |
30 MakeFrame frame = new MakeFrame(name); | 30 MakeFrame frame = new MakeFrame(name); |
31 RoutingTable routing = new RoutingTable(); | 31 RoutingTable routing = new RoutingTable(); |
32 ods.put("local", "num", 0); | 32 ods.put("local", "num", 1); |
33 | 33 |
34 if (type.equals("cli")){ | 34 if (type.equals("cli")){ |
35 System.out.println("cli"+num); | 35 System.out.println("cli"+num); |
36 routing.table.add(new Routing("parent")); | 36 routing.table.add(new Routing("parent")); |
37 ods.put("local", "list", routing); | 37 ods.put("local", "list", routing); |
38 | 38 |
39 new AddRoutingTable(routing,0); | 39 new AddRoutingTable(routing,0); |
40 ods.put("parent", "member", name); | 40 ods.put("parent", "member", name); |
41 new MemberNum(); | 41 new TakeMynum(); |
42 | 42 |
43 }else if (type.equals("node")){ | 43 }else if (type.equals("node")){ |
44 System.out.println("node"+num); | 44 System.out.println("node"+num); |
45 if (num != 0){ | 45 if (num != 0){ |
46 routing.table.add(new Routing("parent")); | 46 routing.table.add(new Routing("parent")); |
47 ods.put("parent", "member", name); | 47 ods.put("parent", "member", name); |
48 new MemberNum(); | 48 new TakeMynum(); |
49 | 49 |
50 } | 50 } |
51 ods.put("local", "list", routing); | 51 ods.put("local", "list", routing); |
52 new AddRoutingTable(routing,0); | 52 new AddRoutingTable(routing,0); |
53 | 53 |