| | |
| | | import com.zy.core.enums.SlaveType; |
| | | import com.zy.core.properties.DeviceConfig; |
| | | import com.zy.core.thread.fake.FakeNyShuttleThread; |
| | | import com.zy.core.thread.fake.FakeZyForkLiftThread; |
| | | import com.zy.core.thread.impl.LfdZyForkLiftMasterThread; |
| | | import com.zy.core.thread.impl.NyShuttleThread; |
| | | import com.zy.core.utils.DeviceMsgUtils; |
| | |
| | | |
| | | @Value("${deviceMsgConfig.gatewayPort}") |
| | | private int gatewayPort; |
| | | @Value("${deviceMsgConfig.enableFakeDeviceThread}") |
| | | private boolean enableFakeDeviceThread; |
| | | @Value("${deviceMsgConfig.enableFake}") |
| | | private boolean enableFake; |
| | | @Autowired |
| | | private RedisUtil redisUtil; |
| | | @Autowired |
| | |
| | | } |
| | | |
| | | private void initFakeThread(){ |
| | | ThreadHandler thread = new FakeNyShuttleThread(redisUtil, gatewayPort); |
| | | ThreadHandler thread = new FakeNyShuttleThread(redisUtil, gatewayPort, enableFake, enableFakeDeviceThread); |
| | | new Thread(thread).start(); |
| | | |
| | | ThreadHandler thread2 = new FakeZyForkLiftThread(redisUtil); |
| | | new Thread(thread2).start(); |
| | | } |
| | | |
| | | |