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