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

Method changedConnection

routing/ProphetRouter.java:99–108  ·  view source on GitHub ↗
(Connection con)

Source from the content-addressed store, hash-verified

97 }
98
99 @Override
100 public void changedConnection(Connection con) {
101 super.changedConnection(con);
102
103 if (con.isUp()) {
104 DTNHost otherHost = con.getOtherNode(getHost());
105 updateDeliveryPredFor(otherHost);
106 updateTransitivePreds(otherHost);
107 }
108 }
109
110 /**
111 * Updates delivery predictions for a host.

Callers

nothing calls this directly

Calls 5

updateDeliveryPredForMethod · 0.95
updateTransitivePredsMethod · 0.95
isUpMethod · 0.80
getOtherNodeMethod · 0.80
getHostMethod · 0.45

Tested by

no test coverage detected