16 package com.sonycsl.echo.eoj.device;
64 mEchoInstanceCode = EchoUtils.allocateSelfDeviceInstanceCode(
getEchoClassCode());
71 Echo.getEventListener().onNewDeviceObject(
this);
76 super.setupPropertyMaps();
96 boolean success = super.setProperty(property);
97 if(success)
return success;
99 switch(property.
epc) {
108 default :
return false;
114 byte[] edt = super.getProperty(epc);
115 if(edt != null)
return edt;
142 default :
return null;
148 boolean valid = super.isValidProperty(property);
149 if(valid)
return valid;
151 switch(property.
epc) {
176 default :
return false;
216 if(edt == null || !(edt.length == 1))
return false;
255 if(edt == null || !(edt.length == 1))
return false;
278 if(edt == null || !(edt.length == 4))
return false;
315 if(edt == null || !(edt.length == 9 || edt.length == 17))
return false;
337 if(edt == null || !(edt.length == 2))
return false;
359 if(edt == null || !(edt.length == 4))
return false;
383 if(edt == null || !(edt.length <= 255))
return false;
421 if(edt == null || !(edt.length == 1))
return false;
443 if(edt == null || !(edt.length == 1))
return false;
465 if(edt == null || !(edt.length == 2))
return false;
485 if(edt == null || !(edt.length == 3))
return false;
507 if(edt == null || !(edt.length == 3))
return false;
528 if(edt == null || !(edt.length == 12))
return false;
550 if(edt == null || !(edt.length == 12))
return false;
575 if(edt == null || !(edt.length == 4))
return false;
616 if(edt == null || !(edt.length == 1))
return false;
659 if(edt == null || !(edt.length == 1))
return false;
698 if(edt == null || !(edt.length == 2))
return false;
737 if(edt == null || !(edt.length == 4))
return false;
776 if(edt == null || !(edt.length == 2))
return false;
801 if(edt == null || !(edt.length == 5))
return false;
821 if(edt == null || !(edt.length <= 17))
return false;
841 if(edt == null || !(edt.length <= 17))
return false;
861 if(edt == null || !(edt.length <= 17))
return false;
871 public Setter
set(
boolean responseRequired) {
873 ,
getNode().getAddressStr(), responseRequired);
877 public Getter
get() {
888 protected Informer
inform(
boolean multicast) {
893 address =
getNode().getAddressStr();
900 public static class Receiver
extends EchoObject.Receiver {
903 protected boolean onSetProperty(
EchoObject eoj,
short tid, byte esv,
905 boolean ret = super.onSetProperty(eoj, tid, esv, property, success);
908 switch(property.epc) {
910 onSetOperationStatus(eoj, tid, esv, property, success);
913 onSetInstallationLocation(eoj, tid, esv, property, success);
916 onSetCurrentLimitSetting(eoj, tid, esv, property, success);
919 onSetPowerSavingOperationSetting(eoj, tid, esv, property, success);
922 onSetRemoteControlSetting(eoj, tid, esv, property, success);
925 onSetCurrentTimeSetting(eoj, tid, esv, property, success);
928 onSetCurrentDateSetting(eoj, tid, esv, property, success);
931 onSetPowerLimitSetting(eoj, tid, esv, property, success);
939 protected boolean onGetProperty(
EchoObject eoj,
short tid, byte esv,
941 boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
944 switch(property.epc) {
946 onGetOperationStatus(eoj, tid, esv, property, success);
949 onGetInstallationLocation(eoj, tid, esv, property, success);
952 onGetStandardVersionInformation(eoj, tid, esv, property, success);
955 onGetIdentificationNumber(eoj, tid, esv, property, success);
958 onGetMeasuredInstantaneousPowerConsumption(eoj, tid, esv, property, success);
961 onGetMeasuredCumulativePowerConsumption(eoj, tid, esv, property, success);
964 onGetManufacturersFaultCode(eoj, tid, esv, property, success);
967 onGetCurrentLimitSetting(eoj, tid, esv, property, success);
970 onGetFaultStatus(eoj, tid, esv, property, success);
973 onGetFaultDescription(eoj, tid, esv, property, success);
976 onGetManufacturerCode(eoj, tid, esv, property, success);
979 onGetBusinessFacilityCode(eoj, tid, esv, property, success);
982 onGetProductCode(eoj, tid, esv, property, success);
985 onGetProductionNumber(eoj, tid, esv, property, success);
988 onGetProductionDate(eoj, tid, esv, property, success);
991 onGetPowerSavingOperationSetting(eoj, tid, esv, property, success);
994 onGetRemoteControlSetting(eoj, tid, esv, property, success);
997 onGetCurrentTimeSetting(eoj, tid, esv, property, success);
1000 onGetCurrentDateSetting(eoj, tid, esv, property, success);
1003 onGetPowerLimitSetting(eoj, tid, esv, property, success);
1006 onGetCumulativeOperatingTime(eoj, tid, esv, property, success);
1009 onGetStatusChangeAnnouncementPropertyMap(eoj, tid, esv, property, success);
1012 onGetSetPropertyMap(eoj, tid, esv, property, success);
1015 onGetGetPropertyMap(eoj, tid, esv, property, success);
1031 protected void onSetOperationStatus(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1042 protected void onGetOperationStatus(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1053 protected void onSetInstallationLocation(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1064 protected void onGetInstallationLocation(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1077 protected void onGetStandardVersionInformation(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1102 protected void onGetIdentificationNumber(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1112 protected void onGetMeasuredInstantaneousPowerConsumption(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1122 protected void onGetMeasuredCumulativePowerConsumption(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1134 protected void onGetManufacturersFaultCode(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1144 protected void onSetCurrentLimitSetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1154 protected void onGetCurrentLimitSetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1165 protected void onGetFaultStatus(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1175 protected void onGetFaultDescription(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1185 protected void onGetManufacturerCode(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1195 protected void onGetBusinessFacilityCode(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1205 protected void onGetProductCode(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1215 protected void onGetProductionNumber(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1228 protected void onGetProductionDate(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1239 protected void onSetPowerSavingOperationSetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1250 protected void onGetPowerSavingOperationSetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1259 protected void onSetRemoteControlSetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1268 protected void onGetRemoteControlSetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1278 protected void onSetCurrentTimeSetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1288 protected void onGetCurrentTimeSetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1298 protected void onSetCurrentDateSetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1308 protected void onGetCurrentDateSetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1318 protected void onSetPowerLimitSetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1328 protected void onGetPowerLimitSetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1341 protected void onGetCumulativeOperatingTime(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1350 protected void onGetStatusChangeAnnouncementPropertyMap(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1359 protected void onGetSetPropertyMap(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1368 protected void onGetGetPropertyMap(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
1371 public static class Setter
extends EchoObject.Setter {
1372 public Setter(
short dstEchoClassCode, byte dstEchoInstanceCode
1373 , String dstEchoAddress,
boolean responseRequired) {
1374 super(dstEchoClassCode, dstEchoInstanceCode
1375 , dstEchoAddress, responseRequired);
1380 public Setter reqSetProperty(byte epc, byte[] edt) {
1381 return (Setter)super.reqSetProperty(epc, edt);
1393 public Setter reqSetOperationStatus(byte[] edt) {
1406 public Setter reqSetInstallationLocation(byte[] edt) {
1418 public Setter reqSetCurrentLimitSetting(byte[] edt) {
1431 public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
1443 public Setter reqSetRemoteControlSetting(byte[] edt) {
1455 public Setter reqSetCurrentTimeSetting(byte[] edt) {
1467 public Setter reqSetCurrentDateSetting(byte[] edt) {
1479 public Setter reqSetPowerLimitSetting(byte[] edt) {
1485 public static class Getter
extends EchoObject.Getter {
1487 public Getter(
short dstEchoClassCode, byte dstEchoInstanceCode
1488 , String dstEchoAddress) {
1489 super(dstEchoClassCode, dstEchoInstanceCode
1493 public Getter reqGetProperty(byte epc) {
1494 return (Getter)super.reqGetProperty(epc);
1505 public Getter reqGetOperationStatus() {
1518 public Getter reqGetInstallationLocation() {
1533 public Getter reqGetStandardVersionInformation() {
1560 public Getter reqGetIdentificationNumber() {
1572 public Getter reqGetMeasuredInstantaneousPowerConsumption() {
1584 public Getter reqGetMeasuredCumulativePowerConsumption() {
1598 public Getter reqGetManufacturersFaultCode() {
1610 public Getter reqGetCurrentLimitSetting() {
1623 public Getter reqGetFaultStatus() {
1635 public Getter reqGetFaultDescription() {
1647 public Getter reqGetManufacturerCode() {
1659 public Getter reqGetBusinessFacilityCode() {
1671 public Getter reqGetProductCode() {
1683 public Getter reqGetProductionNumber() {
1698 public Getter reqGetProductionDate() {
1711 public Getter reqGetPowerSavingOperationSetting() {
1722 public Getter reqGetRemoteControlSetting() {
1734 public Getter reqGetCurrentTimeSetting() {
1746 public Getter reqGetCurrentDateSetting() {
1758 public Getter reqGetPowerLimitSetting() {
1773 public Getter reqGetCumulativeOperatingTime() {
1784 public Getter reqGetStatusChangeAnnouncementPropertyMap() {
1795 public Getter reqGetSetPropertyMap() {
1806 public Getter reqGetGetPropertyMap() {
1812 public static class Informer
extends EchoObject.Informer {
1815 public Informer(
short echoClassCode, byte echoInstanceCode
1817 super(echoClassCode, echoInstanceCode
1818 , dstEchoAddress, isSelfObject);
1822 public Informer reqInformProperty(byte epc) {
1823 return (Informer)super.reqInformProperty(epc);
1835 public Informer reqInformOperationStatus() {
1848 public Informer reqInformInstallationLocation() {
1863 public Informer reqInformStandardVersionInformation() {
1890 public Informer reqInformIdentificationNumber() {
1902 public Informer reqInformMeasuredInstantaneousPowerConsumption() {
1914 public Informer reqInformMeasuredCumulativePowerConsumption() {
1928 public Informer reqInformManufacturersFaultCode() {
1940 public Informer reqInformCurrentLimitSetting() {
1953 public Informer reqInformFaultStatus() {
1965 public Informer reqInformFaultDescription() {
1977 public Informer reqInformManufacturerCode() {
1989 public Informer reqInformBusinessFacilityCode() {
2001 public Informer reqInformProductCode() {
2013 public Informer reqInformProductionNumber() {
2028 public Informer reqInformProductionDate() {
2041 public Informer reqInformPowerSavingOperationSetting() {
2052 public Informer reqInformRemoteControlSetting() {
2064 public Informer reqInformCurrentTimeSetting() {
2076 public Informer reqInformCurrentDateSetting() {
2088 public Informer reqInformPowerLimitSetting() {
2103 public Informer reqInformCumulativeOperatingTime() {
2114 public Informer reqInformStatusChangeAnnouncementPropertyMap() {
2125 public Informer reqInformSetPropertyMap() {
2136 public Informer reqInformGetPropertyMap() {
2143 public static class Proxy
extends DeviceObject {
2144 private short mEchoClassCode;
2145 public Proxy(
short echoClassCode, byte instanceCode) {
2147 mEchoClassCode = echoClassCode;
2148 mEchoInstanceCode = instanceCode;
2153 return mEchoClassCode;
boolean setPowerLimitSetting(byte[] edt)
static final byte EPC_SET_PROPERTY_MAP
static final byte EPC_GET_PROPERTY_MAP
boolean isValidRemoteControlSetting(byte[] edt)
boolean setRemoteControlSetting(byte[] edt)
boolean isValidMeasuredInstantaneousPowerConsumption(byte[] edt)
final byte[] getGetProperties()
boolean setCurrentDateSetting(byte edt[])
Informer inform(boolean multicast)
boolean isValidCurrentDateSetting(byte[] edt)
boolean isValidProductionDate(byte[] edt)
byte[] getSetPropertyMap()
boolean isValidFaultDescription(byte[] edt)
static final byte EPC_PRODUCTION_NUMBER
synchronized byte[] getProperty(byte epc)
static final byte EPC_STATUS_CHANGE_ANNOUNCEMENT_PROPERTY_MAP
static final byte EPC_CUMULATIVE_OPERATING_TIME
boolean isValidProductionNumber(byte[] edt)
static final byte EPC_POWER_LIMIT_SETTING
final byte[] getStatusChangeAnnouncementProperties()
static final byte EPC_REMOTE_CONTROL_SETTING
byte[] getIdentificationNumber()
byte[] getProductionDate()
void allocateSelfDeviceInstanceCode()
final void addStatusChangeAnnouncementProperty(byte epc)
static final byte EPC_POWER_SAVING_OPERATION_SETTING
abstract byte[] getInstallationLocation()
boolean isValidStatusChangeAnnouncementPropertyMap(byte[] edt)
boolean isValidSetPropertyMap(byte[] edt)
final void addGetProperty(byte epc)
static final byte EPC_MEASURED_CUMULATIVE_POWER_CONSUMPTION
byte[] getPowerSavingOperationSetting()
boolean isValidInstallationLocation(byte[] edt)
boolean isValidProductCode(byte[] edt)
byte[] getBusinessFacilityCode()
Setter set(boolean responseRequired)
abstract byte[] getOperationStatus()
byte[] getGetPropertyMap()
static final byte EPC_MEASURED_INSTANTANEOUS_POWER_CONSUMPTION
synchronized boolean setProperty(EchoProperty property)
boolean setOperationStatus(byte[] edt)
final void addSetProperty(byte epc)
boolean isValidMeasuredCumulativePowerConsumption(byte[] edt)
byte[] getFaultDescription()
boolean isValidGetPropertyMap(byte[] edt)
abstract byte[] getFaultStatus()
static final byte EPC_CURRENT_DATE_SETTING
static final byte EPC_STANDARD_VERSION_INFORMATION
static final byte EPC_CURRENT_LIMIT_SETTING
byte[] getManufacturersFaultCode()
byte[] getCumulativeOperatingTime()
static final byte EPC_FAULT_DESCRIPTION
boolean setPowerSavingOperationSetting(byte[] edt)
byte[] getCurrentDateSetting()
boolean isValidStandardVersionInformation(byte[] edt)
static final byte EPC_CURRENT_TIME_SETTING
static final byte EPC_FAULT_STATUS
boolean isValidCumulativeOperatingTime(byte[] edt)
boolean isValidManufacturerCode(byte[] edt)
abstract byte[] getManufacturerCode()
byte[] getCurrentLimitSetting()
synchronized boolean isValidProperty(EchoProperty property)
static final byte EPC_INSTALLATION_LOCATION
byte[] getStatusChangeAnnouncementPropertyMap()
byte[] getMeasuredInstantaneousPowerConsumption()
boolean isValidBusinessFacilityCode(byte[] edt)
boolean isValidIdentificationNumber(byte[] edt)
boolean isValidCurrentTimeSetting(byte[] edt)
byte[] getProductionNumber()
boolean isValidPowerLimitSetting(byte[] edt)
static final byte EPC_BUSINESS_FACILITY_CODE
byte[] getMeasuredCumulativePowerConsumption()
byte[] getPowerLimitSetting()
static final byte EPC_OPERATION_STATUS
byte[] getRemoteControlSetting()
byte[] getStandardVersionInformation()
static final byte EPC_IDENTIFICATION_NUMBER
static final byte[] EDT_STANDARD_VERSION_INFORMATION
boolean isValidCurrentLimitSetting(byte[] edt)
boolean setCurrentLimitSetting(byte[] edt)
final byte[] getSetProperties()
static final byte EPC_PRODUCT_CODE
static final byte EPC_MANUFACTURERS_FAULT_CODE
static final byte EPC_MANUFACTURER_CODE
abstract boolean setInstallationLocation(byte[] edt)
boolean isValidFaultStatus(byte[] edt)
static final String MULTICAST_ADDRESS
static final byte[] EDT_OPERATION_STATUS_OFF
boolean setCurrentTimeSetting(byte[] edt)
byte[] getCurrentTimeSetting()
final boolean isSelfObject()
boolean isValidPowerSavingOperationSetting(byte[] edt)
static final byte EPC_PRODUCTION_DATE
abstract short getEchoClassCode()
boolean isValidManufacturersFaultCode(byte[] edt)
static final byte[] EDT_OPERATION_STATUS_ON
boolean isValidOperationStatus(byte[] edt)