16 package com.sonycsl.echo.eoj.device.sensor;
36 super.setupPropertyMaps();
48 Echo.getEventListener().onNewVOCSensor(
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 == 2))
return false;
285 boolean success = super.setProperty(property);
286 if(success)
return success;
288 switch(property.
epc) {
290 default :
return false;
296 byte[] edt = super.getProperty(epc);
297 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);
372 protected boolean onGetProperty(
EchoObject eoj,
short tid, byte esv,
374 boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
377 switch(property.epc) {
379 onGetDetectionThresholdLevel(eoj, tid, esv, property, success);
382 onGetVocDetectionStatus(eoj, tid, esv, property, success);
385 onGetMeasuredValueOfVocConcentration(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 onGetVocDetectionStatus(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
486 protected void onGetMeasuredValueOfVocConcentration(
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) {
562 public static class Getter
extends DeviceObject.Getter {
563 public Getter(
short dstEchoClassCode, byte dstEchoInstanceCode
564 , String dstEchoAddress) {
565 super(dstEchoClassCode, dstEchoInstanceCode
570 public Getter reqGetProperty(byte epc) {
571 return (Getter)super.reqGetProperty(epc);
575 public Getter reqGetOperationStatus() {
576 return (Getter)super.reqGetOperationStatus();
579 public Getter reqGetInstallationLocation() {
580 return (Getter)super.reqGetInstallationLocation();
583 public Getter reqGetStandardVersionInformation() {
584 return (Getter)super.reqGetStandardVersionInformation();
587 public Getter reqGetIdentificationNumber() {
588 return (Getter)super.reqGetIdentificationNumber();
591 public Getter reqGetMeasuredInstantaneousPowerConsumption() {
592 return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
595 public Getter reqGetMeasuredCumulativePowerConsumption() {
596 return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
599 public Getter reqGetManufacturersFaultCode() {
600 return (Getter)super.reqGetManufacturersFaultCode();
603 public Getter reqGetCurrentLimitSetting() {
604 return (Getter)super.reqGetCurrentLimitSetting();
607 public Getter reqGetFaultStatus() {
608 return (Getter)super.reqGetFaultStatus();
611 public Getter reqGetFaultDescription() {
612 return (Getter)super.reqGetFaultDescription();
615 public Getter reqGetManufacturerCode() {
616 return (Getter)super.reqGetManufacturerCode();
619 public Getter reqGetBusinessFacilityCode() {
620 return (Getter)super.reqGetBusinessFacilityCode();
623 public Getter reqGetProductCode() {
624 return (Getter)super.reqGetProductCode();
627 public Getter reqGetProductionNumber() {
628 return (Getter)super.reqGetProductionNumber();
631 public Getter reqGetProductionDate() {
632 return (Getter)super.reqGetProductionDate();
635 public Getter reqGetPowerSavingOperationSetting() {
636 return (Getter)super.reqGetPowerSavingOperationSetting();
639 public Getter reqGetRemoteControlSetting() {
640 return (Getter)super.reqGetRemoteControlSetting();
643 public Getter reqGetCurrentTimeSetting() {
644 return (Getter)super.reqGetCurrentTimeSetting();
647 public Getter reqGetCurrentDateSetting() {
648 return (Getter)super.reqGetCurrentDateSetting();
651 public Getter reqGetPowerLimitSetting() {
652 return (Getter)super.reqGetPowerLimitSetting();
655 public Getter reqGetCumulativeOperatingTime() {
656 return (Getter)super.reqGetCumulativeOperatingTime();
659 public Getter reqGetStatusChangeAnnouncementPropertyMap() {
660 return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
663 public Getter reqGetSetPropertyMap() {
664 return (Getter)super.reqGetSetPropertyMap();
667 public Getter reqGetGetPropertyMap() {
668 return (Getter)super.reqGetGetPropertyMap();
693 public Getter reqGetDetectionThresholdLevel() {
722 public Getter reqGetVocDetectionStatus() {
748 public Getter reqGetMeasuredValueOfVocConcentration() {
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 reqInformVocDetectionStatus() {
939 public Informer reqInformMeasuredValueOfVocConcentration() {
945 public static class Proxy
extends VOCSensor {
946 public Proxy(byte instanceCode) {
971 return setG((byte)0);
974 public static Setter
setG(byte instanceCode) {
975 return setG(instanceCode,
true);
978 public static Setter
setG(
boolean responseRequired) {
979 return setG((byte)0, responseRequired);
982 public static Setter
setG(byte instanceCode,
boolean responseRequired) {
988 return getG((byte)0);
991 public static Getter
getG(byte instanceCode) {
1000 public static Informer
informG(byte instanceCode) {
boolean setDetectionThresholdLevel(byte[] edt)
synchronized boolean setProperty(EchoProperty property)
static Setter setG(boolean responseRequired)
Informer inform(boolean multicast)
synchronized byte[] getProperty(byte epc)
static final byte EPC_VOC_DETECTION_STATUS
final void removeSetProperty(byte epc)
static Setter setG(byte instanceCode)
final void addStatusChangeAnnouncementProperty(byte epc)
abstract byte[] getInstallationLocation()
final void addGetProperty(byte epc)
abstract byte[] getOperationStatus()
byte[] getVocDetectionStatus()
static Informer informG()
static Setter setG(byte instanceCode, boolean responseRequired)
synchronized boolean isValidProperty(EchoProperty property)
abstract byte[] getFaultStatus()
boolean isValidDetectionThresholdLevel(byte[] edt)
abstract byte[] getManufacturerCode()
static Getter getG(byte instanceCode)
Setter set(boolean responseRequired)
boolean isValidVocDetectionStatus(byte[] edt)
abstract byte[] getMeasuredValueOfVocConcentration()
byte[] getDetectionThresholdLevel()
static final short ECHO_CLASS_CODE
boolean isValidMeasuredValueOfVocConcentration(byte[] edt)
static final byte EPC_MEASURED_VALUE_OF_VOC_CONCENTRATION
static final byte EPC_OPERATION_STATUS
byte[] getStandardVersionInformation()
boolean setOperationStatus(byte[] edt)
static Informer informG(byte instanceCode)
abstract boolean setInstallationLocation(byte[] edt)
static final String MULTICAST_ADDRESS
static final byte EPC_DETECTION_THRESHOLD_LEVEL
final boolean isSelfObject()