16 package com.sonycsl.echo.eoj.device.sensor;
37 super.setupPropertyMaps();
49 Echo.getEventListener().onNewHumanBodyLocationSensor(
this);
159 if(edt == null || !(edt.length == 3))
return false;
208 if(edt == null || !(edt.length == 2))
return false;
257 if(edt == null || !(edt.length == 3))
return false;
308 if(edt == null || !(edt.length == 16))
return false;
314 boolean success = super.setProperty(property);
315 if(success)
return success;
317 switch(property.
epc) {
318 default :
return false;
324 byte[] edt = super.getProperty(epc);
325 if(edt != null)
return edt;
332 default :
return null;
338 boolean valid = super.isValidProperty(property);
339 if(valid)
return valid;
341 switch(property.
epc) {
346 default :
return false;
356 public Setter
set(
boolean responseRequired) {
358 ,
getNode().getAddressStr(), responseRequired);
362 public Getter
get() {
373 protected Informer
inform(
boolean multicast) {
378 address =
getNode().getAddressStr();
384 public static class Receiver
extends DeviceObject.Receiver {
387 protected boolean onSetProperty(
EchoObject eoj,
short tid, byte esv,
389 boolean ret = super.onSetProperty(eoj, tid, esv, property, success);
392 switch(property.epc) {
399 protected boolean onGetProperty(
EchoObject eoj,
short tid, byte esv,
401 boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
404 switch(property.epc) {
406 onGetHumanBodyDetectionLocation1(eoj, tid, esv, property, success);
409 onGetMaximumNumberOfHumanBodyIdS(eoj, tid, esv, property, success);
412 onGetHumanBodyDetectionLocation2(eoj, tid, esv, property, success);
415 onGetHumanBodyExistenceInformation(eoj, tid, esv, property, success);
447 protected void onGetHumanBodyDetectionLocation1(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
470 protected void onGetMaximumNumberOfHumanBodyIdS(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
493 protected void onGetHumanBodyDetectionLocation2(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
517 protected void onGetHumanBodyExistenceInformation(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
520 public static class Setter
extends DeviceObject.Setter {
521 public Setter(
short dstEchoClassCode, byte dstEchoInstanceCode
522 , String dstEchoAddress,
boolean responseRequired) {
523 super(dstEchoClassCode, dstEchoInstanceCode
524 , dstEchoAddress, responseRequired);
528 public Setter reqSetProperty(byte epc, byte[] edt) {
529 return (Setter)super.reqSetProperty(epc, edt);
533 public Setter reqSetOperationStatus(byte[] edt) {
534 return (Setter)super.reqSetOperationStatus(edt);
537 public Setter reqSetInstallationLocation(byte[] edt) {
538 return (Setter)super.reqSetInstallationLocation(edt);
541 public Setter reqSetCurrentLimitSetting(byte[] edt) {
542 return (Setter)super.reqSetCurrentLimitSetting(edt);
545 public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
546 return (Setter)super.reqSetPowerSavingOperationSetting(edt);
549 public Setter reqSetRemoteControlSetting(byte[] edt) {
550 return (Setter)super.reqSetRemoteControlSetting(edt);
553 public Setter reqSetCurrentTimeSetting(byte[] edt) {
554 return (Setter)super.reqSetCurrentTimeSetting(edt);
557 public Setter reqSetCurrentDateSetting(byte[] edt) {
558 return (Setter)super.reqSetCurrentDateSetting(edt);
561 public Setter reqSetPowerLimitSetting(byte[] edt) {
562 return (Setter)super.reqSetPowerLimitSetting(edt);
567 public static class Getter
extends DeviceObject.Getter {
568 public Getter(
short dstEchoClassCode, byte dstEchoInstanceCode
569 , String dstEchoAddress) {
570 super(dstEchoClassCode, dstEchoInstanceCode
575 public Getter reqGetProperty(byte epc) {
576 return (Getter)super.reqGetProperty(epc);
580 public Getter reqGetOperationStatus() {
581 return (Getter)super.reqGetOperationStatus();
584 public Getter reqGetInstallationLocation() {
585 return (Getter)super.reqGetInstallationLocation();
588 public Getter reqGetStandardVersionInformation() {
589 return (Getter)super.reqGetStandardVersionInformation();
592 public Getter reqGetIdentificationNumber() {
593 return (Getter)super.reqGetIdentificationNumber();
596 public Getter reqGetMeasuredInstantaneousPowerConsumption() {
597 return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
600 public Getter reqGetMeasuredCumulativePowerConsumption() {
601 return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
604 public Getter reqGetManufacturersFaultCode() {
605 return (Getter)super.reqGetManufacturersFaultCode();
608 public Getter reqGetCurrentLimitSetting() {
609 return (Getter)super.reqGetCurrentLimitSetting();
612 public Getter reqGetFaultStatus() {
613 return (Getter)super.reqGetFaultStatus();
616 public Getter reqGetFaultDescription() {
617 return (Getter)super.reqGetFaultDescription();
620 public Getter reqGetManufacturerCode() {
621 return (Getter)super.reqGetManufacturerCode();
624 public Getter reqGetBusinessFacilityCode() {
625 return (Getter)super.reqGetBusinessFacilityCode();
628 public Getter reqGetProductCode() {
629 return (Getter)super.reqGetProductCode();
632 public Getter reqGetProductionNumber() {
633 return (Getter)super.reqGetProductionNumber();
636 public Getter reqGetProductionDate() {
637 return (Getter)super.reqGetProductionDate();
640 public Getter reqGetPowerSavingOperationSetting() {
641 return (Getter)super.reqGetPowerSavingOperationSetting();
644 public Getter reqGetRemoteControlSetting() {
645 return (Getter)super.reqGetRemoteControlSetting();
648 public Getter reqGetCurrentTimeSetting() {
649 return (Getter)super.reqGetCurrentTimeSetting();
652 public Getter reqGetCurrentDateSetting() {
653 return (Getter)super.reqGetCurrentDateSetting();
656 public Getter reqGetPowerLimitSetting() {
657 return (Getter)super.reqGetPowerLimitSetting();
660 public Getter reqGetCumulativeOperatingTime() {
661 return (Getter)super.reqGetCumulativeOperatingTime();
664 public Getter reqGetStatusChangeAnnouncementPropertyMap() {
665 return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
668 public Getter reqGetSetPropertyMap() {
669 return (Getter)super.reqGetSetPropertyMap();
672 public Getter reqGetGetPropertyMap() {
673 return (Getter)super.reqGetGetPropertyMap();
701 public Getter reqGetHumanBodyDetectionLocation1() {
727 public Getter reqGetMaximumNumberOfHumanBodyIdS() {
753 public Getter reqGetHumanBodyDetectionLocation2() {
780 public Getter reqGetHumanBodyExistenceInformation() {
786 public static class Informer
extends DeviceObject.Informer {
787 public Informer(
short echoClassCode, byte echoInstanceCode
789 super(echoClassCode, echoInstanceCode
790 , dstEchoAddress, isSelfObject);
794 public Informer reqInformProperty(byte epc) {
795 return (Informer)super.reqInformProperty(epc);
798 public Informer reqInformOperationStatus() {
799 return (Informer)super.reqInformOperationStatus();
802 public Informer reqInformInstallationLocation() {
803 return (Informer)super.reqInformInstallationLocation();
806 public Informer reqInformStandardVersionInformation() {
807 return (Informer)super.reqInformStandardVersionInformation();
810 public Informer reqInformIdentificationNumber() {
811 return (Informer)super.reqInformIdentificationNumber();
814 public Informer reqInformMeasuredInstantaneousPowerConsumption() {
815 return (Informer)super.reqInformMeasuredInstantaneousPowerConsumption();
818 public Informer reqInformMeasuredCumulativePowerConsumption() {
819 return (Informer)super.reqInformMeasuredCumulativePowerConsumption();
822 public Informer reqInformManufacturersFaultCode() {
823 return (Informer)super.reqInformManufacturersFaultCode();
826 public Informer reqInformCurrentLimitSetting() {
827 return (Informer)super.reqInformCurrentLimitSetting();
830 public Informer reqInformFaultStatus() {
831 return (Informer)super.reqInformFaultStatus();
834 public Informer reqInformFaultDescription() {
835 return (Informer)super.reqInformFaultDescription();
838 public Informer reqInformManufacturerCode() {
839 return (Informer)super.reqInformManufacturerCode();
842 public Informer reqInformBusinessFacilityCode() {
843 return (Informer)super.reqInformBusinessFacilityCode();
846 public Informer reqInformProductCode() {
847 return (Informer)super.reqInformProductCode();
850 public Informer reqInformProductionNumber() {
851 return (Informer)super.reqInformProductionNumber();
854 public Informer reqInformProductionDate() {
855 return (Informer)super.reqInformProductionDate();
858 public Informer reqInformPowerSavingOperationSetting() {
859 return (Informer)super.reqInformPowerSavingOperationSetting();
862 public Informer reqInformRemoteControlSetting() {
863 return (Informer)super.reqInformRemoteControlSetting();
866 public Informer reqInformCurrentTimeSetting() {
867 return (Informer)super.reqInformCurrentTimeSetting();
870 public Informer reqInformCurrentDateSetting() {
871 return (Informer)super.reqInformCurrentDateSetting();
874 public Informer reqInformPowerLimitSetting() {
875 return (Informer)super.reqInformPowerLimitSetting();
878 public Informer reqInformCumulativeOperatingTime() {
879 return (Informer)super.reqInformCumulativeOperatingTime();
882 public Informer reqInformStatusChangeAnnouncementPropertyMap() {
883 return (Informer)super.reqInformStatusChangeAnnouncementPropertyMap();
886 public Informer reqInformSetPropertyMap() {
887 return (Informer)super.reqInformSetPropertyMap();
890 public Informer reqInformGetPropertyMap() {
891 return (Informer)super.reqInformGetPropertyMap();
919 public Informer reqInformHumanBodyDetectionLocation1() {
945 public Informer reqInformMaximumNumberOfHumanBodyIdS() {
971 public Informer reqInformHumanBodyDetectionLocation2() {
998 public Informer reqInformHumanBodyExistenceInformation() {
1004 public static class Proxy
extends HumanBodyLocationSensor {
1005 public Proxy(byte instanceCode) {
1032 return setG((byte)0);
1035 public static Setter
setG(byte instanceCode) {
1036 return setG(instanceCode,
true);
1039 public static Setter
setG(
boolean responseRequired) {
1040 return setG((byte)0, responseRequired);
1043 public static Setter
setG(byte instanceCode,
boolean responseRequired) {
1049 return getG((byte)0);
1052 public static Getter
getG(byte instanceCode) {
1061 public static Informer
informG(byte instanceCode) {
boolean isValidHumanBodyDetectionLocation1(byte[] edt)
static Informer informG(byte instanceCode)
boolean isValidMaximumNumberOfHumanBodyIdS(byte[] edt)
static final byte EPC_HUMAN_BODY_EXISTENCE_INFORMATION
abstract byte[] getHumanBodyDetectionLocation1()
boolean isValidHumanBodyExistenceInformation(byte[] edt)
static final byte EPC_MAXIMUM_NUMBER_OF_HUMAN_BODY_ID_S
boolean setOperationStatus(byte[] edt)
byte[] getHumanBodyExistenceInformation()
final void removeSetProperty(byte epc)
final void addStatusChangeAnnouncementProperty(byte epc)
abstract byte[] getInstallationLocation()
final void addGetProperty(byte epc)
static Setter setG(byte instanceCode, boolean responseRequired)
boolean isValidHumanBodyDetectionLocation2(byte[] edt)
byte[] getMaximumNumberOfHumanBodyIdS()
abstract byte[] getFaultStatus()
static Getter getG(byte instanceCode)
synchronized boolean isValidProperty(EchoProperty property)
Setter set(boolean responseRequired)
abstract byte[] getManufacturerCode()
abstract byte[] getHumanBodyDetectionLocation2()
static Informer informG()
synchronized boolean setProperty(EchoProperty property)
static Setter setG(boolean responseRequired)
static final short ECHO_CLASS_CODE
Informer inform(boolean multicast)
static final byte EPC_OPERATION_STATUS
byte[] getStandardVersionInformation()
abstract boolean setInstallationLocation(byte[] edt)
static final String MULTICAST_ADDRESS
static Setter setG(byte instanceCode)
final boolean isSelfObject()
synchronized byte[] getProperty(byte epc)
abstract byte[] getOperationStatus()
static final byte EPC_HUMAN_BODY_DETECTION_LOCATION1
static final byte EPC_HUMAN_BODY_DETECTION_LOCATION2