コード例 #1
0
 public override AbstractDevice CreateDeviceForModule(IKnownModule devModule)
 {
     if (devModule.BaseName.Equals("VARDEVICEMODULE"))
     {
         return new VarDevice(this, devModule);
     }
     else if (devModule.BaseName.Equals("DATEDEVICEMODULE"))
     {
         return new DateDevice(this, devModule);
     }
     else if (devModule.BaseName.Equals("DELAYDEVICEMODULE"))
     {
         return new DelayDevice(this, devModule);
     }
     else
     {
         throw new InvalidDataException(String.Format(
             "{0}: error - unknown device requested", _driverProt));
     }
 }
コード例 #2
0
 public override AbstractDevice CreateDeviceForModule(IKnownModule devModule)
 {
     if (devModule.BaseName.Equals("VARDEVICEMODULE"))
     {
         return(new VarDevice(this, devModule));
     }
     else if (devModule.BaseName.Equals("DATEDEVICEMODULE"))
     {
         return(new DateDevice(this, devModule));
     }
     else if (devModule.BaseName.Equals("DELAYDEVICEMODULE"))
     {
         return(new DelayDevice(this, devModule));
     }
     else
     {
         throw new InvalidDataException(String.Format(
                                            "{0}: error - unknown device requested", _driverProt));
     }
 }
コード例 #3
0
        private AutoResetEvent _evRespRcvd; // response received

        #endregion Fields

        #region Constructors

        public DateDevice(AbstractAdapterDriver mngr, IKnownModule module)
            : base(mngr, module)
        {
        }
コード例 #4
0
ファイル: DateDevice.cs プロジェクト: dineshkummarc/varDevice
 public DateDevice(AbstractAdapterDriver mngr, IKnownModule module) : base(mngr, module)
 {
 }