16 package com.sonycsl.echo.eoj.device.sensor;
36 super.setupPropertyMaps();
48 Echo.getEventListener().onNewPassageSensor(
this);
175 if(edt == null || !(edt.length == 1))
return false;
247 if(edt == null || !(edt.length == 2))
return false;
304 if(edt == null || !(edt.length == 1))
return false;
310 boolean success = super.setProperty(property);
311 if(success)
return success;
313 switch(property.
epc) {
316 default :
return false;
322 byte[] edt = super.getProperty(epc);
323 if(edt != null)
return edt;
329 default :
return null;
335 boolean valid = super.isValidProperty(property);
336 if(valid)
return valid;
338 switch(property.
epc) {
342 default :
return false;
352 public Setter
set(
boolean responseRequired) {
354 ,
getNode().getAddressStr(), responseRequired);
358 public Getter
get() {
369 protected Informer
inform(
boolean multicast) {
374 address =
getNode().getAddressStr();
380 public static class Receiver
extends DeviceObject.Receiver {
383 protected boolean onSetProperty(
EchoObject eoj,
short tid, byte esv,
385 boolean ret = super.onSetProperty(eoj, tid, esv, property, success);
388 switch(property.epc) {
390 onSetDetectionThresholdLevel(eoj, tid, esv, property, success);
393 onSetPassageDetectionHoldTime(eoj, tid, esv, property, success);
401 protected boolean onGetProperty(
EchoObject eoj,
short tid, byte esv,
403 boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
406 switch(property.epc) {
408 onGetDetectionThresholdLevel(eoj, tid, esv, property, success);
411 onGetPassageDetectionHoldTime(eoj, tid, esv, property, success);
414 onGetPassageDetectionDirection(eoj, tid, esv, property, success);
443 protected void onSetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
466 protected void onGetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
489 protected void onSetPassageDetectionHoldTime(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
512 protected void onGetPassageDetectionHoldTime(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
539 protected void onGetPassageDetectionDirection(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
542 public static class Setter
extends DeviceObject.Setter {
543 public Setter(
short dstEchoClassCode, byte dstEchoInstanceCode
544 , String dstEchoAddress,
boolean responseRequired) {
545 super(dstEchoClassCode, dstEchoInstanceCode
546 , dstEchoAddress, responseRequired);
550 public Setter reqSetProperty(byte epc, byte[] edt) {
551 return (Setter)super.reqSetProperty(epc, edt);
555 public Setter reqSetOperationStatus(byte[] edt) {
556 return (Setter)super.reqSetOperationStatus(edt);
559 public Setter reqSetInstallationLocation(byte[] edt) {
560 return (Setter)super.reqSetInstallationLocation(edt);
563 public Setter reqSetCurrentLimitSetting(byte[] edt) {
564 return (Setter)super.reqSetCurrentLimitSetting(edt);
567 public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
568 return (Setter)super.reqSetPowerSavingOperationSetting(edt);
571 public Setter reqSetRemoteControlSetting(byte[] edt) {
572 return (Setter)super.reqSetRemoteControlSetting(edt);
575 public Setter reqSetCurrentTimeSetting(byte[] edt) {
576 return (Setter)super.reqSetCurrentTimeSetting(edt);
579 public Setter reqSetCurrentDateSetting(byte[] edt) {
580 return (Setter)super.reqSetCurrentDateSetting(edt);
583 public Setter reqSetPowerLimitSetting(byte[] edt) {
584 return (Setter)super.reqSetPowerLimitSetting(edt);
609 public Setter reqSetDetectionThresholdLevel(byte[] edt) {
635 public Setter reqSetPassageDetectionHoldTime(byte[] edt) {
641 public static class Getter
extends DeviceObject.Getter {
642 public Getter(
short dstEchoClassCode, byte dstEchoInstanceCode
643 , String dstEchoAddress) {
644 super(dstEchoClassCode, dstEchoInstanceCode
649 public Getter reqGetProperty(byte epc) {
650 return (Getter)super.reqGetProperty(epc);
654 public Getter reqGetOperationStatus() {
655 return (Getter)super.reqGetOperationStatus();
658 public Getter reqGetInstallationLocation() {
659 return (Getter)super.reqGetInstallationLocation();
662 public Getter reqGetStandardVersionInformation() {
663 return (Getter)super.reqGetStandardVersionInformation();
666 public Getter reqGetIdentificationNumber() {
667 return (Getter)super.reqGetIdentificationNumber();
670 public Getter reqGetMeasuredInstantaneousPowerConsumption() {
671 return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
674 public Getter reqGetMeasuredCumulativePowerConsumption() {
675 return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
678 public Getter reqGetManufacturersFaultCode() {
679 return (Getter)super.reqGetManufacturersFaultCode();
682 public Getter reqGetCurrentLimitSetting() {
683 return (Getter)super.reqGetCurrentLimitSetting();
686 public Getter reqGetFaultStatus() {
687 return (Getter)super.reqGetFaultStatus();
690 public Getter reqGetFaultDescription() {
691 return (Getter)super.reqGetFaultDescription();
694 public Getter reqGetManufacturerCode() {
695 return (Getter)super.reqGetManufacturerCode();
698 public Getter reqGetBusinessFacilityCode() {
699 return (Getter)super.reqGetBusinessFacilityCode();
702 public Getter reqGetProductCode() {
703 return (Getter)super.reqGetProductCode();
706 public Getter reqGetProductionNumber() {
707 return (Getter)super.reqGetProductionNumber();
710 public Getter reqGetProductionDate() {
711 return (Getter)super.reqGetProductionDate();
714 public Getter reqGetPowerSavingOperationSetting() {
715 return (Getter)super.reqGetPowerSavingOperationSetting();
718 public Getter reqGetRemoteControlSetting() {
719 return (Getter)super.reqGetRemoteControlSetting();
722 public Getter reqGetCurrentTimeSetting() {
723 return (Getter)super.reqGetCurrentTimeSetting();
726 public Getter reqGetCurrentDateSetting() {
727 return (Getter)super.reqGetCurrentDateSetting();
730 public Getter reqGetPowerLimitSetting() {
731 return (Getter)super.reqGetPowerLimitSetting();
734 public Getter reqGetCumulativeOperatingTime() {
735 return (Getter)super.reqGetCumulativeOperatingTime();
738 public Getter reqGetStatusChangeAnnouncementPropertyMap() {
739 return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
742 public Getter reqGetSetPropertyMap() {
743 return (Getter)super.reqGetSetPropertyMap();
746 public Getter reqGetGetPropertyMap() {
747 return (Getter)super.reqGetGetPropertyMap();
772 public Getter reqGetDetectionThresholdLevel() {
798 public Getter reqGetPassageDetectionHoldTime() {
828 public Getter reqGetPassageDetectionDirection() {
834 public static class Informer
extends DeviceObject.Informer {
835 public Informer(
short echoClassCode, byte echoInstanceCode
837 super(echoClassCode, echoInstanceCode
838 , dstEchoAddress, isSelfObject);
842 public Informer reqInformProperty(byte epc) {
843 return (Informer)super.reqInformProperty(epc);
846 public Informer reqInformOperationStatus() {
847 return (Informer)super.reqInformOperationStatus();
850 public Informer reqInformInstallationLocation() {
851 return (Informer)super.reqInformInstallationLocation();
854 public Informer reqInformStandardVersionInformation() {
855 return (Informer)super.reqInformStandardVersionInformation();
858 public Informer reqInformIdentificationNumber() {
859 return (Informer)super.reqInformIdentificationNumber();
862 public Informer reqInformMeasuredInstantaneousPowerConsumption() {
863 return (Informer)super.reqInformMeasuredInstantaneousPowerConsumption();
866 public Informer reqInformMeasuredCumulativePowerConsumption() {
867 return (Informer)super.reqInformMeasuredCumulativePowerConsumption();
870 public Informer reqInformManufacturersFaultCode() {
871 return (Informer)super.reqInformManufacturersFaultCode();
874 public Informer reqInformCurrentLimitSetting() {
875 return (Informer)super.reqInformCurrentLimitSetting();
878 public Informer reqInformFaultStatus() {
879 return (Informer)super.reqInformFaultStatus();
882 public Informer reqInformFaultDescription() {
883 return (Informer)super.reqInformFaultDescription();
886 public Informer reqInformManufacturerCode() {
887 return (Informer)super.reqInformManufacturerCode();
890 public Informer reqInformBusinessFacilityCode() {
891 return (Informer)super.reqInformBusinessFacilityCode();
894 public Informer reqInformProductCode() {
895 return (Informer)super.reqInformProductCode();
898 public Informer reqInformProductionNumber() {
899 return (Informer)super.reqInformProductionNumber();
902 public Informer reqInformProductionDate() {
903 return (Informer)super.reqInformProductionDate();
906 public Informer reqInformPowerSavingOperationSetting() {
907 return (Informer)super.reqInformPowerSavingOperationSetting();
910 public Informer reqInformRemoteControlSetting() {
911 return (Informer)super.reqInformRemoteControlSetting();
914 public Informer reqInformCurrentTimeSetting() {
915 return (Informer)super.reqInformCurrentTimeSetting();
918 public Informer reqInformCurrentDateSetting() {
919 return (Informer)super.reqInformCurrentDateSetting();
922 public Informer reqInformPowerLimitSetting() {
923 return (Informer)super.reqInformPowerLimitSetting();
926 public Informer reqInformCumulativeOperatingTime() {
927 return (Informer)super.reqInformCumulativeOperatingTime();
930 public Informer reqInformStatusChangeAnnouncementPropertyMap() {
931 return (Informer)super.reqInformStatusChangeAnnouncementPropertyMap();
934 public Informer reqInformSetPropertyMap() {
935 return (Informer)super.reqInformSetPropertyMap();
938 public Informer reqInformGetPropertyMap() {
939 return (Informer)super.reqInformGetPropertyMap();
964 public Informer reqInformDetectionThresholdLevel() {
990 public Informer reqInformPassageDetectionHoldTime() {
1020 public Informer reqInformPassageDetectionDirection() {
1026 public static class Proxy
extends PassageSensor {
1027 public Proxy(byte instanceCode) {
1052 return setG((byte)0);
1055 public static Setter
setG(byte instanceCode) {
1056 return setG(instanceCode,
true);
1059 public static Setter
setG(
boolean responseRequired) {
1060 return setG((byte)0, responseRequired);
1063 public static Setter
setG(byte instanceCode,
boolean responseRequired) {
1069 return getG((byte)0);
1072 public static Getter
getG(byte instanceCode) {
1081 public static Informer
informG(byte instanceCode) {
byte[] getPassageDetectionHoldTime()
static Setter setG(boolean responseRequired)
boolean setDetectionThresholdLevel(byte[] edt)
static final byte EPC_PASSAGE_DETECTION_DIRECTION
Informer inform(boolean multicast)
final void removeSetProperty(byte epc)
boolean isValidDetectionThresholdLevel(byte[] edt)
static final byte EPC_DETECTION_THRESHOLD_LEVEL
final void addStatusChangeAnnouncementProperty(byte epc)
abstract byte[] getInstallationLocation()
boolean setPassageDetectionHoldTime(byte[] edt)
final void addGetProperty(byte epc)
boolean setOperationStatus(byte[] edt)
static Informer informG()
boolean isValidPassageDetectionHoldTime(byte[] edt)
abstract byte[] getFaultStatus()
Setter set(boolean responseRequired)
boolean isValidPassageDetectionDirection(byte[] edt)
abstract byte[] getManufacturerCode()
abstract byte[] getPassageDetectionDirection()
synchronized boolean isValidProperty(EchoProperty property)
abstract byte[] getOperationStatus()
static Getter getG(byte instanceCode)
static final byte EPC_OPERATION_STATUS
static final byte EPC_PASSAGE_DETECTION_HOLD_TIME
byte[] getStandardVersionInformation()
synchronized boolean setProperty(EchoProperty property)
synchronized byte[] getProperty(byte epc)
abstract boolean setInstallationLocation(byte[] edt)
static final String MULTICAST_ADDRESS
static Setter setG(byte instanceCode)
static final short ECHO_CLASS_CODE
byte[] getDetectionThresholdLevel()
final boolean isSelfObject()
static Informer informG(byte instanceCode)
static Setter setG(byte instanceCode, boolean responseRequired)