16 package com.sonycsl.echo.eoj.device.sensor;
36 super.setupPropertyMaps();
48 Echo.getEventListener().onNewFireSensor(
this);
178 if(edt == null || !(edt.length == 1))
return false;
235 if(edt == null || !(edt.length == 1))
return false;
284 if(edt == null || !(edt.length == 1))
return false;
290 boolean success = super.setProperty(property);
291 if(success)
return success;
293 switch(property.
epc) {
296 default :
return false;
302 byte[] edt = super.getProperty(epc);
303 if(edt != null)
return edt;
308 default :
return null;
314 boolean valid = super.isValidProperty(property);
315 if(valid)
return valid;
317 switch(property.
epc) {
321 default :
return false;
331 public Setter
set(
boolean responseRequired) {
333 ,
getNode().getAddressStr(), responseRequired);
337 public Getter
get() {
348 protected Informer
inform(
boolean multicast) {
353 address =
getNode().getAddressStr();
359 public static class Receiver
extends DeviceObject.Receiver {
362 protected boolean onSetProperty(
EchoObject eoj,
short tid, byte esv,
364 boolean ret = super.onSetProperty(eoj, tid, esv, property, success);
367 switch(property.epc) {
369 onSetDetectionThresholdLevel(eoj, tid, esv, property, success);
372 onSetFireOccurrenceDetectionStatusResetting(eoj, tid, esv, property, success);
380 protected boolean onGetProperty(
EchoObject eoj,
short tid, byte esv,
382 boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
385 switch(property.epc) {
387 onGetDetectionThresholdLevel(eoj, tid, esv, property, success);
390 onGetFireOccurrenceDetectionStatus(eoj, tid, esv, property, success);
420 protected void onSetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
444 protected void onGetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
471 protected void onGetFireOccurrenceDetectionStatus(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
494 protected void onSetFireOccurrenceDetectionStatusResetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
497 public static class Setter
extends DeviceObject.Setter {
498 public Setter(
short dstEchoClassCode, byte dstEchoInstanceCode
499 , String dstEchoAddress,
boolean responseRequired) {
500 super(dstEchoClassCode, dstEchoInstanceCode
501 , dstEchoAddress, responseRequired);
505 public Setter reqSetProperty(byte epc, byte[] edt) {
506 return (Setter)super.reqSetProperty(epc, edt);
510 public Setter reqSetOperationStatus(byte[] edt) {
511 return (Setter)super.reqSetOperationStatus(edt);
514 public Setter reqSetInstallationLocation(byte[] edt) {
515 return (Setter)super.reqSetInstallationLocation(edt);
518 public Setter reqSetCurrentLimitSetting(byte[] edt) {
519 return (Setter)super.reqSetCurrentLimitSetting(edt);
522 public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
523 return (Setter)super.reqSetPowerSavingOperationSetting(edt);
526 public Setter reqSetRemoteControlSetting(byte[] edt) {
527 return (Setter)super.reqSetRemoteControlSetting(edt);
530 public Setter reqSetCurrentTimeSetting(byte[] edt) {
531 return (Setter)super.reqSetCurrentTimeSetting(edt);
534 public Setter reqSetCurrentDateSetting(byte[] edt) {
535 return (Setter)super.reqSetCurrentDateSetting(edt);
538 public Setter reqSetPowerLimitSetting(byte[] edt) {
539 return (Setter)super.reqSetPowerLimitSetting(edt);
565 public Setter reqSetDetectionThresholdLevel(byte[] edt) {
591 public Setter reqSetFireOccurrenceDetectionStatusResetting(byte[] edt) {
597 public static class Getter
extends DeviceObject.Getter {
598 public Getter(
short dstEchoClassCode, byte dstEchoInstanceCode
599 , String dstEchoAddress) {
600 super(dstEchoClassCode, dstEchoInstanceCode
605 public Getter reqGetProperty(byte epc) {
606 return (Getter)super.reqGetProperty(epc);
610 public Getter reqGetOperationStatus() {
611 return (Getter)super.reqGetOperationStatus();
614 public Getter reqGetInstallationLocation() {
615 return (Getter)super.reqGetInstallationLocation();
618 public Getter reqGetStandardVersionInformation() {
619 return (Getter)super.reqGetStandardVersionInformation();
622 public Getter reqGetIdentificationNumber() {
623 return (Getter)super.reqGetIdentificationNumber();
626 public Getter reqGetMeasuredInstantaneousPowerConsumption() {
627 return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
630 public Getter reqGetMeasuredCumulativePowerConsumption() {
631 return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
634 public Getter reqGetManufacturersFaultCode() {
635 return (Getter)super.reqGetManufacturersFaultCode();
638 public Getter reqGetCurrentLimitSetting() {
639 return (Getter)super.reqGetCurrentLimitSetting();
642 public Getter reqGetFaultStatus() {
643 return (Getter)super.reqGetFaultStatus();
646 public Getter reqGetFaultDescription() {
647 return (Getter)super.reqGetFaultDescription();
650 public Getter reqGetManufacturerCode() {
651 return (Getter)super.reqGetManufacturerCode();
654 public Getter reqGetBusinessFacilityCode() {
655 return (Getter)super.reqGetBusinessFacilityCode();
658 public Getter reqGetProductCode() {
659 return (Getter)super.reqGetProductCode();
662 public Getter reqGetProductionNumber() {
663 return (Getter)super.reqGetProductionNumber();
666 public Getter reqGetProductionDate() {
667 return (Getter)super.reqGetProductionDate();
670 public Getter reqGetPowerSavingOperationSetting() {
671 return (Getter)super.reqGetPowerSavingOperationSetting();
674 public Getter reqGetRemoteControlSetting() {
675 return (Getter)super.reqGetRemoteControlSetting();
678 public Getter reqGetCurrentTimeSetting() {
679 return (Getter)super.reqGetCurrentTimeSetting();
682 public Getter reqGetCurrentDateSetting() {
683 return (Getter)super.reqGetCurrentDateSetting();
686 public Getter reqGetPowerLimitSetting() {
687 return (Getter)super.reqGetPowerLimitSetting();
690 public Getter reqGetCumulativeOperatingTime() {
691 return (Getter)super.reqGetCumulativeOperatingTime();
694 public Getter reqGetStatusChangeAnnouncementPropertyMap() {
695 return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
698 public Getter reqGetSetPropertyMap() {
699 return (Getter)super.reqGetSetPropertyMap();
702 public Getter reqGetGetPropertyMap() {
703 return (Getter)super.reqGetGetPropertyMap();
729 public Getter reqGetDetectionThresholdLevel() {
759 public Getter reqGetFireOccurrenceDetectionStatus() {
765 public static class Informer
extends DeviceObject.Informer {
766 public Informer(
short echoClassCode, byte echoInstanceCode
768 super(echoClassCode, echoInstanceCode
769 , dstEchoAddress, isSelfObject);
773 public Informer reqInformProperty(byte epc) {
774 return (Informer)super.reqInformProperty(epc);
777 public Informer reqInformOperationStatus() {
778 return (Informer)super.reqInformOperationStatus();
781 public Informer reqInformInstallationLocation() {
782 return (Informer)super.reqInformInstallationLocation();
785 public Informer reqInformStandardVersionInformation() {
786 return (Informer)super.reqInformStandardVersionInformation();
789 public Informer reqInformIdentificationNumber() {
790 return (Informer)super.reqInformIdentificationNumber();
793 public Informer reqInformMeasuredInstantaneousPowerConsumption() {
794 return (Informer)super.reqInformMeasuredInstantaneousPowerConsumption();
797 public Informer reqInformMeasuredCumulativePowerConsumption() {
798 return (Informer)super.reqInformMeasuredCumulativePowerConsumption();
801 public Informer reqInformManufacturersFaultCode() {
802 return (Informer)super.reqInformManufacturersFaultCode();
805 public Informer reqInformCurrentLimitSetting() {
806 return (Informer)super.reqInformCurrentLimitSetting();
809 public Informer reqInformFaultStatus() {
810 return (Informer)super.reqInformFaultStatus();
813 public Informer reqInformFaultDescription() {
814 return (Informer)super.reqInformFaultDescription();
817 public Informer reqInformManufacturerCode() {
818 return (Informer)super.reqInformManufacturerCode();
821 public Informer reqInformBusinessFacilityCode() {
822 return (Informer)super.reqInformBusinessFacilityCode();
825 public Informer reqInformProductCode() {
826 return (Informer)super.reqInformProductCode();
829 public Informer reqInformProductionNumber() {
830 return (Informer)super.reqInformProductionNumber();
833 public Informer reqInformProductionDate() {
834 return (Informer)super.reqInformProductionDate();
837 public Informer reqInformPowerSavingOperationSetting() {
838 return (Informer)super.reqInformPowerSavingOperationSetting();
841 public Informer reqInformRemoteControlSetting() {
842 return (Informer)super.reqInformRemoteControlSetting();
845 public Informer reqInformCurrentTimeSetting() {
846 return (Informer)super.reqInformCurrentTimeSetting();
849 public Informer reqInformCurrentDateSetting() {
850 return (Informer)super.reqInformCurrentDateSetting();
853 public Informer reqInformPowerLimitSetting() {
854 return (Informer)super.reqInformPowerLimitSetting();
857 public Informer reqInformCumulativeOperatingTime() {
858 return (Informer)super.reqInformCumulativeOperatingTime();
861 public Informer reqInformStatusChangeAnnouncementPropertyMap() {
862 return (Informer)super.reqInformStatusChangeAnnouncementPropertyMap();
865 public Informer reqInformSetPropertyMap() {
866 return (Informer)super.reqInformSetPropertyMap();
869 public Informer reqInformGetPropertyMap() {
870 return (Informer)super.reqInformGetPropertyMap();
896 public Informer reqInformDetectionThresholdLevel() {
926 public Informer reqInformFireOccurrenceDetectionStatus() {
932 public static class Proxy
extends FireSensor {
933 public Proxy(byte instanceCode) {
958 return setG((byte)0);
961 public static Setter
setG(byte instanceCode) {
962 return setG(instanceCode,
true);
965 public static Setter
setG(
boolean responseRequired) {
966 return setG((byte)0, responseRequired);
969 public static Setter
setG(byte instanceCode,
boolean responseRequired) {
975 return getG((byte)0);
978 public static Getter
getG(byte instanceCode) {
987 public static Informer
informG(byte instanceCode) {
static final byte EPC_FIRE_OCCURRENCE_DETECTION_STATUS
boolean isValidFireOccurrenceDetectionStatusResetting(byte[] edt)
static Informer informG()
static final short ECHO_CLASS_CODE
abstract byte[] getOperationStatus()
final void removeSetProperty(byte epc)
final void addStatusChangeAnnouncementProperty(byte epc)
abstract byte[] getInstallationLocation()
final void addGetProperty(byte epc)
boolean setOperationStatus(byte[] edt)
static Setter setG(byte instanceCode)
static final byte EPC_FIRE_OCCURRENCE_DETECTION_STATUS_RESETTING
static Getter getG(byte instanceCode)
byte[] getDetectionThresholdLevel()
abstract byte[] getFaultStatus()
boolean isValidFireOccurrenceDetectionStatus(byte[] edt)
abstract byte[] getFireOccurrenceDetectionStatus()
static Setter setG(byte instanceCode, boolean responseRequired)
Setter set(boolean responseRequired)
synchronized boolean isValidProperty(EchoProperty property)
abstract byte[] getManufacturerCode()
boolean setFireOccurrenceDetectionStatusResetting(byte[] edt)
Informer inform(boolean multicast)
static Setter setG(boolean responseRequired)
synchronized boolean setProperty(EchoProperty property)
static final byte EPC_OPERATION_STATUS
boolean setDetectionThresholdLevel(byte[] edt)
byte[] getStandardVersionInformation()
static Informer informG(byte instanceCode)
synchronized byte[] getProperty(byte epc)
abstract boolean setInstallationLocation(byte[] edt)
static final String MULTICAST_ADDRESS
static final byte EPC_DETECTION_THRESHOLD_LEVEL
final boolean isSelfObject()
boolean isValidDetectionThresholdLevel(byte[] edt)