16 package com.sonycsl.echo.eoj.device.sensor;
36 super.setupPropertyMaps();
49 Echo.getEventListener().onNewOpenCloseSensor(
this);
157 if(edt == null || !(edt.length == 1))
return false;
229 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) {
295 default :
return false;
301 byte[] edt = super.getProperty(epc);
302 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);
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 onGetDegreeOfOpeniNgDetectionStatus1(eoj, tid, esv, property, success);
387 onGetDetectionThresholdLevel(eoj, tid, esv, property, success);
390 onGetDegreeOfOpeniNgDetectionStatus2(eoj, tid, esv, property, success);
421 protected void onGetDegreeOfOpeniNgDetectionStatus1(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
444 protected void onSetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
467 protected void onGetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
493 protected void onGetDegreeOfOpeniNgDetectionStatus2(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
496 public static class Setter
extends DeviceObject.Setter {
497 public Setter(
short dstEchoClassCode, byte dstEchoInstanceCode
498 , String dstEchoAddress,
boolean responseRequired) {
499 super(dstEchoClassCode, dstEchoInstanceCode
500 , dstEchoAddress, responseRequired);
504 public Setter reqSetProperty(byte epc, byte[] edt) {
505 return (Setter)super.reqSetProperty(epc, edt);
509 public Setter reqSetOperationStatus(byte[] edt) {
510 return (Setter)super.reqSetOperationStatus(edt);
513 public Setter reqSetInstallationLocation(byte[] edt) {
514 return (Setter)super.reqSetInstallationLocation(edt);
517 public Setter reqSetCurrentLimitSetting(byte[] edt) {
518 return (Setter)super.reqSetCurrentLimitSetting(edt);
521 public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
522 return (Setter)super.reqSetPowerSavingOperationSetting(edt);
525 public Setter reqSetRemoteControlSetting(byte[] edt) {
526 return (Setter)super.reqSetRemoteControlSetting(edt);
529 public Setter reqSetCurrentTimeSetting(byte[] edt) {
530 return (Setter)super.reqSetCurrentTimeSetting(edt);
533 public Setter reqSetCurrentDateSetting(byte[] edt) {
534 return (Setter)super.reqSetCurrentDateSetting(edt);
537 public Setter reqSetPowerLimitSetting(byte[] edt) {
538 return (Setter)super.reqSetPowerLimitSetting(edt);
563 public Setter reqSetDetectionThresholdLevel(byte[] edt) {
569 public static class Getter
extends DeviceObject.Getter {
570 public Getter(
short dstEchoClassCode, byte dstEchoInstanceCode
571 , String dstEchoAddress) {
572 super(dstEchoClassCode, dstEchoInstanceCode
577 public Getter reqGetProperty(byte epc) {
578 return (Getter)super.reqGetProperty(epc);
582 public Getter reqGetOperationStatus() {
583 return (Getter)super.reqGetOperationStatus();
586 public Getter reqGetInstallationLocation() {
587 return (Getter)super.reqGetInstallationLocation();
590 public Getter reqGetStandardVersionInformation() {
591 return (Getter)super.reqGetStandardVersionInformation();
594 public Getter reqGetIdentificationNumber() {
595 return (Getter)super.reqGetIdentificationNumber();
598 public Getter reqGetMeasuredInstantaneousPowerConsumption() {
599 return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
602 public Getter reqGetMeasuredCumulativePowerConsumption() {
603 return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
606 public Getter reqGetManufacturersFaultCode() {
607 return (Getter)super.reqGetManufacturersFaultCode();
610 public Getter reqGetCurrentLimitSetting() {
611 return (Getter)super.reqGetCurrentLimitSetting();
614 public Getter reqGetFaultStatus() {
615 return (Getter)super.reqGetFaultStatus();
618 public Getter reqGetFaultDescription() {
619 return (Getter)super.reqGetFaultDescription();
622 public Getter reqGetManufacturerCode() {
623 return (Getter)super.reqGetManufacturerCode();
626 public Getter reqGetBusinessFacilityCode() {
627 return (Getter)super.reqGetBusinessFacilityCode();
630 public Getter reqGetProductCode() {
631 return (Getter)super.reqGetProductCode();
634 public Getter reqGetProductionNumber() {
635 return (Getter)super.reqGetProductionNumber();
638 public Getter reqGetProductionDate() {
639 return (Getter)super.reqGetProductionDate();
642 public Getter reqGetPowerSavingOperationSetting() {
643 return (Getter)super.reqGetPowerSavingOperationSetting();
646 public Getter reqGetRemoteControlSetting() {
647 return (Getter)super.reqGetRemoteControlSetting();
650 public Getter reqGetCurrentTimeSetting() {
651 return (Getter)super.reqGetCurrentTimeSetting();
654 public Getter reqGetCurrentDateSetting() {
655 return (Getter)super.reqGetCurrentDateSetting();
658 public Getter reqGetPowerLimitSetting() {
659 return (Getter)super.reqGetPowerLimitSetting();
662 public Getter reqGetCumulativeOperatingTime() {
663 return (Getter)super.reqGetCumulativeOperatingTime();
666 public Getter reqGetStatusChangeAnnouncementPropertyMap() {
667 return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
670 public Getter reqGetSetPropertyMap() {
671 return (Getter)super.reqGetSetPropertyMap();
674 public Getter reqGetGetPropertyMap() {
675 return (Getter)super.reqGetGetPropertyMap();
702 public Getter reqGetDegreeOfOpeniNgDetectionStatus1() {
728 public Getter reqGetDetectionThresholdLevel() {
757 public Getter reqGetDegreeOfOpeniNgDetectionStatus2() {
763 public static class Informer
extends DeviceObject.Informer {
764 public Informer(
short echoClassCode, byte echoInstanceCode
766 super(echoClassCode, echoInstanceCode
767 , dstEchoAddress, isSelfObject);
771 public Informer reqInformProperty(byte epc) {
772 return (Informer)super.reqInformProperty(epc);
775 public Informer reqInformOperationStatus() {
776 return (Informer)super.reqInformOperationStatus();
779 public Informer reqInformInstallationLocation() {
780 return (Informer)super.reqInformInstallationLocation();
783 public Informer reqInformStandardVersionInformation() {
784 return (Informer)super.reqInformStandardVersionInformation();
787 public Informer reqInformIdentificationNumber() {
788 return (Informer)super.reqInformIdentificationNumber();
791 public Informer reqInformMeasuredInstantaneousPowerConsumption() {
792 return (Informer)super.reqInformMeasuredInstantaneousPowerConsumption();
795 public Informer reqInformMeasuredCumulativePowerConsumption() {
796 return (Informer)super.reqInformMeasuredCumulativePowerConsumption();
799 public Informer reqInformManufacturersFaultCode() {
800 return (Informer)super.reqInformManufacturersFaultCode();
803 public Informer reqInformCurrentLimitSetting() {
804 return (Informer)super.reqInformCurrentLimitSetting();
807 public Informer reqInformFaultStatus() {
808 return (Informer)super.reqInformFaultStatus();
811 public Informer reqInformFaultDescription() {
812 return (Informer)super.reqInformFaultDescription();
815 public Informer reqInformManufacturerCode() {
816 return (Informer)super.reqInformManufacturerCode();
819 public Informer reqInformBusinessFacilityCode() {
820 return (Informer)super.reqInformBusinessFacilityCode();
823 public Informer reqInformProductCode() {
824 return (Informer)super.reqInformProductCode();
827 public Informer reqInformProductionNumber() {
828 return (Informer)super.reqInformProductionNumber();
831 public Informer reqInformProductionDate() {
832 return (Informer)super.reqInformProductionDate();
835 public Informer reqInformPowerSavingOperationSetting() {
836 return (Informer)super.reqInformPowerSavingOperationSetting();
839 public Informer reqInformRemoteControlSetting() {
840 return (Informer)super.reqInformRemoteControlSetting();
843 public Informer reqInformCurrentTimeSetting() {
844 return (Informer)super.reqInformCurrentTimeSetting();
847 public Informer reqInformCurrentDateSetting() {
848 return (Informer)super.reqInformCurrentDateSetting();
851 public Informer reqInformPowerLimitSetting() {
852 return (Informer)super.reqInformPowerLimitSetting();
855 public Informer reqInformCumulativeOperatingTime() {
856 return (Informer)super.reqInformCumulativeOperatingTime();
859 public Informer reqInformStatusChangeAnnouncementPropertyMap() {
860 return (Informer)super.reqInformStatusChangeAnnouncementPropertyMap();
863 public Informer reqInformSetPropertyMap() {
864 return (Informer)super.reqInformSetPropertyMap();
867 public Informer reqInformGetPropertyMap() {
868 return (Informer)super.reqInformGetPropertyMap();
895 public Informer reqInformDegreeOfOpeniNgDetectionStatus1() {
921 public Informer reqInformDetectionThresholdLevel() {
950 public Informer reqInformDegreeOfOpeniNgDetectionStatus2() {
956 public static class Proxy
extends OpenCloseSensor {
957 public Proxy(byte instanceCode) {
984 return setG((byte)0);
987 public static Setter
setG(byte instanceCode) {
988 return setG(instanceCode,
true);
991 public static Setter
setG(
boolean responseRequired) {
992 return setG((byte)0, responseRequired);
995 public static Setter
setG(byte instanceCode,
boolean responseRequired) {
1001 return getG((byte)0);
1004 public static Getter
getG(byte instanceCode) {
1013 public static Informer
informG(byte instanceCode) {
abstract byte[] getDegreeOfOpeniNgDetectionStatus2()
final void removeSetProperty(byte epc)
static Setter setG(byte instanceCode)
final void addStatusChangeAnnouncementProperty(byte epc)
abstract byte[] getInstallationLocation()
static Setter setG(byte instanceCode, boolean responseRequired)
boolean setOperationStatus(byte[] edt)
final void addGetProperty(byte epc)
abstract byte[] getOperationStatus()
static final byte EPC_DEGREE_OF_OPENI_NG_DETECTION_STATUS1
Setter set(boolean responseRequired)
static Setter setG(boolean responseRequired)
synchronized byte[] getProperty(byte epc)
static Informer informG()
static final byte EPC_DETECTION_THRESHOLD_LEVEL
abstract byte[] getFaultStatus()
abstract byte[] getManufacturerCode()
synchronized boolean setProperty(EchoProperty property)
static Getter getG(byte instanceCode)
boolean setDetectionThresholdLevel(byte[] edt)
boolean isValidDegreeOfOpeniNgDetectionStatus1(byte[] edt)
abstract byte[] getDegreeOfOpeniNgDetectionStatus1()
static final short ECHO_CLASS_CODE
static final byte EPC_OPERATION_STATUS
byte[] getStandardVersionInformation()
boolean isValidDegreeOfOpeniNgDetectionStatus2(byte[] edt)
static Informer informG(byte instanceCode)
Informer inform(boolean multicast)
byte[] getDetectionThresholdLevel()
static final byte EPC_DEGREE_OF_OPENI_NG_DETECTION_STATUS2
abstract boolean setInstallationLocation(byte[] edt)
static final String MULTICAST_ADDRESS
boolean isValidDetectionThresholdLevel(byte[] edt)
final boolean isSelfObject()
synchronized boolean isValidProperty(EchoProperty property)