16 package com.sonycsl.echo.eoj.device.sensor;
35 super.setupPropertyMaps();
47 Echo.getEventListener().onNewWaterLeakSensor(
this);
174 if(edt == null || !(edt.length == 1))
return false;
231 if(edt == null || !(edt.length == 1))
return false;
237 boolean success = super.setProperty(property);
238 if(success)
return success;
240 switch(property.
epc) {
242 default :
return false;
248 byte[] edt = super.getProperty(epc);
249 if(edt != null)
return edt;
254 default :
return null;
260 boolean valid = super.isValidProperty(property);
261 if(valid)
return valid;
263 switch(property.
epc) {
266 default :
return false;
276 public Setter
set(
boolean responseRequired) {
278 ,
getNode().getAddressStr(), responseRequired);
282 public Getter
get() {
293 protected Informer
inform(
boolean multicast) {
298 address =
getNode().getAddressStr();
304 public static class Receiver
extends DeviceObject.Receiver {
307 protected boolean onSetProperty(
EchoObject eoj,
short tid, byte esv,
309 boolean ret = super.onSetProperty(eoj, tid, esv, property, success);
312 switch(property.epc) {
314 onSetDetectionThresholdLevel(eoj, tid, esv, property, success);
322 protected boolean onGetProperty(
EchoObject eoj,
short tid, byte esv,
324 boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
327 switch(property.epc) {
329 onGetDetectionThresholdLevel(eoj, tid, esv, property, success);
332 onGetWaterLeakDetectionStatus(eoj, tid, esv, property, success);
361 protected void onSetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
384 protected void onGetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
411 protected void onGetWaterLeakDetectionStatus(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
414 public static class Setter
extends DeviceObject.Setter {
415 public Setter(
short dstEchoClassCode, byte dstEchoInstanceCode
416 , String dstEchoAddress,
boolean responseRequired) {
417 super(dstEchoClassCode, dstEchoInstanceCode
418 , dstEchoAddress, responseRequired);
422 public Setter reqSetProperty(byte epc, byte[] edt) {
423 return (Setter)super.reqSetProperty(epc, edt);
427 public Setter reqSetOperationStatus(byte[] edt) {
428 return (Setter)super.reqSetOperationStatus(edt);
431 public Setter reqSetInstallationLocation(byte[] edt) {
432 return (Setter)super.reqSetInstallationLocation(edt);
435 public Setter reqSetCurrentLimitSetting(byte[] edt) {
436 return (Setter)super.reqSetCurrentLimitSetting(edt);
439 public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
440 return (Setter)super.reqSetPowerSavingOperationSetting(edt);
443 public Setter reqSetRemoteControlSetting(byte[] edt) {
444 return (Setter)super.reqSetRemoteControlSetting(edt);
447 public Setter reqSetCurrentTimeSetting(byte[] edt) {
448 return (Setter)super.reqSetCurrentTimeSetting(edt);
451 public Setter reqSetCurrentDateSetting(byte[] edt) {
452 return (Setter)super.reqSetCurrentDateSetting(edt);
455 public Setter reqSetPowerLimitSetting(byte[] edt) {
456 return (Setter)super.reqSetPowerLimitSetting(edt);
481 public Setter reqSetDetectionThresholdLevel(byte[] edt) {
487 public static class Getter
extends DeviceObject.Getter {
488 public Getter(
short dstEchoClassCode, byte dstEchoInstanceCode
489 , String dstEchoAddress) {
490 super(dstEchoClassCode, dstEchoInstanceCode
495 public Getter reqGetProperty(byte epc) {
496 return (Getter)super.reqGetProperty(epc);
500 public Getter reqGetOperationStatus() {
501 return (Getter)super.reqGetOperationStatus();
504 public Getter reqGetInstallationLocation() {
505 return (Getter)super.reqGetInstallationLocation();
508 public Getter reqGetStandardVersionInformation() {
509 return (Getter)super.reqGetStandardVersionInformation();
512 public Getter reqGetIdentificationNumber() {
513 return (Getter)super.reqGetIdentificationNumber();
516 public Getter reqGetMeasuredInstantaneousPowerConsumption() {
517 return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
520 public Getter reqGetMeasuredCumulativePowerConsumption() {
521 return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
524 public Getter reqGetManufacturersFaultCode() {
525 return (Getter)super.reqGetManufacturersFaultCode();
528 public Getter reqGetCurrentLimitSetting() {
529 return (Getter)super.reqGetCurrentLimitSetting();
532 public Getter reqGetFaultStatus() {
533 return (Getter)super.reqGetFaultStatus();
536 public Getter reqGetFaultDescription() {
537 return (Getter)super.reqGetFaultDescription();
540 public Getter reqGetManufacturerCode() {
541 return (Getter)super.reqGetManufacturerCode();
544 public Getter reqGetBusinessFacilityCode() {
545 return (Getter)super.reqGetBusinessFacilityCode();
548 public Getter reqGetProductCode() {
549 return (Getter)super.reqGetProductCode();
552 public Getter reqGetProductionNumber() {
553 return (Getter)super.reqGetProductionNumber();
556 public Getter reqGetProductionDate() {
557 return (Getter)super.reqGetProductionDate();
560 public Getter reqGetPowerSavingOperationSetting() {
561 return (Getter)super.reqGetPowerSavingOperationSetting();
564 public Getter reqGetRemoteControlSetting() {
565 return (Getter)super.reqGetRemoteControlSetting();
568 public Getter reqGetCurrentTimeSetting() {
569 return (Getter)super.reqGetCurrentTimeSetting();
572 public Getter reqGetCurrentDateSetting() {
573 return (Getter)super.reqGetCurrentDateSetting();
576 public Getter reqGetPowerLimitSetting() {
577 return (Getter)super.reqGetPowerLimitSetting();
580 public Getter reqGetCumulativeOperatingTime() {
581 return (Getter)super.reqGetCumulativeOperatingTime();
584 public Getter reqGetStatusChangeAnnouncementPropertyMap() {
585 return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
588 public Getter reqGetSetPropertyMap() {
589 return (Getter)super.reqGetSetPropertyMap();
592 public Getter reqGetGetPropertyMap() {
593 return (Getter)super.reqGetGetPropertyMap();
618 public Getter reqGetDetectionThresholdLevel() {
648 public Getter reqGetWaterLeakDetectionStatus() {
654 public static class Informer
extends DeviceObject.Informer {
655 public Informer(
short echoClassCode, byte echoInstanceCode
657 super(echoClassCode, echoInstanceCode
658 , dstEchoAddress, isSelfObject);
662 public Informer reqInformProperty(byte epc) {
663 return (Informer)super.reqInformProperty(epc);
666 public Informer reqInformOperationStatus() {
667 return (Informer)super.reqInformOperationStatus();
670 public Informer reqInformInstallationLocation() {
671 return (Informer)super.reqInformInstallationLocation();
674 public Informer reqInformStandardVersionInformation() {
675 return (Informer)super.reqInformStandardVersionInformation();
678 public Informer reqInformIdentificationNumber() {
679 return (Informer)super.reqInformIdentificationNumber();
682 public Informer reqInformMeasuredInstantaneousPowerConsumption() {
683 return (Informer)super.reqInformMeasuredInstantaneousPowerConsumption();
686 public Informer reqInformMeasuredCumulativePowerConsumption() {
687 return (Informer)super.reqInformMeasuredCumulativePowerConsumption();
690 public Informer reqInformManufacturersFaultCode() {
691 return (Informer)super.reqInformManufacturersFaultCode();
694 public Informer reqInformCurrentLimitSetting() {
695 return (Informer)super.reqInformCurrentLimitSetting();
698 public Informer reqInformFaultStatus() {
699 return (Informer)super.reqInformFaultStatus();
702 public Informer reqInformFaultDescription() {
703 return (Informer)super.reqInformFaultDescription();
706 public Informer reqInformManufacturerCode() {
707 return (Informer)super.reqInformManufacturerCode();
710 public Informer reqInformBusinessFacilityCode() {
711 return (Informer)super.reqInformBusinessFacilityCode();
714 public Informer reqInformProductCode() {
715 return (Informer)super.reqInformProductCode();
718 public Informer reqInformProductionNumber() {
719 return (Informer)super.reqInformProductionNumber();
722 public Informer reqInformProductionDate() {
723 return (Informer)super.reqInformProductionDate();
726 public Informer reqInformPowerSavingOperationSetting() {
727 return (Informer)super.reqInformPowerSavingOperationSetting();
730 public Informer reqInformRemoteControlSetting() {
731 return (Informer)super.reqInformRemoteControlSetting();
734 public Informer reqInformCurrentTimeSetting() {
735 return (Informer)super.reqInformCurrentTimeSetting();
738 public Informer reqInformCurrentDateSetting() {
739 return (Informer)super.reqInformCurrentDateSetting();
742 public Informer reqInformPowerLimitSetting() {
743 return (Informer)super.reqInformPowerLimitSetting();
746 public Informer reqInformCumulativeOperatingTime() {
747 return (Informer)super.reqInformCumulativeOperatingTime();
750 public Informer reqInformStatusChangeAnnouncementPropertyMap() {
751 return (Informer)super.reqInformStatusChangeAnnouncementPropertyMap();
754 public Informer reqInformSetPropertyMap() {
755 return (Informer)super.reqInformSetPropertyMap();
758 public Informer reqInformGetPropertyMap() {
759 return (Informer)super.reqInformGetPropertyMap();
784 public Informer reqInformDetectionThresholdLevel() {
814 public Informer reqInformWaterLeakDetectionStatus() {
820 public static class Proxy
extends WaterLeakSensor {
821 public Proxy(byte instanceCode) {
846 return setG((byte)0);
849 public static Setter
setG(byte instanceCode) {
850 return setG(instanceCode,
true);
853 public static Setter
setG(
boolean responseRequired) {
854 return setG((byte)0, responseRequired);
857 public static Setter
setG(byte instanceCode,
boolean responseRequired) {
863 return getG((byte)0);
866 public static Getter
getG(byte instanceCode) {
875 public static Informer
informG(byte instanceCode) {
synchronized byte[] getProperty(byte epc)
boolean setDetectionThresholdLevel(byte[] edt)
static final byte EPC_WATER_LEAK_DETECTION_STATUS
static final byte EPC_DETECTION_THRESHOLD_LEVEL
final void removeSetProperty(byte epc)
final void addStatusChangeAnnouncementProperty(byte epc)
abstract byte[] getInstallationLocation()
final void addGetProperty(byte epc)
static Getter getG(byte instanceCode)
abstract byte[] getWaterLeakDetectionStatus()
abstract byte[] getFaultStatus()
static Setter setG(byte instanceCode, boolean responseRequired)
Informer inform(boolean multicast)
boolean isValidWaterLeakDetectionStatus(byte[] edt)
static Setter setG(byte instanceCode)
abstract byte[] getManufacturerCode()
synchronized boolean setProperty(EchoProperty property)
boolean isValidDetectionThresholdLevel(byte[] edt)
boolean setOperationStatus(byte[] edt)
abstract byte[] getOperationStatus()
synchronized boolean isValidProperty(EchoProperty property)
static final short ECHO_CLASS_CODE
static final byte EPC_OPERATION_STATUS
Setter set(boolean responseRequired)
byte[] getStandardVersionInformation()
byte[] getDetectionThresholdLevel()
static Informer informG()
static Setter setG(boolean responseRequired)
abstract boolean setInstallationLocation(byte[] edt)
static final String MULTICAST_ADDRESS
final boolean isSelfObject()
static Informer informG(byte instanceCode)