Пример #1
0
        public RTU_ADU(RTU_Device Device, IProtocolDataUnit PDU)
        {
            if (!(Device is RTU_Device))
                throw new ArgumentException("Wrong Device type");

            this.PDU = PDU;
            this.Device = Device;
        }
Пример #2
0
        public RTU_ADU(RTU_Device Device, IProtocolDataUnit PDU)
        {
            if (!(Device is RTU_Device))
            {
                throw new ArgumentException("Wrong Device type");
            }

            this.PDU    = PDU;
            this.Device = Device;
        }
Пример #3
0
 public TCP_ADU(TCP_Device Device, IProtocolDataUnit PDU)
 {
     this.PDU = PDU;
     this.Device = Device;
 }
Пример #4
0
 public TCP_ADU(TCP_Device Device, IProtocolDataUnit PDU)
 {
     this.PDU    = PDU;
     this.Device = Device;
 }