public void init(DTNHost host,List<MessageListener> mListeners){
  this.incomingMessages=new HashMap<String,Message>();
  this.messages=new HashMap<String,Message>();
  this.deliveredMessages=new HashMap<String,Message>();
  this.blacklistedMessages=new HashMap<String,Object>();
  this.mListeners=mListeners;
  this.host=host;
}

public void init ( DTNHost host , List < MessageListener > mListeners ) { this . incomingMessages = new HashMap < String , Message > ( ) ; this . messages = new HashMap < String , Message > ( ) ; this . deliveredMessages = new HashMap < String , Message > ( ) ; this . blacklistedMessages = new HashMap < String , Object > ( ) ; this . mListeners = mListeners ; this . host = host ; }
initializes the router ; i . e . sets the host this router is in and message listeners that need to be informed about message related events etc .
