Example #1
0
        public ExtractModule(
            IMapper mapper,                                           //映射
            ITachoDefindService tachoDefindService,                   //转速提取条件
            IMeterageSamplerateService meterageSamplerateService,     //测量参数
            IDataTwService dataTwService,                             //波形数据
            IDirverRelationService dirverRelationService,             // 元件关系
            IMachineRevService machineRevService,                     //机器转速
            IMalfunctionSettingService malfunctionSettingService,     // 特征值提取配置
            IMalfunctionTypeService malfunctionTypeService,           // 故障类型及公式
            IBandDiagnosisService bandDiagnosisService,
            IMalfunctionParameterService malfunctionParameterService) // 公式参数
        {
            _mapper = mapper;
            _bandDiagnosisService        = bandDiagnosisService;
            _malfunctionSettingService   = malfunctionSettingService;
            _malfunctionTypeService      = malfunctionTypeService;
            _machineRevService           = machineRevService;
            _dirverRelationService       = dirverRelationService;
            _dataTwService               = dataTwService;
            _tachoDefindService          = tachoDefindService;
            _meterageSamplerateService   = meterageSamplerateService;
            _malfunctionParameterService = malfunctionParameterService;

            //如果缓存没有公式参数 获取后缓存
            if (!RedisHelper.Exists("MalParameter"))
            {
                _parameterList = _malfunctionParameterService.QueryList();
                RedisHelper.Set("MalParameter", _parameterList);
            }
            else
            {
                _parameterList = RedisHelper.Get <List <MalfunctionParameter> >("MalParameter");
            }
        }
Example #2
0
 public DataTwModule(IDataTwService dataTwService, IMeterageSamplerateService meterageSamplerateService)
 {
     _dataTwService             = dataTwService;
     _meterageSamplerateService = meterageSamplerateService;
 }
Example #3
0
 public ConfigModule(IMeterageSamplerateService meterageSamplerateService)
 {
     _meterageSamplerateService = meterageSamplerateService;
 }