16 package com.sonycsl.echo.eoj.device.sensor;
36 super.setupPropertyMaps();
47 Echo.getEventListener().onNewOdorSensor(
this);
174 if(edt == null || !(edt.length == 1))
return false;
225 if(edt == null || !(edt.length == 1))
return false;
274 if(edt == null || !(edt.length == 1))
return false;
280 boolean success = super.setProperty(property);
281 if(success)
return success;
283 switch(property.
epc) {
285 default :
return false;
291 byte[] edt = super.getProperty(epc);
292 if(edt != null)
return edt;
298 default :
return null;
304 boolean valid = super.isValidProperty(property);
305 if(valid)
return valid;
307 switch(property.
epc) {
311 default :
return false;
321 public Setter
set(
boolean responseRequired) {
323 ,
getNode().getAddressStr(), responseRequired);
327 public Getter
get() {
338 protected Informer
inform(
boolean multicast) {
343 address =
getNode().getAddressStr();
349 public static class Receiver
extends DeviceObject.Receiver {
352 protected boolean onSetProperty(
EchoObject eoj,
short tid, byte esv,
354 boolean ret = super.onSetProperty(eoj, tid, esv, property, success);
357 switch(property.epc) {
359 onSetDetectionThresholdLevel(eoj, tid, esv, property, success);
367 protected boolean onGetProperty(
EchoObject eoj,
short tid, byte esv,
369 boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
372 switch(property.epc) {
374 onGetDetectionThresholdLevel(eoj, tid, esv, property, success);
377 onGetOdorDetectionStatus(eoj, tid, esv, property, success);
380 onGetMeasuredOdorValue(eoj, tid, esv, property, success);
409 protected void onSetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
432 protected void onGetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
456 protected void onGetOdorDetectionStatus(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
479 protected void onGetMeasuredOdorValue(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
482 public static class Setter
extends DeviceObject.Setter {
483 public Setter(
short dstEchoClassCode, byte dstEchoInstanceCode
484 , String dstEchoAddress,
boolean responseRequired) {
485 super(dstEchoClassCode, dstEchoInstanceCode
486 , dstEchoAddress, responseRequired);
490 public Setter reqSetProperty(byte epc, byte[] edt) {
491 return (Setter)super.reqSetProperty(epc, edt);
495 public Setter reqSetOperationStatus(byte[] edt) {
496 return (Setter)super.reqSetOperationStatus(edt);
499 public Setter reqSetInstallationLocation(byte[] edt) {
500 return (Setter)super.reqSetInstallationLocation(edt);
503 public Setter reqSetCurrentLimitSetting(byte[] edt) {
504 return (Setter)super.reqSetCurrentLimitSetting(edt);
507 public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
508 return (Setter)super.reqSetPowerSavingOperationSetting(edt);
511 public Setter reqSetRemoteControlSetting(byte[] edt) {
512 return (Setter)super.reqSetRemoteControlSetting(edt);
515 public Setter reqSetCurrentTimeSetting(byte[] edt) {
516 return (Setter)super.reqSetCurrentTimeSetting(edt);
519 public Setter reqSetCurrentDateSetting(byte[] edt) {
520 return (Setter)super.reqSetCurrentDateSetting(edt);
523 public Setter reqSetPowerLimitSetting(byte[] edt) {
524 return (Setter)super.reqSetPowerLimitSetting(edt);
549 public Setter reqSetDetectionThresholdLevel(byte[] edt) {
555 public static class Getter
extends DeviceObject.Getter {
556 public Getter(
short dstEchoClassCode, byte dstEchoInstanceCode
557 , String dstEchoAddress) {
558 super(dstEchoClassCode, dstEchoInstanceCode
563 public Getter reqGetProperty(byte epc) {
564 return (Getter)super.reqGetProperty(epc);
568 public Getter reqGetOperationStatus() {
569 return (Getter)super.reqGetOperationStatus();
572 public Getter reqGetInstallationLocation() {
573 return (Getter)super.reqGetInstallationLocation();
576 public Getter reqGetStandardVersionInformation() {
577 return (Getter)super.reqGetStandardVersionInformation();
580 public Getter reqGetIdentificationNumber() {
581 return (Getter)super.reqGetIdentificationNumber();
584 public Getter reqGetMeasuredInstantaneousPowerConsumption() {
585 return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
588 public Getter reqGetMeasuredCumulativePowerConsumption() {
589 return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
592 public Getter reqGetManufacturersFaultCode() {
593 return (Getter)super.reqGetManufacturersFaultCode();
596 public Getter reqGetCurrentLimitSetting() {
597 return (Getter)super.reqGetCurrentLimitSetting();
600 public Getter reqGetFaultStatus() {
601 return (Getter)super.reqGetFaultStatus();
604 public Getter reqGetFaultDescription() {
605 return (Getter)super.reqGetFaultDescription();
608 public Getter reqGetManufacturerCode() {
609 return (Getter)super.reqGetManufacturerCode();
612 public Getter reqGetBusinessFacilityCode() {
613 return (Getter)super.reqGetBusinessFacilityCode();
616 public Getter reqGetProductCode() {
617 return (Getter)super.reqGetProductCode();
620 public Getter reqGetProductionNumber() {
621 return (Getter)super.reqGetProductionNumber();
624 public Getter reqGetProductionDate() {
625 return (Getter)super.reqGetProductionDate();
628 public Getter reqGetPowerSavingOperationSetting() {
629 return (Getter)super.reqGetPowerSavingOperationSetting();
632 public Getter reqGetRemoteControlSetting() {
633 return (Getter)super.reqGetRemoteControlSetting();
636 public Getter reqGetCurrentTimeSetting() {
637 return (Getter)super.reqGetCurrentTimeSetting();
640 public Getter reqGetCurrentDateSetting() {
641 return (Getter)super.reqGetCurrentDateSetting();
644 public Getter reqGetPowerLimitSetting() {
645 return (Getter)super.reqGetPowerLimitSetting();
648 public Getter reqGetCumulativeOperatingTime() {
649 return (Getter)super.reqGetCumulativeOperatingTime();
652 public Getter reqGetStatusChangeAnnouncementPropertyMap() {
653 return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
656 public Getter reqGetSetPropertyMap() {
657 return (Getter)super.reqGetSetPropertyMap();
660 public Getter reqGetGetPropertyMap() {
661 return (Getter)super.reqGetGetPropertyMap();
686 public Getter reqGetDetectionThresholdLevel() {
713 public Getter reqGetOdorDetectionStatus() {
739 public Getter reqGetMeasuredOdorValue() {
745 public static class Informer
extends DeviceObject.Informer {
746 public Informer(
short echoClassCode, byte echoInstanceCode
748 super(echoClassCode, echoInstanceCode
749 , dstEchoAddress, isSelfObject);
753 public Informer reqInformProperty(byte epc) {
754 return (Informer)super.reqInformProperty(epc);
757 public Informer reqInformOperationStatus() {
758 return (Informer)super.reqInformOperationStatus();
761 public Informer reqInformInstallationLocation() {
762 return (Informer)super.reqInformInstallationLocation();
765 public Informer reqInformStandardVersionInformation() {
766 return (Informer)super.reqInformStandardVersionInformation();
769 public Informer reqInformIdentificationNumber() {
770 return (Informer)super.reqInformIdentificationNumber();
773 public Informer reqInformMeasuredInstantaneousPowerConsumption() {
774 return (Informer)super.reqInformMeasuredInstantaneousPowerConsumption();
777 public Informer reqInformMeasuredCumulativePowerConsumption() {
778 return (Informer)super.reqInformMeasuredCumulativePowerConsumption();
781 public Informer reqInformManufacturersFaultCode() {
782 return (Informer)super.reqInformManufacturersFaultCode();
785 public Informer reqInformCurrentLimitSetting() {
786 return (Informer)super.reqInformCurrentLimitSetting();
789 public Informer reqInformFaultStatus() {
790 return (Informer)super.reqInformFaultStatus();
793 public Informer reqInformFaultDescription() {
794 return (Informer)super.reqInformFaultDescription();
797 public Informer reqInformManufacturerCode() {
798 return (Informer)super.reqInformManufacturerCode();
801 public Informer reqInformBusinessFacilityCode() {
802 return (Informer)super.reqInformBusinessFacilityCode();
805 public Informer reqInformProductCode() {
806 return (Informer)super.reqInformProductCode();
809 public Informer reqInformProductionNumber() {
810 return (Informer)super.reqInformProductionNumber();
813 public Informer reqInformProductionDate() {
814 return (Informer)super.reqInformProductionDate();
817 public Informer reqInformPowerSavingOperationSetting() {
818 return (Informer)super.reqInformPowerSavingOperationSetting();
821 public Informer reqInformRemoteControlSetting() {
822 return (Informer)super.reqInformRemoteControlSetting();
825 public Informer reqInformCurrentTimeSetting() {
826 return (Informer)super.reqInformCurrentTimeSetting();
829 public Informer reqInformCurrentDateSetting() {
830 return (Informer)super.reqInformCurrentDateSetting();
833 public Informer reqInformPowerLimitSetting() {
834 return (Informer)super.reqInformPowerLimitSetting();
837 public Informer reqInformCumulativeOperatingTime() {
838 return (Informer)super.reqInformCumulativeOperatingTime();
841 public Informer reqInformStatusChangeAnnouncementPropertyMap() {
842 return (Informer)super.reqInformStatusChangeAnnouncementPropertyMap();
845 public Informer reqInformSetPropertyMap() {
846 return (Informer)super.reqInformSetPropertyMap();
849 public Informer reqInformGetPropertyMap() {
850 return (Informer)super.reqInformGetPropertyMap();
875 public Informer reqInformDetectionThresholdLevel() {
902 public Informer reqInformOdorDetectionStatus() {
928 public Informer reqInformMeasuredOdorValue() {
934 public static class Proxy
extends OdorSensor {
935 public Proxy(byte instanceCode) {
960 return setG((byte)0);
963 public static Setter
setG(byte instanceCode) {
964 return setG(instanceCode,
true);
967 public static Setter
setG(
boolean responseRequired) {
968 return setG((byte)0, responseRequired);
971 public static Setter
setG(byte instanceCode,
boolean responseRequired) {
977 return getG((byte)0);
980 public static Getter
getG(byte instanceCode) {
989 public static Informer
informG(byte instanceCode) {
synchronized boolean isValidProperty(EchoProperty property)
static final byte EPC_MEASURED_ODOR_VALUE
static Informer informG(byte instanceCode)
boolean setOperationStatus(byte[] edt)
static final byte EPC_ODOR_DETECTION_STATUS
boolean setDetectionThresholdLevel(byte[] edt)
static final short ECHO_CLASS_CODE
boolean isValidMeasuredOdorValue(byte[] edt)
static Getter getG(byte instanceCode)
final void removeSetProperty(byte epc)
final void addStatusChangeAnnouncementProperty(byte epc)
abstract byte[] getInstallationLocation()
byte[] getDetectionThresholdLevel()
final void addGetProperty(byte epc)
static Setter setG(byte instanceCode)
abstract byte[] getMeasuredOdorValue()
boolean isValidOdorDetectionStatus(byte[] edt)
abstract byte[] getFaultStatus()
static final byte EPC_DETECTION_THRESHOLD_LEVEL
abstract byte[] getOperationStatus()
abstract byte[] getManufacturerCode()
static Setter setG(boolean responseRequired)
byte[] getOdorDetectionStatus()
static Setter setG(byte instanceCode, boolean responseRequired)
static final byte EPC_OPERATION_STATUS
byte[] getStandardVersionInformation()
static Informer informG()
synchronized byte[] getProperty(byte epc)
synchronized boolean setProperty(EchoProperty property)
abstract boolean setInstallationLocation(byte[] edt)
static final String MULTICAST_ADDRESS
Informer inform(boolean multicast)
final boolean isSelfObject()
boolean isValidDetectionThresholdLevel(byte[] edt)
Setter set(boolean responseRequired)