16 package com.sonycsl.echo.eoj.device.sensor;
35 super.setupPropertyMaps();
47 Echo.getEventListener().onNewHumanDetectionSensor(
this);
174 if(edt == null || !(edt.length == 1))
return false;
227 if(edt == null || !(edt.length == 1))
return false;
233 boolean success = super.setProperty(property);
234 if(success)
return success;
236 switch(property.
epc) {
238 default :
return false;
244 byte[] edt = super.getProperty(epc);
245 if(edt != null)
return edt;
250 default :
return null;
256 boolean valid = super.isValidProperty(property);
257 if(valid)
return valid;
259 switch(property.
epc) {
262 default :
return false;
272 public Setter
set(
boolean responseRequired) {
274 ,
getNode().getAddressStr(), responseRequired);
278 public Getter
get() {
289 protected Informer
inform(
boolean multicast) {
294 address =
getNode().getAddressStr();
300 public static class Receiver
extends DeviceObject.Receiver {
303 protected boolean onSetProperty(
EchoObject eoj,
short tid, byte esv,
305 boolean ret = super.onSetProperty(eoj, tid, esv, property, success);
308 switch(property.epc) {
310 onSetDetectionThresholdLevel(eoj, tid, esv, property, success);
318 protected boolean onGetProperty(
EchoObject eoj,
short tid, byte esv,
320 boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
323 switch(property.epc) {
325 onGetDetectionThresholdLevel(eoj, tid, esv, property, success);
328 onGetHumanDetectionStatus(eoj, tid, esv, property, success);
357 protected void onSetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
380 protected void onGetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
405 protected void onGetHumanDetectionStatus(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
408 public static class Setter
extends DeviceObject.Setter {
409 public Setter(
short dstEchoClassCode, byte dstEchoInstanceCode
410 , String dstEchoAddress,
boolean responseRequired) {
411 super(dstEchoClassCode, dstEchoInstanceCode
412 , dstEchoAddress, responseRequired);
416 public Setter reqSetProperty(byte epc, byte[] edt) {
417 return (Setter)super.reqSetProperty(epc, edt);
421 public Setter reqSetOperationStatus(byte[] edt) {
422 return (Setter)super.reqSetOperationStatus(edt);
425 public Setter reqSetInstallationLocation(byte[] edt) {
426 return (Setter)super.reqSetInstallationLocation(edt);
429 public Setter reqSetCurrentLimitSetting(byte[] edt) {
430 return (Setter)super.reqSetCurrentLimitSetting(edt);
433 public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
434 return (Setter)super.reqSetPowerSavingOperationSetting(edt);
437 public Setter reqSetRemoteControlSetting(byte[] edt) {
438 return (Setter)super.reqSetRemoteControlSetting(edt);
441 public Setter reqSetCurrentTimeSetting(byte[] edt) {
442 return (Setter)super.reqSetCurrentTimeSetting(edt);
445 public Setter reqSetCurrentDateSetting(byte[] edt) {
446 return (Setter)super.reqSetCurrentDateSetting(edt);
449 public Setter reqSetPowerLimitSetting(byte[] edt) {
450 return (Setter)super.reqSetPowerLimitSetting(edt);
475 public Setter reqSetDetectionThresholdLevel(byte[] edt) {
481 public static class Getter
extends DeviceObject.Getter {
482 public Getter(
short dstEchoClassCode, byte dstEchoInstanceCode
483 , String dstEchoAddress) {
484 super(dstEchoClassCode, dstEchoInstanceCode
489 public Getter reqGetProperty(byte epc) {
490 return (Getter)super.reqGetProperty(epc);
494 public Getter reqGetOperationStatus() {
495 return (Getter)super.reqGetOperationStatus();
498 public Getter reqGetInstallationLocation() {
499 return (Getter)super.reqGetInstallationLocation();
502 public Getter reqGetStandardVersionInformation() {
503 return (Getter)super.reqGetStandardVersionInformation();
506 public Getter reqGetIdentificationNumber() {
507 return (Getter)super.reqGetIdentificationNumber();
510 public Getter reqGetMeasuredInstantaneousPowerConsumption() {
511 return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
514 public Getter reqGetMeasuredCumulativePowerConsumption() {
515 return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
518 public Getter reqGetManufacturersFaultCode() {
519 return (Getter)super.reqGetManufacturersFaultCode();
522 public Getter reqGetCurrentLimitSetting() {
523 return (Getter)super.reqGetCurrentLimitSetting();
526 public Getter reqGetFaultStatus() {
527 return (Getter)super.reqGetFaultStatus();
530 public Getter reqGetFaultDescription() {
531 return (Getter)super.reqGetFaultDescription();
534 public Getter reqGetManufacturerCode() {
535 return (Getter)super.reqGetManufacturerCode();
538 public Getter reqGetBusinessFacilityCode() {
539 return (Getter)super.reqGetBusinessFacilityCode();
542 public Getter reqGetProductCode() {
543 return (Getter)super.reqGetProductCode();
546 public Getter reqGetProductionNumber() {
547 return (Getter)super.reqGetProductionNumber();
550 public Getter reqGetProductionDate() {
551 return (Getter)super.reqGetProductionDate();
554 public Getter reqGetPowerSavingOperationSetting() {
555 return (Getter)super.reqGetPowerSavingOperationSetting();
558 public Getter reqGetRemoteControlSetting() {
559 return (Getter)super.reqGetRemoteControlSetting();
562 public Getter reqGetCurrentTimeSetting() {
563 return (Getter)super.reqGetCurrentTimeSetting();
566 public Getter reqGetCurrentDateSetting() {
567 return (Getter)super.reqGetCurrentDateSetting();
570 public Getter reqGetPowerLimitSetting() {
571 return (Getter)super.reqGetPowerLimitSetting();
574 public Getter reqGetCumulativeOperatingTime() {
575 return (Getter)super.reqGetCumulativeOperatingTime();
578 public Getter reqGetStatusChangeAnnouncementPropertyMap() {
579 return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
582 public Getter reqGetSetPropertyMap() {
583 return (Getter)super.reqGetSetPropertyMap();
586 public Getter reqGetGetPropertyMap() {
587 return (Getter)super.reqGetGetPropertyMap();
612 public Getter reqGetDetectionThresholdLevel() {
640 public Getter reqGetHumanDetectionStatus() {
646 public static class Informer
extends DeviceObject.Informer {
647 public Informer(
short echoClassCode, byte echoInstanceCode
649 super(echoClassCode, echoInstanceCode
650 , dstEchoAddress, isSelfObject);
654 public Informer reqInformProperty(byte epc) {
655 return (Informer)super.reqInformProperty(epc);
658 public Informer reqInformOperationStatus() {
659 return (Informer)super.reqInformOperationStatus();
662 public Informer reqInformInstallationLocation() {
663 return (Informer)super.reqInformInstallationLocation();
666 public Informer reqInformStandardVersionInformation() {
667 return (Informer)super.reqInformStandardVersionInformation();
670 public Informer reqInformIdentificationNumber() {
671 return (Informer)super.reqInformIdentificationNumber();
674 public Informer reqInformMeasuredInstantaneousPowerConsumption() {
675 return (Informer)super.reqInformMeasuredInstantaneousPowerConsumption();
678 public Informer reqInformMeasuredCumulativePowerConsumption() {
679 return (Informer)super.reqInformMeasuredCumulativePowerConsumption();
682 public Informer reqInformManufacturersFaultCode() {
683 return (Informer)super.reqInformManufacturersFaultCode();
686 public Informer reqInformCurrentLimitSetting() {
687 return (Informer)super.reqInformCurrentLimitSetting();
690 public Informer reqInformFaultStatus() {
691 return (Informer)super.reqInformFaultStatus();
694 public Informer reqInformFaultDescription() {
695 return (Informer)super.reqInformFaultDescription();
698 public Informer reqInformManufacturerCode() {
699 return (Informer)super.reqInformManufacturerCode();
702 public Informer reqInformBusinessFacilityCode() {
703 return (Informer)super.reqInformBusinessFacilityCode();
706 public Informer reqInformProductCode() {
707 return (Informer)super.reqInformProductCode();
710 public Informer reqInformProductionNumber() {
711 return (Informer)super.reqInformProductionNumber();
714 public Informer reqInformProductionDate() {
715 return (Informer)super.reqInformProductionDate();
718 public Informer reqInformPowerSavingOperationSetting() {
719 return (Informer)super.reqInformPowerSavingOperationSetting();
722 public Informer reqInformRemoteControlSetting() {
723 return (Informer)super.reqInformRemoteControlSetting();
726 public Informer reqInformCurrentTimeSetting() {
727 return (Informer)super.reqInformCurrentTimeSetting();
730 public Informer reqInformCurrentDateSetting() {
731 return (Informer)super.reqInformCurrentDateSetting();
734 public Informer reqInformPowerLimitSetting() {
735 return (Informer)super.reqInformPowerLimitSetting();
738 public Informer reqInformCumulativeOperatingTime() {
739 return (Informer)super.reqInformCumulativeOperatingTime();
742 public Informer reqInformStatusChangeAnnouncementPropertyMap() {
743 return (Informer)super.reqInformStatusChangeAnnouncementPropertyMap();
746 public Informer reqInformSetPropertyMap() {
747 return (Informer)super.reqInformSetPropertyMap();
750 public Informer reqInformGetPropertyMap() {
751 return (Informer)super.reqInformGetPropertyMap();
776 public Informer reqInformDetectionThresholdLevel() {
804 public Informer reqInformHumanDetectionStatus() {
810 public static class Proxy
extends HumanDetectionSensor {
811 public Proxy(byte instanceCode) {
836 return setG((byte)0);
839 public static Setter
setG(byte instanceCode) {
840 return setG(instanceCode,
true);
843 public static Setter
setG(
boolean responseRequired) {
844 return setG((byte)0, responseRequired);
847 public static Setter
setG(byte instanceCode,
boolean responseRequired) {
853 return getG((byte)0);
856 public static Getter
getG(byte instanceCode) {
865 public static Informer
informG(byte instanceCode) {
static Informer informG()
boolean isValidDetectionThresholdLevel(byte[] edt)
byte[] getDetectionThresholdLevel()
final void removeSetProperty(byte epc)
final void addStatusChangeAnnouncementProperty(byte epc)
abstract byte[] getInstallationLocation()
static Setter setG(byte instanceCode)
final void addGetProperty(byte epc)
static Informer informG(byte instanceCode)
Informer inform(boolean multicast)
abstract byte[] getFaultStatus()
synchronized boolean setProperty(EchoProperty property)
synchronized boolean isValidProperty(EchoProperty property)
boolean isValidHumanDetectionStatus(byte[] edt)
synchronized byte[] getProperty(byte epc)
abstract byte[] getHumanDetectionStatus()
abstract byte[] getManufacturerCode()
static Getter getG(byte instanceCode)
static Setter setG(byte instanceCode, boolean responseRequired)
static final short ECHO_CLASS_CODE
boolean setDetectionThresholdLevel(byte[] edt)
static Setter setG(boolean responseRequired)
static final byte EPC_OPERATION_STATUS
byte[] getStandardVersionInformation()
static final byte EPC_DETECTION_THRESHOLD_LEVEL
Setter set(boolean responseRequired)
abstract boolean setInstallationLocation(byte[] edt)
static final String MULTICAST_ADDRESS
abstract byte[] getOperationStatus()
static final byte EPC_HUMAN_DETECTION_STATUS
boolean setOperationStatus(byte[] edt)
final boolean isSelfObject()