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

Method deliverMessage

test/AbstractRouterTest.java:126–136  ·  view source on GitHub ↗
(DTNHost from, DTNHost to, String msgId, 
			int msgSize, boolean firstDelivery)

Source from the content-addressed store, hash-verified

124 }
125
126 protected void deliverMessage(DTNHost from, DTNHost to, String msgId,
127 int msgSize, boolean firstDelivery) {
128 assertFalse("MC contained " + mc.getLastType(), mc.next());
129 from.update(true);
130 to.update(true);
131 checkTransferStart(from, to, msgId);
132 clock.advance((1.0*msgSize)/TRANSMIT_SPEED);
133 from.update(true);
134 to.update(true);
135 checkDelivered(from, to, msgId, firstDelivery);
136 }
137
138 /**
139 * Moves node to disconnectLocation (far away from c0), updates it and

Callers 2

testThresholdMethod · 0.80

Calls 6

checkTransferStartMethod · 0.95
checkDeliveredMethod · 0.95
getLastTypeMethod · 0.80
nextMethod · 0.80
advanceMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected