| | |
| | | private OutputDataHandler outputHandler; |
| | | @Autowired |
| | | private DeviceStatusDataHandler statusDataHandler; |
| | | @Autowired |
| | | private AlarmDataHandler alarmDataHandler; |
| | | /** |
| | | * 目前看应该只有state,output和alarm有数据 |
| | | */ |
| | |
| | | return statusDataHandler; |
| | | }else if(WorkstationParamTypeEnum.OUTPUT.getType().equals(paramType)){ |
| | | return outputHandler; |
| | | }else if(WorkstationParamTypeEnum.ALARM.getType().equals(paramType) || WorkstationParamTypeEnum.ALARM_MSG.getType().equals(paramType) || WorkstationParamTypeEnum.ALARM_NO.getType().equals(paramType)){ |
| | | return alarmDataHandler; |
| | | }else{ |
| | | return null; |
| | | } |