16 package com.sonycsl.echo.eoj.device.cookinghousehold;
40 super.setupPropertyMaps();
50 Echo.getEventListener().onNewWashingMachine(
this);
154 if(edt == null || !(edt.length == 1))
return false;
232 if(edt == null || !(edt.length == 1))
return false;
281 if(edt == null || !(edt.length == 1))
return false;
330 if(edt == null || !(edt.length == 3))
return false;
402 if(edt == null || !(edt.length == 1))
return false;
474 if(edt == null || !(edt.length == 2))
return false;
549 if(edt == null || !(edt.length == 2))
return false;
555 boolean success = super.setProperty(property);
556 if(success)
return success;
558 switch(property.
epc) {
563 default :
return false;
569 byte[] edt = super.getProperty(epc);
570 if(edt != null)
return edt;
580 default :
return null;
586 boolean valid = super.isValidProperty(property);
587 if(valid)
return valid;
589 switch(property.
epc) {
597 default :
return false;
607 public Setter
set(
boolean responseRequired) {
609 ,
getNode().getAddressStr(), responseRequired);
613 public Getter
get() {
624 protected Informer
inform(
boolean multicast) {
629 address =
getNode().getAddressStr();
635 public static class Receiver
extends DeviceObject.Receiver {
638 protected boolean onSetProperty(
EchoObject eoj,
short tid, byte esv,
640 boolean ret = super.onSetProperty(eoj, tid, esv, property, success);
643 switch(property.epc) {
645 onSetWashingMachineSetting(eoj, tid, esv, property, success);
648 onSetOnTimerReservationSetting(eoj, tid, esv, property, success);
651 onSetOnTimerSetting(eoj, tid, esv, property, success);
654 onSetRelativeTimeBasedOnTimerSetting(eoj, tid, esv, property, success);
662 protected boolean onGetProperty(
EchoObject eoj,
short tid, byte esv,
664 boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
667 switch(property.epc) {
669 onGetDoorCoverOpenCloseStatus(eoj, tid, esv, property, success);
672 onGetWashingMachineSetting(eoj, tid, esv, property, success);
675 onGetCurrentStageOfWashingCycle(eoj, tid, esv, property, success);
678 onGetTimeRemainingToCompleteWashingCycle(eoj, tid, esv, property, success);
681 onGetOnTimerReservationSetting(eoj, tid, esv, property, success);
684 onGetOnTimerSetting(eoj, tid, esv, property, success);
687 onGetRelativeTimeBasedOnTimerSetting(eoj, tid, esv, property, success);
716 protected void onGetDoorCoverOpenCloseStatus(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
741 protected void onSetWashingMachineSetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
766 protected void onGetWashingMachineSetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
789 protected void onGetCurrentStageOfWashingCycle(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
812 protected void onGetTimeRemainingToCompleteWashingCycle(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
835 protected void onSetOnTimerReservationSetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
858 protected void onGetOnTimerReservationSetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
881 protected void onSetOnTimerSetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
904 protected void onGetOnTimerSetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
928 protected void onSetRelativeTimeBasedOnTimerSetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
952 protected void onGetRelativeTimeBasedOnTimerSetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
955 public static class Setter
extends DeviceObject.Setter {
956 public Setter(
short dstEchoClassCode, byte dstEchoInstanceCode
957 , String dstEchoAddress,
boolean responseRequired) {
958 super(dstEchoClassCode, dstEchoInstanceCode
959 , dstEchoAddress, responseRequired);
963 public Setter reqSetProperty(byte epc, byte[] edt) {
964 return (Setter)super.reqSetProperty(epc, edt);
968 public Setter reqSetOperationStatus(byte[] edt) {
969 return (Setter)super.reqSetOperationStatus(edt);
972 public Setter reqSetInstallationLocation(byte[] edt) {
973 return (Setter)super.reqSetInstallationLocation(edt);
976 public Setter reqSetCurrentLimitSetting(byte[] edt) {
977 return (Setter)super.reqSetCurrentLimitSetting(edt);
980 public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
981 return (Setter)super.reqSetPowerSavingOperationSetting(edt);
984 public Setter reqSetRemoteControlSetting(byte[] edt) {
985 return (Setter)super.reqSetRemoteControlSetting(edt);
988 public Setter reqSetCurrentTimeSetting(byte[] edt) {
989 return (Setter)super.reqSetCurrentTimeSetting(edt);
992 public Setter reqSetCurrentDateSetting(byte[] edt) {
993 return (Setter)super.reqSetCurrentDateSetting(edt);
996 public Setter reqSetPowerLimitSetting(byte[] edt) {
997 return (Setter)super.reqSetPowerLimitSetting(edt);
1024 public Setter reqSetWashingMachineSetting(byte[] edt) {
1050 public Setter reqSetOnTimerReservationSetting(byte[] edt) {
1076 public Setter reqSetOnTimerSetting(byte[] edt) {
1103 public Setter reqSetRelativeTimeBasedOnTimerSetting(byte[] edt) {
1109 public static class Getter
extends DeviceObject.Getter {
1110 public Getter(
short dstEchoClassCode, byte dstEchoInstanceCode
1111 , String dstEchoAddress) {
1112 super(dstEchoClassCode, dstEchoInstanceCode
1117 public Getter reqGetProperty(byte epc) {
1118 return (Getter)super.reqGetProperty(epc);
1122 public Getter reqGetOperationStatus() {
1123 return (Getter)super.reqGetOperationStatus();
1126 public Getter reqGetInstallationLocation() {
1127 return (Getter)super.reqGetInstallationLocation();
1130 public Getter reqGetStandardVersionInformation() {
1131 return (Getter)super.reqGetStandardVersionInformation();
1134 public Getter reqGetIdentificationNumber() {
1135 return (Getter)super.reqGetIdentificationNumber();
1138 public Getter reqGetMeasuredInstantaneousPowerConsumption() {
1139 return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
1142 public Getter reqGetMeasuredCumulativePowerConsumption() {
1143 return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
1146 public Getter reqGetManufacturersFaultCode() {
1147 return (Getter)super.reqGetManufacturersFaultCode();
1150 public Getter reqGetCurrentLimitSetting() {
1151 return (Getter)super.reqGetCurrentLimitSetting();
1154 public Getter reqGetFaultStatus() {
1155 return (Getter)super.reqGetFaultStatus();
1158 public Getter reqGetFaultDescription() {
1159 return (Getter)super.reqGetFaultDescription();
1162 public Getter reqGetManufacturerCode() {
1163 return (Getter)super.reqGetManufacturerCode();
1166 public Getter reqGetBusinessFacilityCode() {
1167 return (Getter)super.reqGetBusinessFacilityCode();
1170 public Getter reqGetProductCode() {
1171 return (Getter)super.reqGetProductCode();
1174 public Getter reqGetProductionNumber() {
1175 return (Getter)super.reqGetProductionNumber();
1178 public Getter reqGetProductionDate() {
1179 return (Getter)super.reqGetProductionDate();
1182 public Getter reqGetPowerSavingOperationSetting() {
1183 return (Getter)super.reqGetPowerSavingOperationSetting();
1186 public Getter reqGetRemoteControlSetting() {
1187 return (Getter)super.reqGetRemoteControlSetting();
1190 public Getter reqGetCurrentTimeSetting() {
1191 return (Getter)super.reqGetCurrentTimeSetting();
1194 public Getter reqGetCurrentDateSetting() {
1195 return (Getter)super.reqGetCurrentDateSetting();
1198 public Getter reqGetPowerLimitSetting() {
1199 return (Getter)super.reqGetPowerLimitSetting();
1202 public Getter reqGetCumulativeOperatingTime() {
1203 return (Getter)super.reqGetCumulativeOperatingTime();
1206 public Getter reqGetStatusChangeAnnouncementPropertyMap() {
1207 return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
1210 public Getter reqGetSetPropertyMap() {
1211 return (Getter)super.reqGetSetPropertyMap();
1214 public Getter reqGetGetPropertyMap() {
1215 return (Getter)super.reqGetGetPropertyMap();
1240 public Getter reqGetDoorCoverOpenCloseStatus() {
1268 public Getter reqGetWashingMachineSetting() {
1294 public Getter reqGetCurrentStageOfWashingCycle() {
1320 public Getter reqGetTimeRemainingToCompleteWashingCycle() {
1346 public Getter reqGetOnTimerReservationSetting() {
1372 public Getter reqGetOnTimerSetting() {
1399 public Getter reqGetRelativeTimeBasedOnTimerSetting() {
1405 public static class Informer
extends DeviceObject.Informer {
1406 public Informer(
short echoClassCode, byte echoInstanceCode
1408 super(echoClassCode, echoInstanceCode
1409 , dstEchoAddress, isSelfObject);
1413 public Informer reqInformProperty(byte epc) {
1414 return (Informer)super.reqInformProperty(epc);
1417 public Informer reqInformOperationStatus() {
1418 return (Informer)super.reqInformOperationStatus();
1421 public Informer reqInformInstallationLocation() {
1422 return (Informer)super.reqInformInstallationLocation();
1425 public Informer reqInformStandardVersionInformation() {
1426 return (Informer)super.reqInformStandardVersionInformation();
1429 public Informer reqInformIdentificationNumber() {
1430 return (Informer)super.reqInformIdentificationNumber();
1433 public Informer reqInformMeasuredInstantaneousPowerConsumption() {
1434 return (Informer)super.reqInformMeasuredInstantaneousPowerConsumption();
1437 public Informer reqInformMeasuredCumulativePowerConsumption() {
1438 return (Informer)super.reqInformMeasuredCumulativePowerConsumption();
1441 public Informer reqInformManufacturersFaultCode() {
1442 return (Informer)super.reqInformManufacturersFaultCode();
1445 public Informer reqInformCurrentLimitSetting() {
1446 return (Informer)super.reqInformCurrentLimitSetting();
1449 public Informer reqInformFaultStatus() {
1450 return (Informer)super.reqInformFaultStatus();
1453 public Informer reqInformFaultDescription() {
1454 return (Informer)super.reqInformFaultDescription();
1457 public Informer reqInformManufacturerCode() {
1458 return (Informer)super.reqInformManufacturerCode();
1461 public Informer reqInformBusinessFacilityCode() {
1462 return (Informer)super.reqInformBusinessFacilityCode();
1465 public Informer reqInformProductCode() {
1466 return (Informer)super.reqInformProductCode();
1469 public Informer reqInformProductionNumber() {
1470 return (Informer)super.reqInformProductionNumber();
1473 public Informer reqInformProductionDate() {
1474 return (Informer)super.reqInformProductionDate();
1477 public Informer reqInformPowerSavingOperationSetting() {
1478 return (Informer)super.reqInformPowerSavingOperationSetting();
1481 public Informer reqInformRemoteControlSetting() {
1482 return (Informer)super.reqInformRemoteControlSetting();
1485 public Informer reqInformCurrentTimeSetting() {
1486 return (Informer)super.reqInformCurrentTimeSetting();
1489 public Informer reqInformCurrentDateSetting() {
1490 return (Informer)super.reqInformCurrentDateSetting();
1493 public Informer reqInformPowerLimitSetting() {
1494 return (Informer)super.reqInformPowerLimitSetting();
1497 public Informer reqInformCumulativeOperatingTime() {
1498 return (Informer)super.reqInformCumulativeOperatingTime();
1501 public Informer reqInformStatusChangeAnnouncementPropertyMap() {
1502 return (Informer)super.reqInformStatusChangeAnnouncementPropertyMap();
1505 public Informer reqInformSetPropertyMap() {
1506 return (Informer)super.reqInformSetPropertyMap();
1509 public Informer reqInformGetPropertyMap() {
1510 return (Informer)super.reqInformGetPropertyMap();
1535 public Informer reqInformDoorCoverOpenCloseStatus() {
1563 public Informer reqInformWashingMachineSetting() {
1589 public Informer reqInformCurrentStageOfWashingCycle() {
1615 public Informer reqInformTimeRemainingToCompleteWashingCycle() {
1641 public Informer reqInformOnTimerReservationSetting() {
1667 public Informer reqInformOnTimerSetting() {
1694 public Informer reqInformRelativeTimeBasedOnTimerSetting() {
1700 public static class Proxy
extends WashingMachine {
1701 public Proxy(byte instanceCode) {
1724 return setG((byte)0);
1727 public static Setter
setG(byte instanceCode) {
1728 return setG(instanceCode,
true);
1731 public static Setter
setG(
boolean responseRequired) {
1732 return setG((byte)0, responseRequired);
1735 public static Setter
setG(byte instanceCode,
boolean responseRequired) {
1741 return getG((byte)0);
1744 public static Getter
getG(byte instanceCode) {
1753 public static Informer
informG(byte instanceCode) {
static final byte EPC_ON_TIMER_SETTING
boolean setRelativeTimeBasedOnTimerSetting(byte[] edt)
synchronized boolean isValidProperty(EchoProperty property)
static final byte EPC_TIME_REMAINING_TO_COMPLETE_WASHING_CYCLE
boolean isValidOnTimerReservationSetting(byte[] edt)
Setter set(boolean responseRequired)
static final byte EPC_WASHING_MACHINE_SETTING
final void removeSetProperty(byte epc)
static final byte EPC_ON_TIMER_RESERVATION_SETTING
boolean setWashingMachineSetting(byte[] edt)
final void addStatusChangeAnnouncementProperty(byte epc)
abstract byte[] getInstallationLocation()
final void addGetProperty(byte epc)
synchronized byte[] getProperty(byte epc)
static final byte EPC_DOOR_COVER_OPEN_CLOSE_STATUS
static final byte EPC_RELATIVE_TIME_BASED_ON_TIMER_SETTING
boolean isValidDoorCoverOpenCloseStatus(byte[] edt)
static Setter setG(byte instanceCode, boolean responseRequired)
static final byte EPC_CURRENT_STAGE_OF_WASHING_CYCLE
byte[] getRelativeTimeBasedOnTimerSetting()
byte[] getOnTimerReservationSetting()
byte[] getWashingMachineSetting()
boolean isValidRelativeTimeBasedOnTimerSetting(byte[] edt)
byte[] getCurrentStageOfWashingCycle()
abstract byte[] getFaultStatus()
static Informer informG()
static final short ECHO_CLASS_CODE
static Setter setG(boolean responseRequired)
abstract byte[] getManufacturerCode()
byte[] getDoorCoverOpenCloseStatus()
boolean setOnTimerSetting(byte[] edt)
boolean isValidWashingMachineSetting(byte[] edt)
static Setter setG(byte instanceCode)
static Getter getG(byte instanceCode)
boolean isValidOnTimerSetting(byte[] edt)
boolean setOperationStatus(byte[] edt)
static Informer informG(byte instanceCode)
synchronized boolean setProperty(EchoProperty property)
boolean isValidTimeRemainingToCompleteWashingCycle(byte[] edt)
static final byte EPC_OPERATION_STATUS
byte[] getStandardVersionInformation()
abstract boolean setInstallationLocation(byte[] edt)
static final String MULTICAST_ADDRESS
boolean setOnTimerReservationSetting(byte[] edt)
abstract byte[] getOperationStatus()
Informer inform(boolean multicast)
final boolean isSelfObject()
byte[] getOnTimerSetting()
boolean isValidCurrentStageOfWashingCycle(byte[] edt)
byte[] getTimeRemainingToCompleteWashingCycle()