|
|
@ -1458,10 +1458,15 @@ public class AgvServiceImpl implements AgvService { |
|
|
|
} |
|
|
|
String mes = null; |
|
|
|
StandardAutodoorDeviceDriver autodoor; |
|
|
|
StandardAutodoorSmartDeviceDriver standardAutodoorSmartDeviceDriver; |
|
|
|
if (doordevice.getDeviceDriver() instanceof StandardAutodoorDeviceDriver) { |
|
|
|
autodoor = (StandardAutodoorDeviceDriver) doordevice.getDeviceDriver(); |
|
|
|
mes = autodoor.getStatus(); |
|
|
|
} |
|
|
|
if (doordevice.getDeviceDriver() instanceof StandardAutodoorSmartDeviceDriver) { |
|
|
|
standardAutodoorSmartDeviceDriver = (StandardAutodoorSmartDeviceDriver) doordevice.getDeviceDriver(); |
|
|
|
mes = standardAutodoorSmartDeviceDriver.getStatus(); |
|
|
|
} |
|
|
|
JSONObject jo = JSONObject.fromObject(mes); |
|
|
|
ja.add(jo); |
|
|
|
} |
|
|
@ -1491,10 +1496,15 @@ public class AgvServiceImpl implements AgvService { |
|
|
|
} |
|
|
|
String mes = null; |
|
|
|
StandardAutodoorDeviceDriver autodoor; |
|
|
|
StandardAutodoorSmartDeviceDriver standardAutodoorSmartDeviceDriver; |
|
|
|
if (doordevice.getDeviceDriver() instanceof StandardAutodoorDeviceDriver) { |
|
|
|
autodoor = (StandardAutodoorDeviceDriver) doordevice.getDeviceDriver(); |
|
|
|
mes = autodoor.getStatus(); |
|
|
|
} |
|
|
|
if (doordevice.getDeviceDriver() instanceof StandardAutodoorSmartDeviceDriver) { |
|
|
|
standardAutodoorSmartDeviceDriver = (StandardAutodoorSmartDeviceDriver) doordevice.getDeviceDriver(); |
|
|
|
mes = standardAutodoorSmartDeviceDriver.getStatus(); |
|
|
|
} |
|
|
|
LampThreecolorDeviceDriver lampThreecolorDeviceDriver; |
|
|
|
if (doordevice.getDeviceDriver() instanceof LampThreecolorDeviceDriver) { |
|
|
|
lampThreecolorDeviceDriver = (LampThreecolorDeviceDriver) doordevice.getDeviceDriver(); |
|
|
@ -1519,10 +1529,15 @@ public class AgvServiceImpl implements AgvService { |
|
|
|
} |
|
|
|
String mes = null; |
|
|
|
StandardAutodoorDeviceDriver autodoor; |
|
|
|
StandardAutodoorSmartDeviceDriver standardAutodoorSmartDeviceDriver; |
|
|
|
if (doordevice.getDeviceDriver() instanceof StandardAutodoorDeviceDriver) { |
|
|
|
autodoor = (StandardAutodoorDeviceDriver) doordevice.getDeviceDriver(); |
|
|
|
mes = autodoor.getStatus(); |
|
|
|
} |
|
|
|
if (doordevice.getDeviceDriver() instanceof StandardAutodoorSmartDeviceDriver) { |
|
|
|
standardAutodoorSmartDeviceDriver = (StandardAutodoorSmartDeviceDriver) doordevice.getDeviceDriver(); |
|
|
|
mes = standardAutodoorSmartDeviceDriver.getStatus(); |
|
|
|
} |
|
|
|
JSONObject jo = JSONObject.fromObject(mes); |
|
|
|
ja.add(jo); |
|
|
|
} |
|
|
|