16 package com.sonycsl.echo.eoj.device.sensor;
36 super.setupPropertyMaps();
48 Echo.getEventListener().onNewSoundSensor(
this);
175 if(edt == null || !(edt.length == 1))
return false;
234 if(edt == null || !(edt.length == 1))
return false;
309 if(edt == null || !(edt.length == 2))
return false;
315 boolean success = super.setProperty(property);
316 if(success)
return success;
318 switch(property.
epc) {
321 default :
return false;
327 byte[] edt = super.getProperty(epc);
328 if(edt != null)
return edt;
334 default :
return null;
340 boolean valid = super.isValidProperty(property);
341 if(valid)
return valid;
343 switch(property.
epc) {
347 default :
return false;
357 public Setter
set(
boolean responseRequired) {
359 ,
getNode().getAddressStr(), responseRequired);
363 public Getter
get() {
374 protected Informer
inform(
boolean multicast) {
379 address =
getNode().getAddressStr();
385 public static class Receiver
extends DeviceObject.Receiver {
388 protected boolean onSetProperty(
EchoObject eoj,
short tid, byte esv,
390 boolean ret = super.onSetProperty(eoj, tid, esv, property, success);
393 switch(property.epc) {
395 onSetDetectionThresholdLevel(eoj, tid, esv, property, success);
398 onSetSoundDetectionHoldingTime(eoj, tid, esv, property, success);
406 protected boolean onGetProperty(
EchoObject eoj,
short tid, byte esv,
408 boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
411 switch(property.epc) {
413 onGetDetectionThresholdLevel(eoj, tid, esv, property, success);
416 onGetSoundDetectionStatus(eoj, tid, esv, property, success);
419 onGetSoundDetectionHoldingTime(eoj, tid, esv, property, success);
448 protected void onSetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
471 protected void onGetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
499 protected void onGetSoundDetectionStatus(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
523 protected void onSetSoundDetectionHoldingTime(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
547 protected void onGetSoundDetectionHoldingTime(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
550 public static class Setter
extends DeviceObject.Setter {
551 public Setter(
short dstEchoClassCode, byte dstEchoInstanceCode
552 , String dstEchoAddress,
boolean responseRequired) {
553 super(dstEchoClassCode, dstEchoInstanceCode
554 , dstEchoAddress, responseRequired);
558 public Setter reqSetProperty(byte epc, byte[] edt) {
559 return (Setter)super.reqSetProperty(epc, edt);
563 public Setter reqSetOperationStatus(byte[] edt) {
564 return (Setter)super.reqSetOperationStatus(edt);
567 public Setter reqSetInstallationLocation(byte[] edt) {
568 return (Setter)super.reqSetInstallationLocation(edt);
571 public Setter reqSetCurrentLimitSetting(byte[] edt) {
572 return (Setter)super.reqSetCurrentLimitSetting(edt);
575 public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
576 return (Setter)super.reqSetPowerSavingOperationSetting(edt);
579 public Setter reqSetRemoteControlSetting(byte[] edt) {
580 return (Setter)super.reqSetRemoteControlSetting(edt);
583 public Setter reqSetCurrentTimeSetting(byte[] edt) {
584 return (Setter)super.reqSetCurrentTimeSetting(edt);
587 public Setter reqSetCurrentDateSetting(byte[] edt) {
588 return (Setter)super.reqSetCurrentDateSetting(edt);
591 public Setter reqSetPowerLimitSetting(byte[] edt) {
592 return (Setter)super.reqSetPowerLimitSetting(edt);
617 public Setter reqSetDetectionThresholdLevel(byte[] edt) {
644 public Setter reqSetSoundDetectionHoldingTime(byte[] edt) {
650 public static class Getter
extends DeviceObject.Getter {
651 public Getter(
short dstEchoClassCode, byte dstEchoInstanceCode
652 , String dstEchoAddress) {
653 super(dstEchoClassCode, dstEchoInstanceCode
658 public Getter reqGetProperty(byte epc) {
659 return (Getter)super.reqGetProperty(epc);
663 public Getter reqGetOperationStatus() {
664 return (Getter)super.reqGetOperationStatus();
667 public Getter reqGetInstallationLocation() {
668 return (Getter)super.reqGetInstallationLocation();
671 public Getter reqGetStandardVersionInformation() {
672 return (Getter)super.reqGetStandardVersionInformation();
675 public Getter reqGetIdentificationNumber() {
676 return (Getter)super.reqGetIdentificationNumber();
679 public Getter reqGetMeasuredInstantaneousPowerConsumption() {
680 return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
683 public Getter reqGetMeasuredCumulativePowerConsumption() {
684 return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
687 public Getter reqGetManufacturersFaultCode() {
688 return (Getter)super.reqGetManufacturersFaultCode();
691 public Getter reqGetCurrentLimitSetting() {
692 return (Getter)super.reqGetCurrentLimitSetting();
695 public Getter reqGetFaultStatus() {
696 return (Getter)super.reqGetFaultStatus();
699 public Getter reqGetFaultDescription() {
700 return (Getter)super.reqGetFaultDescription();
703 public Getter reqGetManufacturerCode() {
704 return (Getter)super.reqGetManufacturerCode();
707 public Getter reqGetBusinessFacilityCode() {
708 return (Getter)super.reqGetBusinessFacilityCode();
711 public Getter reqGetProductCode() {
712 return (Getter)super.reqGetProductCode();
715 public Getter reqGetProductionNumber() {
716 return (Getter)super.reqGetProductionNumber();
719 public Getter reqGetProductionDate() {
720 return (Getter)super.reqGetProductionDate();
723 public Getter reqGetPowerSavingOperationSetting() {
724 return (Getter)super.reqGetPowerSavingOperationSetting();
727 public Getter reqGetRemoteControlSetting() {
728 return (Getter)super.reqGetRemoteControlSetting();
731 public Getter reqGetCurrentTimeSetting() {
732 return (Getter)super.reqGetCurrentTimeSetting();
735 public Getter reqGetCurrentDateSetting() {
736 return (Getter)super.reqGetCurrentDateSetting();
739 public Getter reqGetPowerLimitSetting() {
740 return (Getter)super.reqGetPowerLimitSetting();
743 public Getter reqGetCumulativeOperatingTime() {
744 return (Getter)super.reqGetCumulativeOperatingTime();
747 public Getter reqGetStatusChangeAnnouncementPropertyMap() {
748 return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
751 public Getter reqGetSetPropertyMap() {
752 return (Getter)super.reqGetSetPropertyMap();
755 public Getter reqGetGetPropertyMap() {
756 return (Getter)super.reqGetGetPropertyMap();
781 public Getter reqGetDetectionThresholdLevel() {
812 public Getter reqGetSoundDetectionStatus() {
839 public Getter reqGetSoundDetectionHoldingTime() {
845 public static class Informer
extends DeviceObject.Informer {
846 public Informer(
short echoClassCode, byte echoInstanceCode
848 super(echoClassCode, echoInstanceCode
849 , dstEchoAddress, isSelfObject);
853 public Informer reqInformProperty(byte epc) {
854 return (Informer)super.reqInformProperty(epc);
857 public Informer reqInformOperationStatus() {
858 return (Informer)super.reqInformOperationStatus();
861 public Informer reqInformInstallationLocation() {
862 return (Informer)super.reqInformInstallationLocation();
865 public Informer reqInformStandardVersionInformation() {
866 return (Informer)super.reqInformStandardVersionInformation();
869 public Informer reqInformIdentificationNumber() {
870 return (Informer)super.reqInformIdentificationNumber();
873 public Informer reqInformMeasuredInstantaneousPowerConsumption() {
874 return (Informer)super.reqInformMeasuredInstantaneousPowerConsumption();
877 public Informer reqInformMeasuredCumulativePowerConsumption() {
878 return (Informer)super.reqInformMeasuredCumulativePowerConsumption();
881 public Informer reqInformManufacturersFaultCode() {
882 return (Informer)super.reqInformManufacturersFaultCode();
885 public Informer reqInformCurrentLimitSetting() {
886 return (Informer)super.reqInformCurrentLimitSetting();
889 public Informer reqInformFaultStatus() {
890 return (Informer)super.reqInformFaultStatus();
893 public Informer reqInformFaultDescription() {
894 return (Informer)super.reqInformFaultDescription();
897 public Informer reqInformManufacturerCode() {
898 return (Informer)super.reqInformManufacturerCode();
901 public Informer reqInformBusinessFacilityCode() {
902 return (Informer)super.reqInformBusinessFacilityCode();
905 public Informer reqInformProductCode() {
906 return (Informer)super.reqInformProductCode();
909 public Informer reqInformProductionNumber() {
910 return (Informer)super.reqInformProductionNumber();
913 public Informer reqInformProductionDate() {
914 return (Informer)super.reqInformProductionDate();
917 public Informer reqInformPowerSavingOperationSetting() {
918 return (Informer)super.reqInformPowerSavingOperationSetting();
921 public Informer reqInformRemoteControlSetting() {
922 return (Informer)super.reqInformRemoteControlSetting();
925 public Informer reqInformCurrentTimeSetting() {
926 return (Informer)super.reqInformCurrentTimeSetting();
929 public Informer reqInformCurrentDateSetting() {
930 return (Informer)super.reqInformCurrentDateSetting();
933 public Informer reqInformPowerLimitSetting() {
934 return (Informer)super.reqInformPowerLimitSetting();
937 public Informer reqInformCumulativeOperatingTime() {
938 return (Informer)super.reqInformCumulativeOperatingTime();
941 public Informer reqInformStatusChangeAnnouncementPropertyMap() {
942 return (Informer)super.reqInformStatusChangeAnnouncementPropertyMap();
945 public Informer reqInformSetPropertyMap() {
946 return (Informer)super.reqInformSetPropertyMap();
949 public Informer reqInformGetPropertyMap() {
950 return (Informer)super.reqInformGetPropertyMap();
975 public Informer reqInformDetectionThresholdLevel() {
1006 public Informer reqInformSoundDetectionStatus() {
1033 public Informer reqInformSoundDetectionHoldingTime() {
1039 public static class Proxy
extends SoundSensor {
1040 public Proxy(byte instanceCode) {
1065 return setG((byte)0);
1068 public static Setter
setG(byte instanceCode) {
1069 return setG(instanceCode,
true);
1072 public static Setter
setG(
boolean responseRequired) {
1073 return setG((byte)0, responseRequired);
1076 public static Setter
setG(byte instanceCode,
boolean responseRequired) {
1082 return getG((byte)0);
1085 public static Getter
getG(byte instanceCode) {
1094 public static Informer
informG(byte instanceCode) {
static final short ECHO_CLASS_CODE
static Setter setG(byte instanceCode)
abstract byte[] getOperationStatus()
static final byte EPC_SOUND_DETECTION_STATUS
static Setter setG(byte instanceCode, boolean responseRequired)
byte[] getSoundDetectionHoldingTime()
static Getter getG(byte instanceCode)
boolean isValidSoundDetectionHoldingTime(byte[] edt)
final void removeSetProperty(byte epc)
final void addStatusChangeAnnouncementProperty(byte epc)
abstract byte[] getInstallationLocation()
final void addGetProperty(byte epc)
byte[] getDetectionThresholdLevel()
boolean setDetectionThresholdLevel(byte[] edt)
abstract byte[] getFaultStatus()
boolean isValidSoundDetectionStatus(byte[] edt)
boolean isValidDetectionThresholdLevel(byte[] edt)
Informer inform(boolean multicast)
abstract byte[] getManufacturerCode()
static Setter setG(boolean responseRequired)
synchronized boolean isValidProperty(EchoProperty property)
Setter set(boolean responseRequired)
static final byte EPC_SOUND_DETECTION_HOLDING_TIME
synchronized boolean setProperty(EchoProperty property)
synchronized byte[] getProperty(byte epc)
abstract byte[] getSoundDetectionStatus()
static Informer informG()
static final byte EPC_DETECTION_THRESHOLD_LEVEL
boolean setSoundDetectionHoldingTime(byte[] edt)
static final byte EPC_OPERATION_STATUS
byte[] getStandardVersionInformation()
abstract boolean setInstallationLocation(byte[] edt)
static final String MULTICAST_ADDRESS
static Informer informG(byte instanceCode)
final boolean isSelfObject()
boolean setOperationStatus(byte[] edt)