16 package com.sonycsl.echo.eoj.device.housingfacilities;
40 super.setupPropertyMaps();
54 Echo.getEventListener().onNewElectricLock(
this);
187 if(edt == null || !(edt.length == 1))
return false;
259 if(edt == null || !(edt.length == 1))
return false;
308 if(edt == null || !(edt.length == 1))
return false;
357 if(edt == null || !(edt.length == 1))
return false;
406 if(edt == null || !(edt.length == 1))
return false;
459 if(edt == null || !(edt.length == 1))
return false;
531 if(edt == null || !(edt.length == 1))
return false;
537 boolean success = super.setProperty(property);
538 if(success)
return success;
540 switch(property.
epc) {
544 default :
return false;
550 byte[] edt = super.getProperty(epc);
551 if(edt != null)
return edt;
561 default :
return null;
567 boolean valid = super.isValidProperty(property);
568 if(valid)
return valid;
570 switch(property.
epc) {
578 default :
return false;
588 public Setter
set(
boolean responseRequired) {
590 ,
getNode().getAddressStr(), responseRequired);
594 public Getter
get() {
605 protected Informer
inform(
boolean multicast) {
610 address =
getNode().getAddressStr();
616 public static class Receiver
extends DeviceObject.Receiver {
619 protected boolean onSetProperty(
EchoObject eoj,
short tid, byte esv,
621 boolean ret = super.onSetProperty(eoj, tid, esv, property, success);
624 switch(property.epc) {
626 onSetLockSetting1(eoj, tid, esv, property, success);
629 onSetLockSetting2(eoj, tid, esv, property, success);
632 onSetAutoLockModeSetting(eoj, tid, esv, property, success);
640 protected boolean onGetProperty(
EchoObject eoj,
short tid, byte esv,
642 boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
645 switch(property.epc) {
647 onGetLockSetting1(eoj, tid, esv, property, success);
650 onGetLockSetting2(eoj, tid, esv, property, success);
653 onGetLockStatusOfDoorGuard(eoj, tid, esv, property, success);
656 onGetDoorOpenCloseStatus(eoj, tid, esv, property, success);
659 onGetOccupantNonOccupantStatus(eoj, tid, esv, property, success);
662 onGetAlarmStatus(eoj, tid, esv, property, success);
665 onGetAutoLockModeSetting(eoj, tid, esv, property, success);
696 protected void onSetLockSetting1(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
721 protected void onGetLockSetting1(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
744 protected void onSetLockSetting2(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
767 protected void onGetLockSetting2(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
790 protected void onGetLockStatusOfDoorGuard(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
813 protected void onGetDoorOpenCloseStatus(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
836 protected void onGetOccupantNonOccupantStatus(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
861 protected void onGetAlarmStatus(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
884 protected void onSetAutoLockModeSetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
907 protected void onGetAutoLockModeSetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
910 public static class Setter
extends DeviceObject.Setter {
911 public Setter(
short dstEchoClassCode, byte dstEchoInstanceCode
912 , String dstEchoAddress,
boolean responseRequired) {
913 super(dstEchoClassCode, dstEchoInstanceCode
914 , dstEchoAddress, responseRequired);
918 public Setter reqSetProperty(byte epc, byte[] edt) {
919 return (Setter)super.reqSetProperty(epc, edt);
923 public Setter reqSetOperationStatus(byte[] edt) {
924 return (Setter)super.reqSetOperationStatus(edt);
927 public Setter reqSetInstallationLocation(byte[] edt) {
928 return (Setter)super.reqSetInstallationLocation(edt);
931 public Setter reqSetCurrentLimitSetting(byte[] edt) {
932 return (Setter)super.reqSetCurrentLimitSetting(edt);
935 public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
936 return (Setter)super.reqSetPowerSavingOperationSetting(edt);
939 public Setter reqSetRemoteControlSetting(byte[] edt) {
940 return (Setter)super.reqSetRemoteControlSetting(edt);
943 public Setter reqSetCurrentTimeSetting(byte[] edt) {
944 return (Setter)super.reqSetCurrentTimeSetting(edt);
947 public Setter reqSetCurrentDateSetting(byte[] edt) {
948 return (Setter)super.reqSetCurrentDateSetting(edt);
951 public Setter reqSetPowerLimitSetting(byte[] edt) {
952 return (Setter)super.reqSetPowerLimitSetting(edt);
979 public Setter reqSetLockSetting1(byte[] edt) {
1005 public Setter reqSetLockSetting2(byte[] edt) {
1031 public Setter reqSetAutoLockModeSetting(byte[] edt) {
1037 public static class Getter
extends DeviceObject.Getter {
1038 public Getter(
short dstEchoClassCode, byte dstEchoInstanceCode
1039 , String dstEchoAddress) {
1040 super(dstEchoClassCode, dstEchoInstanceCode
1045 public Getter reqGetProperty(byte epc) {
1046 return (Getter)super.reqGetProperty(epc);
1050 public Getter reqGetOperationStatus() {
1051 return (Getter)super.reqGetOperationStatus();
1054 public Getter reqGetInstallationLocation() {
1055 return (Getter)super.reqGetInstallationLocation();
1058 public Getter reqGetStandardVersionInformation() {
1059 return (Getter)super.reqGetStandardVersionInformation();
1062 public Getter reqGetIdentificationNumber() {
1063 return (Getter)super.reqGetIdentificationNumber();
1066 public Getter reqGetMeasuredInstantaneousPowerConsumption() {
1067 return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
1070 public Getter reqGetMeasuredCumulativePowerConsumption() {
1071 return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
1074 public Getter reqGetManufacturersFaultCode() {
1075 return (Getter)super.reqGetManufacturersFaultCode();
1078 public Getter reqGetCurrentLimitSetting() {
1079 return (Getter)super.reqGetCurrentLimitSetting();
1082 public Getter reqGetFaultStatus() {
1083 return (Getter)super.reqGetFaultStatus();
1086 public Getter reqGetFaultDescription() {
1087 return (Getter)super.reqGetFaultDescription();
1090 public Getter reqGetManufacturerCode() {
1091 return (Getter)super.reqGetManufacturerCode();
1094 public Getter reqGetBusinessFacilityCode() {
1095 return (Getter)super.reqGetBusinessFacilityCode();
1098 public Getter reqGetProductCode() {
1099 return (Getter)super.reqGetProductCode();
1102 public Getter reqGetProductionNumber() {
1103 return (Getter)super.reqGetProductionNumber();
1106 public Getter reqGetProductionDate() {
1107 return (Getter)super.reqGetProductionDate();
1110 public Getter reqGetPowerSavingOperationSetting() {
1111 return (Getter)super.reqGetPowerSavingOperationSetting();
1114 public Getter reqGetRemoteControlSetting() {
1115 return (Getter)super.reqGetRemoteControlSetting();
1118 public Getter reqGetCurrentTimeSetting() {
1119 return (Getter)super.reqGetCurrentTimeSetting();
1122 public Getter reqGetCurrentDateSetting() {
1123 return (Getter)super.reqGetCurrentDateSetting();
1126 public Getter reqGetPowerLimitSetting() {
1127 return (Getter)super.reqGetPowerLimitSetting();
1130 public Getter reqGetCumulativeOperatingTime() {
1131 return (Getter)super.reqGetCumulativeOperatingTime();
1134 public Getter reqGetStatusChangeAnnouncementPropertyMap() {
1135 return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
1138 public Getter reqGetSetPropertyMap() {
1139 return (Getter)super.reqGetSetPropertyMap();
1142 public Getter reqGetGetPropertyMap() {
1143 return (Getter)super.reqGetGetPropertyMap();
1170 public Getter reqGetLockSetting1() {
1196 public Getter reqGetLockSetting2() {
1222 public Getter reqGetLockStatusOfDoorGuard() {
1248 public Getter reqGetDoorOpenCloseStatus() {
1274 public Getter reqGetOccupantNonOccupantStatus() {
1302 public Getter reqGetAlarmStatus() {
1328 public Getter reqGetAutoLockModeSetting() {
1334 public static class Informer
extends DeviceObject.Informer {
1335 public Informer(
short echoClassCode, byte echoInstanceCode
1337 super(echoClassCode, echoInstanceCode
1338 , dstEchoAddress, isSelfObject);
1342 public Informer reqInformProperty(byte epc) {
1343 return (Informer)super.reqInformProperty(epc);
1346 public Informer reqInformOperationStatus() {
1347 return (Informer)super.reqInformOperationStatus();
1350 public Informer reqInformInstallationLocation() {
1351 return (Informer)super.reqInformInstallationLocation();
1354 public Informer reqInformStandardVersionInformation() {
1355 return (Informer)super.reqInformStandardVersionInformation();
1358 public Informer reqInformIdentificationNumber() {
1359 return (Informer)super.reqInformIdentificationNumber();
1362 public Informer reqInformMeasuredInstantaneousPowerConsumption() {
1363 return (Informer)super.reqInformMeasuredInstantaneousPowerConsumption();
1366 public Informer reqInformMeasuredCumulativePowerConsumption() {
1367 return (Informer)super.reqInformMeasuredCumulativePowerConsumption();
1370 public Informer reqInformManufacturersFaultCode() {
1371 return (Informer)super.reqInformManufacturersFaultCode();
1374 public Informer reqInformCurrentLimitSetting() {
1375 return (Informer)super.reqInformCurrentLimitSetting();
1378 public Informer reqInformFaultStatus() {
1379 return (Informer)super.reqInformFaultStatus();
1382 public Informer reqInformFaultDescription() {
1383 return (Informer)super.reqInformFaultDescription();
1386 public Informer reqInformManufacturerCode() {
1387 return (Informer)super.reqInformManufacturerCode();
1390 public Informer reqInformBusinessFacilityCode() {
1391 return (Informer)super.reqInformBusinessFacilityCode();
1394 public Informer reqInformProductCode() {
1395 return (Informer)super.reqInformProductCode();
1398 public Informer reqInformProductionNumber() {
1399 return (Informer)super.reqInformProductionNumber();
1402 public Informer reqInformProductionDate() {
1403 return (Informer)super.reqInformProductionDate();
1406 public Informer reqInformPowerSavingOperationSetting() {
1407 return (Informer)super.reqInformPowerSavingOperationSetting();
1410 public Informer reqInformRemoteControlSetting() {
1411 return (Informer)super.reqInformRemoteControlSetting();
1414 public Informer reqInformCurrentTimeSetting() {
1415 return (Informer)super.reqInformCurrentTimeSetting();
1418 public Informer reqInformCurrentDateSetting() {
1419 return (Informer)super.reqInformCurrentDateSetting();
1422 public Informer reqInformPowerLimitSetting() {
1423 return (Informer)super.reqInformPowerLimitSetting();
1426 public Informer reqInformCumulativeOperatingTime() {
1427 return (Informer)super.reqInformCumulativeOperatingTime();
1430 public Informer reqInformStatusChangeAnnouncementPropertyMap() {
1431 return (Informer)super.reqInformStatusChangeAnnouncementPropertyMap();
1434 public Informer reqInformSetPropertyMap() {
1435 return (Informer)super.reqInformSetPropertyMap();
1438 public Informer reqInformGetPropertyMap() {
1439 return (Informer)super.reqInformGetPropertyMap();
1466 public Informer reqInformLockSetting1() {
1492 public Informer reqInformLockSetting2() {
1518 public Informer reqInformLockStatusOfDoorGuard() {
1544 public Informer reqInformDoorOpenCloseStatus() {
1570 public Informer reqInformOccupantNonOccupantStatus() {
1598 public Informer reqInformAlarmStatus() {
1624 public Informer reqInformAutoLockModeSetting() {
1630 public static class Proxy
extends ElectricLock {
1631 public Proxy(byte instanceCode) {
1658 return setG((byte)0);
1661 public static Setter
setG(byte instanceCode) {
1662 return setG(instanceCode,
true);
1665 public static Setter
setG(
boolean responseRequired) {
1666 return setG((byte)0, responseRequired);
1669 public static Setter
setG(byte instanceCode,
boolean responseRequired) {
1675 return getG((byte)0);
1678 public static Getter
getG(byte instanceCode) {
1687 public static Informer
informG(byte instanceCode) {
boolean setOperationStatus(byte[] edt)
static final byte EPC_LOCK_SETTING1
boolean isValidLockSetting2(byte[] edt)
static final byte EPC_ALARM_STATUS
static final byte EPC_AUTO_LOCK_MODE_SETTING
static Setter setG(byte instanceCode)
Informer inform(boolean multicast)
boolean isValidLockSetting1(byte[] edt)
final void removeSetProperty(byte epc)
synchronized boolean setProperty(EchoProperty property)
final void addStatusChangeAnnouncementProperty(byte epc)
static Setter setG(boolean responseRequired)
abstract byte[] getInstallationLocation()
final void addGetProperty(byte epc)
static Getter getG(byte instanceCode)
boolean isValidAlarmStatus(byte[] edt)
Setter set(boolean responseRequired)
boolean isValidLockStatusOfDoorGuard(byte[] edt)
final void addSetProperty(byte epc)
byte[] getLockStatusOfDoorGuard()
abstract byte[] getFaultStatus()
static final byte EPC_OCCUPANT_NON_OCCUPANT_STATUS
boolean isValidOccupantNonOccupantStatus(byte[] edt)
synchronized byte[] getProperty(byte epc)
synchronized boolean isValidProperty(EchoProperty property)
abstract byte[] getLockSetting1()
abstract boolean setLockSetting1(byte[] edt)
byte[] getAutoLockModeSetting()
byte[] getOccupantNonOccupantStatus()
abstract byte[] getManufacturerCode()
boolean isValidDoorOpenCloseStatus(byte[] edt)
static final short ECHO_CLASS_CODE
static Informer informG(byte instanceCode)
boolean setAutoLockModeSetting(byte[] edt)
byte[] getDoorOpenCloseStatus()
static Setter setG(byte instanceCode, boolean responseRequired)
static final byte EPC_OPERATION_STATUS
byte[] getStandardVersionInformation()
abstract byte[] getOperationStatus()
abstract boolean setInstallationLocation(byte[] edt)
static Informer informG()
static final byte EPC_LOCK_STATUS_OF_DOOR_GUARD
static final String MULTICAST_ADDRESS
static final byte EPC_DOOR_OPEN_CLOSE_STATUS
static final byte EPC_LOCK_SETTING2
final boolean isSelfObject()
boolean isValidAutoLockModeSetting(byte[] edt)
boolean setLockSetting2(byte[] edt)