the-one-pitt
the-one-pitt copied to clipboard
Additions and Modifications to The ONE (Opportunistic Network Emulator)
In `DecisionEngineRouter.java` , `Message transferred = this.getMessage(con.getMessage().getId());` may get `transferred=null` as `con.getMessage()` will return a message which is not in `messages` in this router already. `getMessage()` will return `null` on...
In [core/DTNHost.java](https://github.com/knightcode/the-one-pitt/blob/master/core/DTNHost.java), `conectionUp/Down` does nothing which is unreasonable. ``` java public void connectionUp(Connection con) { this.router.connectionUp(con); //should not be commented } public void connectionDown(Connection con) { this.router.connectionDown(con); //should not be...
After carefully debugging, a bug is found on `the-one-pitt/routing/DecisionEngineRouter.java` where it lacks of one line `m.setTtl(this.msgTtl);`, seeing below. ``` java @Override public boolean createNewMessage(Message m) { if(decider.newMessage(m)) { if(m.getId().equals("M14")) System.out.println("Host:...