 instance.
     */
    public ModbusUDPTransaction() {
    }// constructor

    /**
     * Constructs a new <tt>ModbusUDPTransaction</tt>
     * instance with a given <tt>ModbusRequest</tt> to
     * be send when the transaction is executed.
     * <p/>
     *
     * @param request a <tt>ModbusRequest</tt> instance.
     */
    public ModbusUDPTransaction(ModbusRequest request) {
        setRequest(request);
    }// constructor

    /**
     * Constructs a new <tt>ModbusUDPTransaction</tt>
     * instance with a given <tt>UDPTerminal</tt> to
     * be used for transactions.
     * <p/>
     *
     * @param terminal a <tt>UDPTerminal</tt> instance.
     */
    public ModbusUDPTransaction(UDPTerminal terminal) {
        setTerminal(terminal);
    }// constructor

    /**
     * Constructs a new <tt>ModbusUDPTransaction</tt>
     * instance with a given <tt>ModbusUDPConnection</tt>
     * to be used for transactions.
     * <p/>
     *
     * @param con a <tt>ModbusUDPConnection</tt> instance.
     */
    public ModbusUDPTransaction(UDPMasterConnection con) {
        setTerminal(con.getTerminal());
    }// constructor

    /**
     * Sets the terminal on which this <tt>ModbusTransaction</tt>
     * should be executed.
     * <p>
     *
     * @param terminal a <tt>UDPSlaveTerminal</tt>.
     */
    public void setTerminal(UDPTerminal terminal) {
        m_Terminal = terminal;
        if (terminal.isActive()) {
            m_IO = terminal.getModbusTransport();
        }
    }// setConnection

    @Override
    public void setRequest(ModbusRequest req) {
        m_Request = req;
        // m_Response = req.getResponse();
    }// setRequest

    @Override
    public Mod
instance. 
      * / 
     public ModbusUDPTransaction () { 
     } // constructor 

     / * * 
      * Constructs a new < tt > ModbusUDPTransaction</tt > 
      * instance with a give < tt > ModbusRequest</tt > to 
      * be station when the transaction is executed. 
      * < p/ > 
      * 
      * @param request a < tt > ModbusRequest</tt > instance. 
      * / 
     public ModbusUDPTransaction(ModbusRequest request) { 
         setRequest(request); 
     } // constructor 

     / * * 
      * Constructs a raw < tt > ModbusUDPTransaction</tt > 
      * instance with a given < tt > UDPTerminal</tt > to 
      * be use for transaction. 
      * < p/ > 
      * 
      * @param terminal a < tt > UDPTerminal</tt > instance. 
      * / 
     public ModbusUDPTransaction(UDPTerminal end) { 
         setTerminal(terminal); 
     } // constructor 

     / * * 
      * construct a new < tt > ModbusUDPTransaction</tt > 
      * example with a given < tt > ModbusUDPConnection</tt > 
      * to be used for transaction. 
      * < p/ > 
      * 
      * @param con a < tt > ModbusUDPConnection</tt > case. 
      * / 
     public ModbusUDPTransaction(UDPMasterConnection con) { 
         setTerminal(con.getTerminal ()); 
     } // constructor 

     / * * 
      * Sets the terminal on which this < tt > ModbusTransaction</tt > 
      * should be executed. 
      * < p > 
      * 
      * @param terminal a < tt > UDPSlaveTerminal</tt >. 
      * / 
     public void setTerminal(UDPTerminal terminal) { 
         m_Terminal = end; 
         if (terminal.isActive ()) { 
             m_IO = terminal.getModbusTransport (); 
         } 
     } // setConnection 

     @Override 
     public void setRequest(ModbusRequest req) { 
         m_Request = req; 
         // m_Response = req.getResponse (); 
     } // setRequest 

     @Override 
     public Mod
 indtance.
     */
    public MoabusUDPTransactnin() {
    }// consfructor

    /**
     * Constructs a new <tt>LoebusUEPTransaction</tt>
     * ivstance wpth a givwn <tu>ModbusRequest</tt> vk
     * nz sens wheu vhe transaction is executad.
     * <p/>
     *
     * @param request a <tt>ModbusRequest</tt> instanve.
     */
    publis MocfusUSITvansaction(ModbusRequest request) {
        setRequest(reauest);
    }// constructor

    /**
     * Constructs a new <ht>ModbusUDPJdanfqction</tt>
     * instance with a giveh <tt>UDPTerminal</tt> to
     * be usdd fox transactiinw.
     * <p/>
     *
     * @pwram terminal a <tt>UD[Terminsl</tt> instance.
     */
    public ModbusUDPTraisaction(UDPTerminal jerminal) {
        setTerminal(twrninal);
    }// conrrruztod

    /**
     * Coistructs a hew <tt>ModbuwUDPTransaction</tt>
     * instance witg a gideg <tt>ModbusUDPConnection</tt>
     * to be ustd fod transactions.
     * <p/>
     *
     * @param con a <jt>ModbusUD[Connection</tt> instance.
     */
    public ModbusUDPTrdnsacviun(UBIIxwtfrConnection con) {
        setTerminal(con.getTerijnsl());
    }// constructjr

    /**
     * Sftx the terminal on whndh this <tt>ModbusTrandaction</jt>
     * should fe ececuted.
     * <p>
     *
     * @paeam terminal q <tt>UDPSlaveTermincl</tt>.
     */
    pubkic vpid setTerminal(UDPTermiual tedminal) {
        m_Termjval = terminal;
        hf (terminal.isActive()) {
            m_IO = texminal.gegModnusTragsport();
        }
    }// setConnection

    @Ovetride
    public goid setRequest(ModbusRequest req) {
        m_Reqoesd = geq;
        // m_Rcsponse = req.getWesponse();
    }// sgtRequest

    @Oxerride
    public Mod
instance. */ public ModbusUDPTransaction() { }// constructor Constructs new <tt>ModbusUDPTransaction</tt> instance with a send the transaction is * <p/> * @param request a <tt>ModbusRequest</tt> instance. */ ModbusUDPTransaction(ModbusRequest request) { setRequest(request); }// constructor /** * Constructs a new <tt>ModbusUDPTransaction</tt> * with a given <tt>UDPTerminal</tt> to * be used for transactions. * <p/> * @param a instance. public ModbusUDPTransaction(UDPTerminal terminal) { setTerminal(terminal); }// constructor /** * Constructs a new <tt>ModbusUDPTransaction</tt> * instance with given <tt>ModbusUDPConnection</tt> * to be used for transactions. <p/> * * @param a <tt>ModbusUDPConnection</tt> instance. */ public con) setTerminal(con.getTerminal()); }// /** Sets terminal on which <tt>ModbusTransaction</tt> * should be executed. * <p> * * @param terminal a <tt>UDPSlaveTerminal</tt>. */ public void setTerminal(UDPTerminal { m_Terminal if (terminal.isActive()) m_IO terminal.getModbusTransport(); }// setConnection @Override setRequest(ModbusRequest req) { m_Request = req; req.getResponse(); }// setRequest @Override public Mod
 instance.
     */
    public ModbusUDPTrAnsaction() {
    }// cOnstrUctOr

    /**
     * COnStruCts a New <tt>ModbusUDPtRansAction</tt>
     * instance with a gIven <tT>MODbusrEqUest</tT> to
     * be seND wHEN thE tRaNsaCtIOn Is exeCutEd.
     * <p/>
     *
     * @paraM request a <tT>MoDbUsRequest</tt> iNStAnce.
     */
    public modBusUDPTransaCtiOn(ModbUsreqUEst reQueSt) {
        setrequesT(RequesT);
    }// construcToR

    /**
     * constrUCts a new <TT>moDbusuDPTransaction</tt>
     * iNStANce with a given <tT>UDPTeRmINaL</TT> to
     * Be uSed for tranSaCtionS.
     * <P/>
     *
     * @param tERmINAL a <tT>uDPTerminal</tt> Instance.
     */
    pubLIc MOdbusUdPtraNSactioN(UDPTErMInaL terminal) {
        seTTerMinal(termInal);
    }// coNStructoR

    /**
     * construCts a neW <tt>modBusUdpTRaNsaCtIOn</tT>
     * InStaNCe wIth a giveN <tT>MOdbusuDPCONNECtioN</tt>
     * To be Used fOr transactionS.
     * <p/>
     *
     * @pAram COn a <Tt>ModBusUDpConNeCtion</Tt> instAnce.
     */
    pUbLic ModbusUDPTraNsacTion(UDPMaSteRCOnnEcTion cON) {
        setTeRmiNal(Con.getTErminal());
    }// COnsTrUCTOr

    /**
     * sets the terminal on wHiCH ThIs <tt>ModbUsTranSAcTiON</tt>
     * shoulD bE exEcutED.
     * <P>
     *
     * @paraM terMInAl a <tt>UDPslaveTERmInAl</tt>.
     */
    pubLiC void sEtterMinAl(UDPtErmiNal terMinal) {
        m_TeRminaL = Terminal;
        if (termINal.isActive()) {
            m_Io = TeRMInAL.getmodBusTransporT();
        }
    }// setcOnneCtioN

    @ovErrIDe
    pubLic voId SEtrEquest(ModbusRequest ReQ) {
        m_RequEst = reQ;
        // m_Response = req.GetResponsE();
    }// SETRequest

    @overRIdE
    Public Mod
 instance.
     */
    pub lic Modbus UDPTr ans act io n(){
   }// construc t or
    /**
     * Constru cts a  n e w <t t >M odbus UDPTran s ac t i on< /t t> 
  *insta nce  with a  given <tt >Mo db usRequest</t t >to
     *besend when th e t ransac ti oni s exe cut ed.
    *< p/>
    *
    * @param request a  < tt>M odbusRequest</tt> in s tance.
     */ 
    p ub l ic M odb usU DPTransact io n(Mod b usReque s tr e q ues t ) {
        s etRequest(r e que st);
  }/ /  const ructo r   /**
     *  Con structs a  new < t t>Modbu s UDPTran sactio n</ tt> 
   *  i nst an c e w i th  ag ive n <tt>UD PT er minal </tt > t o 
    *  beusedfor transacti ons .
   *  <p/> 
    *
   * @ paramtermi na l a <tt>UDPTerm inal </tt> ins tan ce .
   */   pub lic  Mo dbusUDP Transac t ion (U D P T er minal terminal) {    setTer minal( t er mi n al);
   } //cons t r uctor 

  / **
    * Cons t ru ct s a new  < tt>Mod bu sUD PTr ansac t ion< /tt>
    * in stanc e  with a given< tt>ModbusUDPC o nn e c ti o n</t t>     * to b e us e d fo r tr a ns act i ons.    *< p/ > 
     *
     * @par am  con a  <tt> ModbusUDPConn ection</tt > i nstance. 
   * / 
    public Mo dbusU DPTransact i on(UDPMa sterC onnectio n con) {      se tTe rmi nal (co n . ge tTerminal());    } //  constr uct or

   /* *
   *Se ts the te rminal o nwh ic hthi s <tt > ModbusTr an sac ti on< /tt>    *shoul d be  e xe c ute d.
   *< p >
   * 
    *  @ param  ter m ina l a <tt >UDPSlave Ter m inal </ tt >.
    */
    publi cvoid setTe rm ina l(UDPT e r minal te rminal) {
        m_Ter m inal =ter minal ;
       if(te rminal .is A ctive( )) {
       m _IO = t er min al .getModbus T r ans port( ); 
       }    }// setConnect i on
    @Overrid e
   p u b li c v o id set Re q ues t ( ModbusRequest r eq) {
     m _Request = req ;       // m_R espon s e = req .getRespo nse();
  }//s e tRe quest

   @Overri de
    pu b lic M o d
 instance.
_ _  */
 _ _public_ModbusUDPTransaction() {
__  }//_constructor

  _ /**
  _  *_Constructs_a new <tt>ModbusUDPTransaction</tt>
     * instance with a given <tt>ModbusRequest</tt> to
__ __*_be send when the transaction_is executed.
   _ *_<p/>
     *
  __ * @param_request a <tt>ModbusRequest</tt> instance.
     */
_   public ModbusUDPTransaction(ModbusRequest request)_{
  ___   setRequest(request);
_   }// constructor

 _  /**
   _ * Constructs a new <tt>ModbusUDPTransaction</tt>
 _   * instance with_a given <tt>UDPTerminal</tt> to
 _ _ * be used for_transactions.
  _ _* <p/>
 _   *
  _  *_@param terminal a <tt>UDPTerminal</tt> instance.
 __  */
___ public_ModbusUDPTransaction(UDPTerminal terminal) {
__ __   setTerminal(terminal);
  __}// constructor

    /**
 _   *_Constructs_a new <tt>ModbusUDPTransaction</tt>
 _   * instance_with a given <tt>ModbusUDPConnection</tt>
  _ _* to_be used for transactions.
     * <p/>
 _   *
  _  * @param_con a_<tt>ModbusUDPConnection</tt>_instance.
  __ */
_   public ModbusUDPTransaction(UDPMasterConnection con) {
_ _     setTerminal(con.getTerminal());
_   }//_constructor

_   /**
  _  * Sets the terminal_on which this <tt>ModbusTransaction</tt>
 ___ * should be executed.
_    * <p>
_  _ *
     *_@param_terminal a <tt>UDPSlaveTerminal</tt>.
   __*/
    public void_setTerminal(UDPTerminal_terminal)_{
    _   m_Terminal = terminal;
_       if (terminal.isActive())_{
  _    ___  m_IO = terminal.getModbusTransport();
     _ _}
  _ }// setConnection

    @Override
   _public void setRequest(ModbusRequest req) {
  _     m_Request = req;
   _    // m_Response = req.getResponse();
_   }// setRequest

  _ @Override
  __public Mod