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

Method newMessage

report/MessageStatsReport.java:115–126  ·  view source on GitHub ↗
(Message m)

Source from the content-addressed store, hash-verified

113
114
115 public void newMessage(Message m) {
116 if (isWarmup()) {
117 addWarmupID(m.getId());
118 return;
119 }
120
121 this.creationTimes.put(m.getId(), getSimTime());
122 this.nrofCreated++;
123 if (m.getResponseSize() > 0) {
124 this.nrofResponseReqCreated++;
125 }
126 }
127
128
129 public void messageTransferStarted(Message m, DTNHost from, DTNHost to) {

Callers

nothing calls this directly

Calls 6

isWarmupMethod · 0.80
addWarmupIDMethod · 0.80
getIdMethod · 0.80
getSimTimeMethod · 0.80
getResponseSizeMethod · 0.80
putMethod · 0.45

Tested by

no test coverage detected