code: public void setTerminal(AbstractUDPTerminal terminal) {
          this.terminal = terminal;
          if (terminal.isActive()) {
              transport = terminal.getTransport();
          }
      }
docs: Sets the terminal on which this <tt>ModbusTransaction</tt>
  should be executed.<p>
  
  @param terminal a <tt>UDPSlaveTerminal</tt>.