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

@param terminal a <tt>UDPSlaveTerminal</tt>.