public void createConnection(NetworkInterface anotherInterface){
  if (!isConnected(anotherInterface) && (this != anotherInterface)) {
    Connection con=new VBRConnection(this.host,this,anotherInterface.getHost(),anotherInterface);
    connect(con,anotherInterface);
  }
}

public void createConnection ( NetworkInterface anotherInterface ) { if ( ! isConnected ( anotherInterface ) && ( this != anotherInterface ) ) { Connection con = new VBRConnection ( this . host , this , anotherInterface . getHost ( ) , anotherInterface ) ; connect ( con , anotherInterface ) ; } }
creates a connection to another host . this method does not do any checks on whether the other node is in range or active
