code: public void connectToLink(Link link) throws ShanksException {
          if (!this.linksList.contains(link)) {
              this.linksList.add(link);
              logger.finer("Device " + this.getID()
                      + " is now connected to Link " + link.getID());
              link.connectDevice(this);
          }
      }
docs: Connect the device to a link
  
  @param link
  @throws TooManyConnectionException