Beispiel #1
0
 public LaboratoryDeviceBuilder AddModule(IDeviceModule module)
 {
     // Check module type
     // Call corret Add method
     return(this);
 }
Beispiel #2
0
 public LaboratoryDeviceBuilder AddOpticalModule(IDeviceModule module)
 {
     // Validate optical module
     _opticsModule = module;
     return(this);
 }
Beispiel #3
0
 public LaboratoryDevice(IDeviceModule baseModule, IDeviceModule optics)
 {
 }
Beispiel #4
0
 public LaboratoryDeviceBuilder AddBaseModule(IDeviceModule module)
 {
     // Validate base module
     _baseModule = module;
     return(this);
 }
Beispiel #5
0
        public ReaderSaverErrors ReadModuleRegisters(IDeviceModule module)
        {
            List<object> listOfConfigurationItems = module.ToList();

            ReaderSaverErrors retCode = PerformReading(ref listOfConfigurationItems);
            if (retCode != ReaderSaverErrors.CodeOk)
                return retCode;

            if (!module.FromList(listOfConfigurationItems))
                return ReaderSaverErrors.CodeInvalidStatusesSize;

            return retCode;
        }