16 package com.sonycsl.echo.eoj.device.sensor;
36 super.setupPropertyMaps();
48 Echo.getEventListener().onNewFlameSensor(
this);
175 if(edt == null || !(edt.length == 1))
return false;
234 if(edt == null || !(edt.length == 1))
return false;
283 if(edt == null || !(edt.length == 1))
return false;
289 boolean success = super.setProperty(property);
290 if(success)
return success;
292 switch(property.
epc) {
295 default :
return false;
301 byte[] edt = super.getProperty(epc);
302 if(edt != null)
return edt;
307 default :
return null;
313 boolean valid = super.isValidProperty(property);
314 if(valid)
return valid;
316 switch(property.
epc) {
320 default :
return false;
330 public Setter
set(
boolean responseRequired) {
332 ,
getNode().getAddressStr(), responseRequired);
336 public Getter
get() {
347 protected Informer
inform(
boolean multicast) {
352 address =
getNode().getAddressStr();
358 public static class Receiver
extends DeviceObject.Receiver {
361 protected boolean onSetProperty(
EchoObject eoj,
short tid, byte esv,
363 boolean ret = super.onSetProperty(eoj, tid, esv, property, success);
366 switch(property.epc) {
368 onSetDetectionThresholdLevel(eoj, tid, esv, property, success);
371 onSetFlameDetectionStatusResetting(eoj, tid, esv, property, success);
379 protected boolean onGetProperty(
EchoObject eoj,
short tid, byte esv,
381 boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
384 switch(property.epc) {
386 onGetDetectionThresholdLevel(eoj, tid, esv, property, success);
389 onGetFlameDetectionStatus(eoj, tid, esv, property, success);
418 protected void onSetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
441 protected void onGetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
469 protected void onGetFlameDetectionStatus(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
492 protected void onSetFlameDetectionStatusResetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
495 public static class Setter
extends DeviceObject.Setter {
496 public Setter(
short dstEchoClassCode, byte dstEchoInstanceCode
497 , String dstEchoAddress,
boolean responseRequired) {
498 super(dstEchoClassCode, dstEchoInstanceCode
499 , dstEchoAddress, responseRequired);
503 public Setter reqSetProperty(byte epc, byte[] edt) {
504 return (Setter)super.reqSetProperty(epc, edt);
508 public Setter reqSetOperationStatus(byte[] edt) {
509 return (Setter)super.reqSetOperationStatus(edt);
512 public Setter reqSetInstallationLocation(byte[] edt) {
513 return (Setter)super.reqSetInstallationLocation(edt);
516 public Setter reqSetCurrentLimitSetting(byte[] edt) {
517 return (Setter)super.reqSetCurrentLimitSetting(edt);
520 public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
521 return (Setter)super.reqSetPowerSavingOperationSetting(edt);
524 public Setter reqSetRemoteControlSetting(byte[] edt) {
525 return (Setter)super.reqSetRemoteControlSetting(edt);
528 public Setter reqSetCurrentTimeSetting(byte[] edt) {
529 return (Setter)super.reqSetCurrentTimeSetting(edt);
532 public Setter reqSetCurrentDateSetting(byte[] edt) {
533 return (Setter)super.reqSetCurrentDateSetting(edt);
536 public Setter reqSetPowerLimitSetting(byte[] edt) {
537 return (Setter)super.reqSetPowerLimitSetting(edt);
562 public Setter reqSetDetectionThresholdLevel(byte[] edt) {
588 public Setter reqSetFlameDetectionStatusResetting(byte[] edt) {
594 public static class Getter
extends DeviceObject.Getter {
595 public Getter(
short dstEchoClassCode, byte dstEchoInstanceCode
596 , String dstEchoAddress) {
597 super(dstEchoClassCode, dstEchoInstanceCode
602 public Getter reqGetProperty(byte epc) {
603 return (Getter)super.reqGetProperty(epc);
607 public Getter reqGetOperationStatus() {
608 return (Getter)super.reqGetOperationStatus();
611 public Getter reqGetInstallationLocation() {
612 return (Getter)super.reqGetInstallationLocation();
615 public Getter reqGetStandardVersionInformation() {
616 return (Getter)super.reqGetStandardVersionInformation();
619 public Getter reqGetIdentificationNumber() {
620 return (Getter)super.reqGetIdentificationNumber();
623 public Getter reqGetMeasuredInstantaneousPowerConsumption() {
624 return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
627 public Getter reqGetMeasuredCumulativePowerConsumption() {
628 return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
631 public Getter reqGetManufacturersFaultCode() {
632 return (Getter)super.reqGetManufacturersFaultCode();
635 public Getter reqGetCurrentLimitSetting() {
636 return (Getter)super.reqGetCurrentLimitSetting();
639 public Getter reqGetFaultStatus() {
640 return (Getter)super.reqGetFaultStatus();
643 public Getter reqGetFaultDescription() {
644 return (Getter)super.reqGetFaultDescription();
647 public Getter reqGetManufacturerCode() {
648 return (Getter)super.reqGetManufacturerCode();
651 public Getter reqGetBusinessFacilityCode() {
652 return (Getter)super.reqGetBusinessFacilityCode();
655 public Getter reqGetProductCode() {
656 return (Getter)super.reqGetProductCode();
659 public Getter reqGetProductionNumber() {
660 return (Getter)super.reqGetProductionNumber();
663 public Getter reqGetProductionDate() {
664 return (Getter)super.reqGetProductionDate();
667 public Getter reqGetPowerSavingOperationSetting() {
668 return (Getter)super.reqGetPowerSavingOperationSetting();
671 public Getter reqGetRemoteControlSetting() {
672 return (Getter)super.reqGetRemoteControlSetting();
675 public Getter reqGetCurrentTimeSetting() {
676 return (Getter)super.reqGetCurrentTimeSetting();
679 public Getter reqGetCurrentDateSetting() {
680 return (Getter)super.reqGetCurrentDateSetting();
683 public Getter reqGetPowerLimitSetting() {
684 return (Getter)super.reqGetPowerLimitSetting();
687 public Getter reqGetCumulativeOperatingTime() {
688 return (Getter)super.reqGetCumulativeOperatingTime();
691 public Getter reqGetStatusChangeAnnouncementPropertyMap() {
692 return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
695 public Getter reqGetSetPropertyMap() {
696 return (Getter)super.reqGetSetPropertyMap();
699 public Getter reqGetGetPropertyMap() {
700 return (Getter)super.reqGetGetPropertyMap();
725 public Getter reqGetDetectionThresholdLevel() {
756 public Getter reqGetFlameDetectionStatus() {
762 public static class Informer
extends DeviceObject.Informer {
763 public Informer(
short echoClassCode, byte echoInstanceCode
765 super(echoClassCode, echoInstanceCode
766 , dstEchoAddress, isSelfObject);
770 public Informer reqInformProperty(byte epc) {
771 return (Informer)super.reqInformProperty(epc);
774 public Informer reqInformOperationStatus() {
775 return (Informer)super.reqInformOperationStatus();
778 public Informer reqInformInstallationLocation() {
779 return (Informer)super.reqInformInstallationLocation();
782 public Informer reqInformStandardVersionInformation() {
783 return (Informer)super.reqInformStandardVersionInformation();
786 public Informer reqInformIdentificationNumber() {
787 return (Informer)super.reqInformIdentificationNumber();
790 public Informer reqInformMeasuredInstantaneousPowerConsumption() {
791 return (Informer)super.reqInformMeasuredInstantaneousPowerConsumption();
794 public Informer reqInformMeasuredCumulativePowerConsumption() {
795 return (Informer)super.reqInformMeasuredCumulativePowerConsumption();
798 public Informer reqInformManufacturersFaultCode() {
799 return (Informer)super.reqInformManufacturersFaultCode();
802 public Informer reqInformCurrentLimitSetting() {
803 return (Informer)super.reqInformCurrentLimitSetting();
806 public Informer reqInformFaultStatus() {
807 return (Informer)super.reqInformFaultStatus();
810 public Informer reqInformFaultDescription() {
811 return (Informer)super.reqInformFaultDescription();
814 public Informer reqInformManufacturerCode() {
815 return (Informer)super.reqInformManufacturerCode();
818 public Informer reqInformBusinessFacilityCode() {
819 return (Informer)super.reqInformBusinessFacilityCode();
822 public Informer reqInformProductCode() {
823 return (Informer)super.reqInformProductCode();
826 public Informer reqInformProductionNumber() {
827 return (Informer)super.reqInformProductionNumber();
830 public Informer reqInformProductionDate() {
831 return (Informer)super.reqInformProductionDate();
834 public Informer reqInformPowerSavingOperationSetting() {
835 return (Informer)super.reqInformPowerSavingOperationSetting();
838 public Informer reqInformRemoteControlSetting() {
839 return (Informer)super.reqInformRemoteControlSetting();
842 public Informer reqInformCurrentTimeSetting() {
843 return (Informer)super.reqInformCurrentTimeSetting();
846 public Informer reqInformCurrentDateSetting() {
847 return (Informer)super.reqInformCurrentDateSetting();
850 public Informer reqInformPowerLimitSetting() {
851 return (Informer)super.reqInformPowerLimitSetting();
854 public Informer reqInformCumulativeOperatingTime() {
855 return (Informer)super.reqInformCumulativeOperatingTime();
858 public Informer reqInformStatusChangeAnnouncementPropertyMap() {
859 return (Informer)super.reqInformStatusChangeAnnouncementPropertyMap();
862 public Informer reqInformSetPropertyMap() {
863 return (Informer)super.reqInformSetPropertyMap();
866 public Informer reqInformGetPropertyMap() {
867 return (Informer)super.reqInformGetPropertyMap();
892 public Informer reqInformDetectionThresholdLevel() {
923 public Informer reqInformFlameDetectionStatus() {
929 public static class Proxy
extends FlameSensor {
930 public Proxy(byte instanceCode) {
955 return setG((byte)0);
958 public static Setter
setG(byte instanceCode) {
959 return setG(instanceCode,
true);
962 public static Setter
setG(
boolean responseRequired) {
963 return setG((byte)0, responseRequired);
966 public static Setter
setG(byte instanceCode,
boolean responseRequired) {
972 return getG((byte)0);
975 public static Getter
getG(byte instanceCode) {
984 public static Informer
informG(byte instanceCode) {
static Setter setG(byte instanceCode, boolean responseRequired)
Setter set(boolean responseRequired)
static Informer informG()
byte[] getDetectionThresholdLevel()
static final byte EPC_DETECTION_THRESHOLD_LEVEL
boolean isValidDetectionThresholdLevel(byte[] edt)
final void removeSetProperty(byte epc)
abstract byte[] getOperationStatus()
boolean setFlameDetectionStatusResetting(byte[] edt)
final void addStatusChangeAnnouncementProperty(byte epc)
abstract byte[] getInstallationLocation()
final void addGetProperty(byte epc)
static Getter getG(byte instanceCode)
Informer inform(boolean multicast)
abstract byte[] getFlameDetectionStatus()
boolean setOperationStatus(byte[] edt)
abstract byte[] getFaultStatus()
boolean isValidFlameDetectionStatusResetting(byte[] edt)
boolean isValidFlameDetectionStatus(byte[] edt)
static Setter setG(byte instanceCode)
static final byte EPC_FLAME_DETECTION_STATUS
synchronized boolean isValidProperty(EchoProperty property)
abstract byte[] getManufacturerCode()
boolean setDetectionThresholdLevel(byte[] edt)
static final byte EPC_FLAME_DETECTION_STATUS_RESETTING
static final byte EPC_OPERATION_STATUS
byte[] getStandardVersionInformation()
abstract boolean setInstallationLocation(byte[] edt)
static Informer informG(byte instanceCode)
static final String MULTICAST_ADDRESS
static final short ECHO_CLASS_CODE
static Setter setG(boolean responseRequired)
synchronized boolean setProperty(EchoProperty property)
final boolean isSelfObject()
synchronized byte[] getProperty(byte epc)