MCPcopy Create free account
hub / github.com/akeranen/the-one / getRoutingInfo

Method getRoutingInfo

routing/ProphetRouter.java:283–300  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 5

ageDeliveryPredsMethod · 0.95
addMoreInfoMethod · 0.95
getKeyMethod · 0.80
getValueMethod · 0.80
formatMethod · 0.80

Tested by

no test coverage detected