16 package com.sonycsl.echo.eoj.device.sensor;
36 super.setupPropertyMaps();
48 Echo.getEventListener().onNewElectricLeakSensor(
this);
175 if(edt == null || !(edt.length == 1))
return false;
230 if(edt == null || !(edt.length == 1))
return false;
279 if(edt == null || !(edt.length == 1))
return false;
285 boolean success = super.setProperty(property);
286 if(success)
return success;
288 switch(property.
epc) {
291 default :
return false;
297 byte[] edt = super.getProperty(epc);
298 if(edt != null)
return edt;
303 default :
return null;
309 boolean valid = super.isValidProperty(property);
310 if(valid)
return valid;
312 switch(property.
epc) {
316 default :
return false;
326 public Setter
set(
boolean responseRequired) {
328 ,
getNode().getAddressStr(), responseRequired);
332 public Getter
get() {
343 protected Informer
inform(
boolean multicast) {
348 address =
getNode().getAddressStr();
354 public static class Receiver
extends DeviceObject.Receiver {
357 protected boolean onSetProperty(
EchoObject eoj,
short tid, byte esv,
359 boolean ret = super.onSetProperty(eoj, tid, esv, property, success);
362 switch(property.epc) {
364 onSetDetectionThresholdLevel(eoj, tid, esv, property, success);
367 onSetElectricLeakOccurrenceStatusResetting(eoj, tid, esv, property, success);
375 protected boolean onGetProperty(
EchoObject eoj,
short tid, byte esv,
377 boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
380 switch(property.epc) {
382 onGetDetectionThresholdLevel(eoj, tid, esv, property, success);
385 onGetElectricLeakOccurrenceStatus(eoj, tid, esv, property, success);
414 protected void onSetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
437 protected void onGetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
463 protected void onGetElectricLeakOccurrenceStatus(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
486 protected void onSetElectricLeakOccurrenceStatusResetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
489 public static class Setter
extends DeviceObject.Setter {
490 public Setter(
short dstEchoClassCode, byte dstEchoInstanceCode
491 , String dstEchoAddress,
boolean responseRequired) {
492 super(dstEchoClassCode, dstEchoInstanceCode
493 , dstEchoAddress, responseRequired);
497 public Setter reqSetProperty(byte epc, byte[] edt) {
498 return (Setter)super.reqSetProperty(epc, edt);
502 public Setter reqSetOperationStatus(byte[] edt) {
503 return (Setter)super.reqSetOperationStatus(edt);
506 public Setter reqSetInstallationLocation(byte[] edt) {
507 return (Setter)super.reqSetInstallationLocation(edt);
510 public Setter reqSetCurrentLimitSetting(byte[] edt) {
511 return (Setter)super.reqSetCurrentLimitSetting(edt);
514 public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
515 return (Setter)super.reqSetPowerSavingOperationSetting(edt);
518 public Setter reqSetRemoteControlSetting(byte[] edt) {
519 return (Setter)super.reqSetRemoteControlSetting(edt);
522 public Setter reqSetCurrentTimeSetting(byte[] edt) {
523 return (Setter)super.reqSetCurrentTimeSetting(edt);
526 public Setter reqSetCurrentDateSetting(byte[] edt) {
527 return (Setter)super.reqSetCurrentDateSetting(edt);
530 public Setter reqSetPowerLimitSetting(byte[] edt) {
531 return (Setter)super.reqSetPowerLimitSetting(edt);
556 public Setter reqSetDetectionThresholdLevel(byte[] edt) {
582 public Setter reqSetElectricLeakOccurrenceStatusResetting(byte[] edt) {
588 public static class Getter
extends DeviceObject.Getter {
589 public Getter(
short dstEchoClassCode, byte dstEchoInstanceCode
590 , String dstEchoAddress) {
591 super(dstEchoClassCode, dstEchoInstanceCode
596 public Getter reqGetProperty(byte epc) {
597 return (Getter)super.reqGetProperty(epc);
601 public Getter reqGetOperationStatus() {
602 return (Getter)super.reqGetOperationStatus();
605 public Getter reqGetInstallationLocation() {
606 return (Getter)super.reqGetInstallationLocation();
609 public Getter reqGetStandardVersionInformation() {
610 return (Getter)super.reqGetStandardVersionInformation();
613 public Getter reqGetIdentificationNumber() {
614 return (Getter)super.reqGetIdentificationNumber();
617 public Getter reqGetMeasuredInstantaneousPowerConsumption() {
618 return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
621 public Getter reqGetMeasuredCumulativePowerConsumption() {
622 return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
625 public Getter reqGetManufacturersFaultCode() {
626 return (Getter)super.reqGetManufacturersFaultCode();
629 public Getter reqGetCurrentLimitSetting() {
630 return (Getter)super.reqGetCurrentLimitSetting();
633 public Getter reqGetFaultStatus() {
634 return (Getter)super.reqGetFaultStatus();
637 public Getter reqGetFaultDescription() {
638 return (Getter)super.reqGetFaultDescription();
641 public Getter reqGetManufacturerCode() {
642 return (Getter)super.reqGetManufacturerCode();
645 public Getter reqGetBusinessFacilityCode() {
646 return (Getter)super.reqGetBusinessFacilityCode();
649 public Getter reqGetProductCode() {
650 return (Getter)super.reqGetProductCode();
653 public Getter reqGetProductionNumber() {
654 return (Getter)super.reqGetProductionNumber();
657 public Getter reqGetProductionDate() {
658 return (Getter)super.reqGetProductionDate();
661 public Getter reqGetPowerSavingOperationSetting() {
662 return (Getter)super.reqGetPowerSavingOperationSetting();
665 public Getter reqGetRemoteControlSetting() {
666 return (Getter)super.reqGetRemoteControlSetting();
669 public Getter reqGetCurrentTimeSetting() {
670 return (Getter)super.reqGetCurrentTimeSetting();
673 public Getter reqGetCurrentDateSetting() {
674 return (Getter)super.reqGetCurrentDateSetting();
677 public Getter reqGetPowerLimitSetting() {
678 return (Getter)super.reqGetPowerLimitSetting();
681 public Getter reqGetCumulativeOperatingTime() {
682 return (Getter)super.reqGetCumulativeOperatingTime();
685 public Getter reqGetStatusChangeAnnouncementPropertyMap() {
686 return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
689 public Getter reqGetSetPropertyMap() {
690 return (Getter)super.reqGetSetPropertyMap();
693 public Getter reqGetGetPropertyMap() {
694 return (Getter)super.reqGetGetPropertyMap();
719 public Getter reqGetDetectionThresholdLevel() {
748 public Getter reqGetElectricLeakOccurrenceStatus() {
754 public static class Informer
extends DeviceObject.Informer {
755 public Informer(
short echoClassCode, byte echoInstanceCode
757 super(echoClassCode, echoInstanceCode
758 , dstEchoAddress, isSelfObject);
762 public Informer reqInformProperty(byte epc) {
763 return (Informer)super.reqInformProperty(epc);
766 public Informer reqInformOperationStatus() {
767 return (Informer)super.reqInformOperationStatus();
770 public Informer reqInformInstallationLocation() {
771 return (Informer)super.reqInformInstallationLocation();
774 public Informer reqInformStandardVersionInformation() {
775 return (Informer)super.reqInformStandardVersionInformation();
778 public Informer reqInformIdentificationNumber() {
779 return (Informer)super.reqInformIdentificationNumber();
782 public Informer reqInformMeasuredInstantaneousPowerConsumption() {
783 return (Informer)super.reqInformMeasuredInstantaneousPowerConsumption();
786 public Informer reqInformMeasuredCumulativePowerConsumption() {
787 return (Informer)super.reqInformMeasuredCumulativePowerConsumption();
790 public Informer reqInformManufacturersFaultCode() {
791 return (Informer)super.reqInformManufacturersFaultCode();
794 public Informer reqInformCurrentLimitSetting() {
795 return (Informer)super.reqInformCurrentLimitSetting();
798 public Informer reqInformFaultStatus() {
799 return (Informer)super.reqInformFaultStatus();
802 public Informer reqInformFaultDescription() {
803 return (Informer)super.reqInformFaultDescription();
806 public Informer reqInformManufacturerCode() {
807 return (Informer)super.reqInformManufacturerCode();
810 public Informer reqInformBusinessFacilityCode() {
811 return (Informer)super.reqInformBusinessFacilityCode();
814 public Informer reqInformProductCode() {
815 return (Informer)super.reqInformProductCode();
818 public Informer reqInformProductionNumber() {
819 return (Informer)super.reqInformProductionNumber();
822 public Informer reqInformProductionDate() {
823 return (Informer)super.reqInformProductionDate();
826 public Informer reqInformPowerSavingOperationSetting() {
827 return (Informer)super.reqInformPowerSavingOperationSetting();
830 public Informer reqInformRemoteControlSetting() {
831 return (Informer)super.reqInformRemoteControlSetting();
834 public Informer reqInformCurrentTimeSetting() {
835 return (Informer)super.reqInformCurrentTimeSetting();
838 public Informer reqInformCurrentDateSetting() {
839 return (Informer)super.reqInformCurrentDateSetting();
842 public Informer reqInformPowerLimitSetting() {
843 return (Informer)super.reqInformPowerLimitSetting();
846 public Informer reqInformCumulativeOperatingTime() {
847 return (Informer)super.reqInformCumulativeOperatingTime();
850 public Informer reqInformStatusChangeAnnouncementPropertyMap() {
851 return (Informer)super.reqInformStatusChangeAnnouncementPropertyMap();
854 public Informer reqInformSetPropertyMap() {
855 return (Informer)super.reqInformSetPropertyMap();
858 public Informer reqInformGetPropertyMap() {
859 return (Informer)super.reqInformGetPropertyMap();
884 public Informer reqInformDetectionThresholdLevel() {
913 public Informer reqInformElectricLeakOccurrenceStatus() {
919 public static class Proxy
extends ElectricLeakSensor {
920 public Proxy(byte instanceCode) {
945 return setG((byte)0);
948 public static Setter
setG(byte instanceCode) {
949 return setG(instanceCode,
true);
952 public static Setter
setG(
boolean responseRequired) {
953 return setG((byte)0, responseRequired);
956 public static Setter
setG(byte instanceCode,
boolean responseRequired) {
962 return getG((byte)0);
965 public static Getter
getG(byte instanceCode) {
974 public static Informer
informG(byte instanceCode) {
static Setter setG(byte instanceCode)
static Getter getG(byte instanceCode)
boolean isValidDetectionThresholdLevel(byte[] edt)
static final byte EPC_ELECTRIC_LEAK_OCCURRENCE_STATUS_RESETTING
final void removeSetProperty(byte epc)
final void addStatusChangeAnnouncementProperty(byte epc)
abstract byte[] getInstallationLocation()
synchronized boolean isValidProperty(EchoProperty property)
final void addGetProperty(byte epc)
boolean isValidElectricLeakOccurrenceStatusResetting(byte[] edt)
static Informer informG(byte instanceCode)
static Informer informG()
static final byte EPC_DETECTION_THRESHOLD_LEVEL
abstract byte[] getFaultStatus()
boolean isValidElectricLeakOccurrenceStatus(byte[] edt)
static Setter setG(byte instanceCode, boolean responseRequired)
Setter set(boolean responseRequired)
abstract byte[] getManufacturerCode()
Informer inform(boolean multicast)
abstract byte[] getElectricLeakOccurrenceStatus()
static final short ECHO_CLASS_CODE
boolean setDetectionThresholdLevel(byte[] edt)
synchronized byte[] getProperty(byte epc)
synchronized boolean setProperty(EchoProperty property)
static Setter setG(boolean responseRequired)
static final byte EPC_OPERATION_STATUS
byte[] getStandardVersionInformation()
boolean setOperationStatus(byte[] edt)
static final byte EPC_ELECTRIC_LEAK_OCCURRENCE_STATUS
abstract boolean setInstallationLocation(byte[] edt)
static final String MULTICAST_ADDRESS
byte[] getDetectionThresholdLevel()
abstract byte[] getOperationStatus()
boolean setElectricLeakOccurrenceStatusResetting(byte[] edt)
final boolean isSelfObject()