16 package com.sonycsl.echo.eoj.device.sensor;
36 super.setupPropertyMaps();
48 Echo.getEventListener().onNewFirstAidSensor(
this);
175 if(edt == null || !(edt.length == 1))
return false;
232 if(edt == null || !(edt.length == 1))
return false;
281 if(edt == null || !(edt.length == 1))
return false;
287 boolean success = super.setProperty(property);
288 if(success)
return success;
290 switch(property.
epc) {
293 default :
return false;
299 byte[] edt = super.getProperty(epc);
300 if(edt != null)
return edt;
305 default :
return null;
311 boolean valid = super.isValidProperty(property);
312 if(valid)
return valid;
314 switch(property.
epc) {
318 default :
return false;
328 public Setter
set(
boolean responseRequired) {
330 ,
getNode().getAddressStr(), responseRequired);
334 public Getter
get() {
345 protected Informer
inform(
boolean multicast) {
350 address =
getNode().getAddressStr();
356 public static class Receiver
extends DeviceObject.Receiver {
359 protected boolean onSetProperty(
EchoObject eoj,
short tid, byte esv,
361 boolean ret = super.onSetProperty(eoj, tid, esv, property, success);
364 switch(property.epc) {
366 onSetDetectionThresholdLevel(eoj, tid, esv, property, success);
369 onSetFirstAidOccurrenceStatusResetting(eoj, tid, esv, property, success);
377 protected boolean onGetProperty(
EchoObject eoj,
short tid, byte esv,
379 boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
382 switch(property.epc) {
384 onGetDetectionThresholdLevel(eoj, tid, esv, property, success);
387 onGetFirstAidOccurrenceStatus(eoj, tid, esv, property, success);
416 protected void onSetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
439 protected void onGetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
466 protected void onGetFirstAidOccurrenceStatus(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
489 protected void onSetFirstAidOccurrenceStatusResetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
492 public static class Setter
extends DeviceObject.Setter {
493 public Setter(
short dstEchoClassCode, byte dstEchoInstanceCode
494 , String dstEchoAddress,
boolean responseRequired) {
495 super(dstEchoClassCode, dstEchoInstanceCode
496 , dstEchoAddress, responseRequired);
500 public Setter reqSetProperty(byte epc, byte[] edt) {
501 return (Setter)super.reqSetProperty(epc, edt);
505 public Setter reqSetOperationStatus(byte[] edt) {
506 return (Setter)super.reqSetOperationStatus(edt);
509 public Setter reqSetInstallationLocation(byte[] edt) {
510 return (Setter)super.reqSetInstallationLocation(edt);
513 public Setter reqSetCurrentLimitSetting(byte[] edt) {
514 return (Setter)super.reqSetCurrentLimitSetting(edt);
517 public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
518 return (Setter)super.reqSetPowerSavingOperationSetting(edt);
521 public Setter reqSetRemoteControlSetting(byte[] edt) {
522 return (Setter)super.reqSetRemoteControlSetting(edt);
525 public Setter reqSetCurrentTimeSetting(byte[] edt) {
526 return (Setter)super.reqSetCurrentTimeSetting(edt);
529 public Setter reqSetCurrentDateSetting(byte[] edt) {
530 return (Setter)super.reqSetCurrentDateSetting(edt);
533 public Setter reqSetPowerLimitSetting(byte[] edt) {
534 return (Setter)super.reqSetPowerLimitSetting(edt);
559 public Setter reqSetDetectionThresholdLevel(byte[] edt) {
585 public Setter reqSetFirstAidOccurrenceStatusResetting(byte[] edt) {
591 public static class Getter
extends DeviceObject.Getter {
592 public Getter(
short dstEchoClassCode, byte dstEchoInstanceCode
593 , String dstEchoAddress) {
594 super(dstEchoClassCode, dstEchoInstanceCode
599 public Getter reqGetProperty(byte epc) {
600 return (Getter)super.reqGetProperty(epc);
604 public Getter reqGetOperationStatus() {
605 return (Getter)super.reqGetOperationStatus();
608 public Getter reqGetInstallationLocation() {
609 return (Getter)super.reqGetInstallationLocation();
612 public Getter reqGetStandardVersionInformation() {
613 return (Getter)super.reqGetStandardVersionInformation();
616 public Getter reqGetIdentificationNumber() {
617 return (Getter)super.reqGetIdentificationNumber();
620 public Getter reqGetMeasuredInstantaneousPowerConsumption() {
621 return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
624 public Getter reqGetMeasuredCumulativePowerConsumption() {
625 return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
628 public Getter reqGetManufacturersFaultCode() {
629 return (Getter)super.reqGetManufacturersFaultCode();
632 public Getter reqGetCurrentLimitSetting() {
633 return (Getter)super.reqGetCurrentLimitSetting();
636 public Getter reqGetFaultStatus() {
637 return (Getter)super.reqGetFaultStatus();
640 public Getter reqGetFaultDescription() {
641 return (Getter)super.reqGetFaultDescription();
644 public Getter reqGetManufacturerCode() {
645 return (Getter)super.reqGetManufacturerCode();
648 public Getter reqGetBusinessFacilityCode() {
649 return (Getter)super.reqGetBusinessFacilityCode();
652 public Getter reqGetProductCode() {
653 return (Getter)super.reqGetProductCode();
656 public Getter reqGetProductionNumber() {
657 return (Getter)super.reqGetProductionNumber();
660 public Getter reqGetProductionDate() {
661 return (Getter)super.reqGetProductionDate();
664 public Getter reqGetPowerSavingOperationSetting() {
665 return (Getter)super.reqGetPowerSavingOperationSetting();
668 public Getter reqGetRemoteControlSetting() {
669 return (Getter)super.reqGetRemoteControlSetting();
672 public Getter reqGetCurrentTimeSetting() {
673 return (Getter)super.reqGetCurrentTimeSetting();
676 public Getter reqGetCurrentDateSetting() {
677 return (Getter)super.reqGetCurrentDateSetting();
680 public Getter reqGetPowerLimitSetting() {
681 return (Getter)super.reqGetPowerLimitSetting();
684 public Getter reqGetCumulativeOperatingTime() {
685 return (Getter)super.reqGetCumulativeOperatingTime();
688 public Getter reqGetStatusChangeAnnouncementPropertyMap() {
689 return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
692 public Getter reqGetSetPropertyMap() {
693 return (Getter)super.reqGetSetPropertyMap();
696 public Getter reqGetGetPropertyMap() {
697 return (Getter)super.reqGetGetPropertyMap();
722 public Getter reqGetDetectionThresholdLevel() {
752 public Getter reqGetFirstAidOccurrenceStatus() {
758 public static class Informer
extends DeviceObject.Informer {
759 public Informer(
short echoClassCode, byte echoInstanceCode
761 super(echoClassCode, echoInstanceCode
762 , dstEchoAddress, isSelfObject);
766 public Informer reqInformProperty(byte epc) {
767 return (Informer)super.reqInformProperty(epc);
770 public Informer reqInformOperationStatus() {
771 return (Informer)super.reqInformOperationStatus();
774 public Informer reqInformInstallationLocation() {
775 return (Informer)super.reqInformInstallationLocation();
778 public Informer reqInformStandardVersionInformation() {
779 return (Informer)super.reqInformStandardVersionInformation();
782 public Informer reqInformIdentificationNumber() {
783 return (Informer)super.reqInformIdentificationNumber();
786 public Informer reqInformMeasuredInstantaneousPowerConsumption() {
787 return (Informer)super.reqInformMeasuredInstantaneousPowerConsumption();
790 public Informer reqInformMeasuredCumulativePowerConsumption() {
791 return (Informer)super.reqInformMeasuredCumulativePowerConsumption();
794 public Informer reqInformManufacturersFaultCode() {
795 return (Informer)super.reqInformManufacturersFaultCode();
798 public Informer reqInformCurrentLimitSetting() {
799 return (Informer)super.reqInformCurrentLimitSetting();
802 public Informer reqInformFaultStatus() {
803 return (Informer)super.reqInformFaultStatus();
806 public Informer reqInformFaultDescription() {
807 return (Informer)super.reqInformFaultDescription();
810 public Informer reqInformManufacturerCode() {
811 return (Informer)super.reqInformManufacturerCode();
814 public Informer reqInformBusinessFacilityCode() {
815 return (Informer)super.reqInformBusinessFacilityCode();
818 public Informer reqInformProductCode() {
819 return (Informer)super.reqInformProductCode();
822 public Informer reqInformProductionNumber() {
823 return (Informer)super.reqInformProductionNumber();
826 public Informer reqInformProductionDate() {
827 return (Informer)super.reqInformProductionDate();
830 public Informer reqInformPowerSavingOperationSetting() {
831 return (Informer)super.reqInformPowerSavingOperationSetting();
834 public Informer reqInformRemoteControlSetting() {
835 return (Informer)super.reqInformRemoteControlSetting();
838 public Informer reqInformCurrentTimeSetting() {
839 return (Informer)super.reqInformCurrentTimeSetting();
842 public Informer reqInformCurrentDateSetting() {
843 return (Informer)super.reqInformCurrentDateSetting();
846 public Informer reqInformPowerLimitSetting() {
847 return (Informer)super.reqInformPowerLimitSetting();
850 public Informer reqInformCumulativeOperatingTime() {
851 return (Informer)super.reqInformCumulativeOperatingTime();
854 public Informer reqInformStatusChangeAnnouncementPropertyMap() {
855 return (Informer)super.reqInformStatusChangeAnnouncementPropertyMap();
858 public Informer reqInformSetPropertyMap() {
859 return (Informer)super.reqInformSetPropertyMap();
862 public Informer reqInformGetPropertyMap() {
863 return (Informer)super.reqInformGetPropertyMap();
888 public Informer reqInformDetectionThresholdLevel() {
918 public Informer reqInformFirstAidOccurrenceStatus() {
924 public static class Proxy
extends FirstAidSensor {
925 public Proxy(byte instanceCode) {
950 return setG((byte)0);
953 public static Setter
setG(byte instanceCode) {
954 return setG(instanceCode,
true);
957 public static Setter
setG(
boolean responseRequired) {
958 return setG((byte)0, responseRequired);
961 public static Setter
setG(byte instanceCode,
boolean responseRequired) {
967 return getG((byte)0);
970 public static Getter
getG(byte instanceCode) {
979 public static Informer
informG(byte instanceCode) {
Setter set(boolean responseRequired)
boolean setFirstAidOccurrenceStatusResetting(byte[] edt)
static final byte EPC_FIRST_AID_OCCURRENCE_STATUS
static Informer informG(byte instanceCode)
synchronized byte[] getProperty(byte epc)
final void removeSetProperty(byte epc)
static final byte EPC_FIRST_AID_OCCURRENCE_STATUS_RESETTING
final void addStatusChangeAnnouncementProperty(byte epc)
abstract byte[] getInstallationLocation()
static Informer informG()
final void addGetProperty(byte epc)
boolean setOperationStatus(byte[] edt)
static Setter setG(boolean responseRequired)
static final short ECHO_CLASS_CODE
abstract byte[] getFaultStatus()
boolean setDetectionThresholdLevel(byte[] edt)
abstract byte[] getManufacturerCode()
static final byte EPC_DETECTION_THRESHOLD_LEVEL
Informer inform(boolean multicast)
boolean isValidDetectionThresholdLevel(byte[] edt)
static final byte EPC_OPERATION_STATUS
static Getter getG(byte instanceCode)
byte[] getStandardVersionInformation()
synchronized boolean isValidProperty(EchoProperty property)
synchronized boolean setProperty(EchoProperty property)
boolean isValidFirstAidOccurrenceStatusResetting(byte[] edt)
byte[] getDetectionThresholdLevel()
abstract boolean setInstallationLocation(byte[] edt)
static final String MULTICAST_ADDRESS
static Setter setG(byte instanceCode)
static Setter setG(byte instanceCode, boolean responseRequired)
abstract byte[] getOperationStatus()
final boolean isSelfObject()
boolean isValidFirstAidOccurrenceStatus(byte[] edt)
abstract byte[] getFirstAidOccurrenceStatus()