16 package com.sonycsl.echo.eoj.device.sensor;
35 super.setupPropertyMaps();
47 Echo.getEventListener().onNewCondensationSensor(
this);
174 if(edt == null || !(edt.length == 1))
return false;
229 if(edt == null || !(edt.length == 1))
return false;
235 boolean success = super.setProperty(property);
236 if(success)
return success;
238 switch(property.
epc) {
240 default :
return false;
246 byte[] edt = super.getProperty(epc);
247 if(edt != null)
return edt;
252 default :
return null;
258 boolean valid = super.isValidProperty(property);
259 if(valid)
return valid;
261 switch(property.
epc) {
264 default :
return false;
274 public Setter
set(
boolean responseRequired) {
276 ,
getNode().getAddressStr(), responseRequired);
280 public Getter
get() {
291 protected Informer
inform(
boolean multicast) {
296 address =
getNode().getAddressStr();
302 public static class Receiver
extends DeviceObject.Receiver {
305 protected boolean onSetProperty(
EchoObject eoj,
short tid, byte esv,
307 boolean ret = super.onSetProperty(eoj, tid, esv, property, success);
310 switch(property.epc) {
312 onSetDetectionThresholdLevel(eoj, tid, esv, property, success);
320 protected boolean onGetProperty(
EchoObject eoj,
short tid, byte esv,
322 boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
325 switch(property.epc) {
327 onGetDetectionThresholdLevel(eoj, tid, esv, property, success);
330 onGetCondensationDetectionStatus(eoj, tid, esv, property, success);
359 protected void onSetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
382 protected void onGetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
408 protected void onGetCondensationDetectionStatus(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
411 public static class Setter
extends DeviceObject.Setter {
412 public Setter(
short dstEchoClassCode, byte dstEchoInstanceCode
413 , String dstEchoAddress,
boolean responseRequired) {
414 super(dstEchoClassCode, dstEchoInstanceCode
415 , dstEchoAddress, responseRequired);
419 public Setter reqSetProperty(byte epc, byte[] edt) {
420 return (Setter)super.reqSetProperty(epc, edt);
424 public Setter reqSetOperationStatus(byte[] edt) {
425 return (Setter)super.reqSetOperationStatus(edt);
428 public Setter reqSetInstallationLocation(byte[] edt) {
429 return (Setter)super.reqSetInstallationLocation(edt);
432 public Setter reqSetCurrentLimitSetting(byte[] edt) {
433 return (Setter)super.reqSetCurrentLimitSetting(edt);
436 public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
437 return (Setter)super.reqSetPowerSavingOperationSetting(edt);
440 public Setter reqSetRemoteControlSetting(byte[] edt) {
441 return (Setter)super.reqSetRemoteControlSetting(edt);
444 public Setter reqSetCurrentTimeSetting(byte[] edt) {
445 return (Setter)super.reqSetCurrentTimeSetting(edt);
448 public Setter reqSetCurrentDateSetting(byte[] edt) {
449 return (Setter)super.reqSetCurrentDateSetting(edt);
452 public Setter reqSetPowerLimitSetting(byte[] edt) {
453 return (Setter)super.reqSetPowerLimitSetting(edt);
478 public Setter reqSetDetectionThresholdLevel(byte[] edt) {
484 public static class Getter
extends DeviceObject.Getter {
485 public Getter(
short dstEchoClassCode, byte dstEchoInstanceCode
486 , String dstEchoAddress) {
487 super(dstEchoClassCode, dstEchoInstanceCode
492 public Getter reqGetProperty(byte epc) {
493 return (Getter)super.reqGetProperty(epc);
497 public Getter reqGetOperationStatus() {
498 return (Getter)super.reqGetOperationStatus();
501 public Getter reqGetInstallationLocation() {
502 return (Getter)super.reqGetInstallationLocation();
505 public Getter reqGetStandardVersionInformation() {
506 return (Getter)super.reqGetStandardVersionInformation();
509 public Getter reqGetIdentificationNumber() {
510 return (Getter)super.reqGetIdentificationNumber();
513 public Getter reqGetMeasuredInstantaneousPowerConsumption() {
514 return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
517 public Getter reqGetMeasuredCumulativePowerConsumption() {
518 return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
521 public Getter reqGetManufacturersFaultCode() {
522 return (Getter)super.reqGetManufacturersFaultCode();
525 public Getter reqGetCurrentLimitSetting() {
526 return (Getter)super.reqGetCurrentLimitSetting();
529 public Getter reqGetFaultStatus() {
530 return (Getter)super.reqGetFaultStatus();
533 public Getter reqGetFaultDescription() {
534 return (Getter)super.reqGetFaultDescription();
537 public Getter reqGetManufacturerCode() {
538 return (Getter)super.reqGetManufacturerCode();
541 public Getter reqGetBusinessFacilityCode() {
542 return (Getter)super.reqGetBusinessFacilityCode();
545 public Getter reqGetProductCode() {
546 return (Getter)super.reqGetProductCode();
549 public Getter reqGetProductionNumber() {
550 return (Getter)super.reqGetProductionNumber();
553 public Getter reqGetProductionDate() {
554 return (Getter)super.reqGetProductionDate();
557 public Getter reqGetPowerSavingOperationSetting() {
558 return (Getter)super.reqGetPowerSavingOperationSetting();
561 public Getter reqGetRemoteControlSetting() {
562 return (Getter)super.reqGetRemoteControlSetting();
565 public Getter reqGetCurrentTimeSetting() {
566 return (Getter)super.reqGetCurrentTimeSetting();
569 public Getter reqGetCurrentDateSetting() {
570 return (Getter)super.reqGetCurrentDateSetting();
573 public Getter reqGetPowerLimitSetting() {
574 return (Getter)super.reqGetPowerLimitSetting();
577 public Getter reqGetCumulativeOperatingTime() {
578 return (Getter)super.reqGetCumulativeOperatingTime();
581 public Getter reqGetStatusChangeAnnouncementPropertyMap() {
582 return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
585 public Getter reqGetSetPropertyMap() {
586 return (Getter)super.reqGetSetPropertyMap();
589 public Getter reqGetGetPropertyMap() {
590 return (Getter)super.reqGetGetPropertyMap();
615 public Getter reqGetDetectionThresholdLevel() {
644 public Getter reqGetCondensationDetectionStatus() {
650 public static class Informer
extends DeviceObject.Informer {
651 public Informer(
short echoClassCode, byte echoInstanceCode
653 super(echoClassCode, echoInstanceCode
654 , dstEchoAddress, isSelfObject);
658 public Informer reqInformProperty(byte epc) {
659 return (Informer)super.reqInformProperty(epc);
662 public Informer reqInformOperationStatus() {
663 return (Informer)super.reqInformOperationStatus();
666 public Informer reqInformInstallationLocation() {
667 return (Informer)super.reqInformInstallationLocation();
670 public Informer reqInformStandardVersionInformation() {
671 return (Informer)super.reqInformStandardVersionInformation();
674 public Informer reqInformIdentificationNumber() {
675 return (Informer)super.reqInformIdentificationNumber();
678 public Informer reqInformMeasuredInstantaneousPowerConsumption() {
679 return (Informer)super.reqInformMeasuredInstantaneousPowerConsumption();
682 public Informer reqInformMeasuredCumulativePowerConsumption() {
683 return (Informer)super.reqInformMeasuredCumulativePowerConsumption();
686 public Informer reqInformManufacturersFaultCode() {
687 return (Informer)super.reqInformManufacturersFaultCode();
690 public Informer reqInformCurrentLimitSetting() {
691 return (Informer)super.reqInformCurrentLimitSetting();
694 public Informer reqInformFaultStatus() {
695 return (Informer)super.reqInformFaultStatus();
698 public Informer reqInformFaultDescription() {
699 return (Informer)super.reqInformFaultDescription();
702 public Informer reqInformManufacturerCode() {
703 return (Informer)super.reqInformManufacturerCode();
706 public Informer reqInformBusinessFacilityCode() {
707 return (Informer)super.reqInformBusinessFacilityCode();
710 public Informer reqInformProductCode() {
711 return (Informer)super.reqInformProductCode();
714 public Informer reqInformProductionNumber() {
715 return (Informer)super.reqInformProductionNumber();
718 public Informer reqInformProductionDate() {
719 return (Informer)super.reqInformProductionDate();
722 public Informer reqInformPowerSavingOperationSetting() {
723 return (Informer)super.reqInformPowerSavingOperationSetting();
726 public Informer reqInformRemoteControlSetting() {
727 return (Informer)super.reqInformRemoteControlSetting();
730 public Informer reqInformCurrentTimeSetting() {
731 return (Informer)super.reqInformCurrentTimeSetting();
734 public Informer reqInformCurrentDateSetting() {
735 return (Informer)super.reqInformCurrentDateSetting();
738 public Informer reqInformPowerLimitSetting() {
739 return (Informer)super.reqInformPowerLimitSetting();
742 public Informer reqInformCumulativeOperatingTime() {
743 return (Informer)super.reqInformCumulativeOperatingTime();
746 public Informer reqInformStatusChangeAnnouncementPropertyMap() {
747 return (Informer)super.reqInformStatusChangeAnnouncementPropertyMap();
750 public Informer reqInformSetPropertyMap() {
751 return (Informer)super.reqInformSetPropertyMap();
754 public Informer reqInformGetPropertyMap() {
755 return (Informer)super.reqInformGetPropertyMap();
780 public Informer reqInformDetectionThresholdLevel() {
809 public Informer reqInformCondensationDetectionStatus() {
815 public static class Proxy
extends CondensationSensor {
816 public Proxy(byte instanceCode) {
841 return setG((byte)0);
844 public static Setter
setG(byte instanceCode) {
845 return setG(instanceCode,
true);
848 public static Setter
setG(
boolean responseRequired) {
849 return setG((byte)0, responseRequired);
852 public static Setter
setG(byte instanceCode,
boolean responseRequired) {
858 return getG((byte)0);
861 public static Getter
getG(byte instanceCode) {
870 public static Informer
informG(byte instanceCode) {
abstract byte[] getCondensationDetectionStatus()
static Setter setG(byte instanceCode)
boolean isValidCondensationDetectionStatus(byte[] edt)
static Setter setG(byte instanceCode, boolean responseRequired)
final void removeSetProperty(byte epc)
final void addStatusChangeAnnouncementProperty(byte epc)
abstract byte[] getInstallationLocation()
synchronized byte[] getProperty(byte epc)
abstract byte[] getOperationStatus()
final void addGetProperty(byte epc)
static Setter setG(boolean responseRequired)
synchronized boolean isValidProperty(EchoProperty property)
abstract byte[] getFaultStatus()
Setter set(boolean responseRequired)
Informer inform(boolean multicast)
abstract byte[] getManufacturerCode()
static Informer informG(byte instanceCode)
static Getter getG(byte instanceCode)
boolean isValidDetectionThresholdLevel(byte[] edt)
static final byte EPC_CONDENSATION_DETECTION_STATUS
static final byte EPC_OPERATION_STATUS
byte[] getStandardVersionInformation()
static Informer informG()
boolean setDetectionThresholdLevel(byte[] edt)
static final short ECHO_CLASS_CODE
boolean setOperationStatus(byte[] edt)
synchronized boolean setProperty(EchoProperty property)
abstract boolean setInstallationLocation(byte[] edt)
static final byte EPC_DETECTION_THRESHOLD_LEVEL
static final String MULTICAST_ADDRESS
byte[] getDetectionThresholdLevel()
final boolean isSelfObject()