calculate the distance of two node at a certain time
(self, line)
| 137 | self.sn.run_routing_deamon() |
| 138 | |
| 139 | def do_get_distance(self, line): |
| 140 | "calculate the distance of two node at a certain time" |
| 141 | arg, args, line = self.parseline(line) |
| 142 | rest = line.split(' ') |
| 143 | node_distance = self.sn.get_distance(int(rest[0]), int(rest[1]), |
| 144 | int(rest[2])) |
| 145 | output("The distance between node#%d and node#%d is %.2fkm.\n" % |
| 146 | (int(rest[0]), int(rest[1]), node_distance)) |
| 147 | |
| 148 | def do_get_neighbors(self, line): |
| 149 | "list the neighbor node indexes of node at a certain time" |
nothing calls this directly
no test coverage detected