()
| 281 | } |
| 282 | |
| 283 | @Override |
| 284 | public RoutingInfo getRoutingInfo() { |
| 285 | ageDeliveryPreds(); |
| 286 | RoutingInfo top = super.getRoutingInfo(); |
| 287 | RoutingInfo ri = new RoutingInfo(preds.size() + |
| 288 | " delivery prediction(s)"); |
| 289 | |
| 290 | for (Map.Entry<DTNHost, Double> e : preds.entrySet()) { |
| 291 | DTNHost host = e.getKey(); |
| 292 | Double value = e.getValue(); |
| 293 | |
| 294 | ri.addMoreInfo(new RoutingInfo(String.format("%s : %.6f", |
| 295 | host, value))); |
| 296 | } |
| 297 | |
| 298 | top.addMoreInfo(ri); |
| 299 | return top; |
| 300 | } |
| 301 | |
| 302 | @Override |
| 303 | public MessageRouter replicate() { |
nothing calls this directly
no test coverage detected