Start sending a message to another host. @param id Id of the message to send @param to The host to send the message to
(String id, DTNHost to)
| 289 | * @param to The host to send the message to |
| 290 | */ |
| 291 | public void sendMessage(String id, DTNHost to) { |
| 292 | Message m = getMessage(id); |
| 293 | Message m2; |
| 294 | if (m == null) throw new SimError("no message for id " + |
| 295 | id + " to send at " + this.host); |
| 296 | |
| 297 | m2 = m.replicate(); // send a replicate of the message |
| 298 | to.receiveMessage(m2, this.host); |
| 299 | } |
| 300 | |
| 301 | /** |
| 302 | * Requests for deliverable message from this router to be sent trough a |
nothing calls this directly
no test coverage detected