Esempio n. 1
1
 public CobasProtocolBuilder(Mode mode, CommandDispatcherParams param)
 {
     log.Debug("CobasProtocolBuilder:ctor");
     _command_dispatcher_param = param;
     _protocol = new CobasProtocol();
     _protocol.Mode = mode;
     _protocol.Entity = Entity.Host;
 }
Esempio n. 2
1
 public ServerCobasProtocolBuilder(Mode mode, CommandDispatcherParams command_dispatcher_param, UdpDispatcherParams udp_dispatcher_param)
     : base(mode, command_dispatcher_param, udp_dispatcher_param)
 {
 }
Esempio n. 3
1
        public UdpCobasProtocolBuilder(Mode mode, CommandDispatcherParams command_dispatcher_param, UdpDispatcherParams udp_dispatcher_param)
            : base(mode,command_dispatcher_param)
        {
            log.Debug("UdpCobasProtocolBuilder:ctor");

            _address = udp_dispatcher_param.Address;
            _out_port = udp_dispatcher_param.OutPort;
            _in_port = udp_dispatcher_param.InPort;
        }
Esempio n. 4
1
        public SerialCobasProtocolBuilder(Mode mode, CommandDispatcherParams command_dispatcher_param, SerialDispatcherParams serial_dispatcher_param)
            : base(mode,command_dispatcher_param)
        {
            log.Debug("SerialCobasProtocolBuilder:ctor");

            _portName = serial_dispatcher_param.PortName;
            _baudRate = serial_dispatcher_param.BaudRate;
            _dataBits = serial_dispatcher_param.DataBits;
            _parity = serial_dispatcher_param.Parity;
            _handshake = serial_dispatcher_param.Handshake;
            _stopBits = serial_dispatcher_param.StopBits;
        }