16 package com.sonycsl.echo.eoj.device.sensor;
35 super.setupPropertyMaps();
47 Echo.getEventListener().onNewSnowSensor(
this);
179 if(edt == null || !(edt.length == 1))
return false;
234 if(edt == null || !(edt.length == 1))
return false;
240 boolean success = super.setProperty(property);
241 if(success)
return success;
243 switch(property.
epc) {
245 default :
return false;
251 byte[] edt = super.getProperty(epc);
252 if(edt != null)
return edt;
257 default :
return null;
263 boolean valid = super.isValidProperty(property);
264 if(valid)
return valid;
266 switch(property.
epc) {
269 default :
return false;
279 public Setter
set(
boolean responseRequired) {
281 ,
getNode().getAddressStr(), responseRequired);
285 public Getter
get() {
296 protected Informer
inform(
boolean multicast) {
301 address =
getNode().getAddressStr();
307 public static class Receiver
extends DeviceObject.Receiver {
310 protected boolean onSetProperty(
EchoObject eoj,
short tid, byte esv,
312 boolean ret = super.onSetProperty(eoj, tid, esv, property, success);
315 switch(property.epc) {
317 onSetDetectionThresholdLevel(eoj, tid, esv, property, success);
325 protected boolean onGetProperty(
EchoObject eoj,
short tid, byte esv,
327 boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
330 switch(property.epc) {
332 onGetDetectionThresholdLevel(eoj, tid, esv, property, success);
335 onGetSnowDetectionStatus(eoj, tid, esv, property, success);
365 protected void onSetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
389 protected void onGetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
415 protected void onGetSnowDetectionStatus(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
418 public static class Setter
extends DeviceObject.Setter {
419 public Setter(
short dstEchoClassCode, byte dstEchoInstanceCode
420 , String dstEchoAddress,
boolean responseRequired) {
421 super(dstEchoClassCode, dstEchoInstanceCode
422 , dstEchoAddress, responseRequired);
426 public Setter reqSetProperty(byte epc, byte[] edt) {
427 return (Setter)super.reqSetProperty(epc, edt);
431 public Setter reqSetOperationStatus(byte[] edt) {
432 return (Setter)super.reqSetOperationStatus(edt);
435 public Setter reqSetInstallationLocation(byte[] edt) {
436 return (Setter)super.reqSetInstallationLocation(edt);
439 public Setter reqSetCurrentLimitSetting(byte[] edt) {
440 return (Setter)super.reqSetCurrentLimitSetting(edt);
443 public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
444 return (Setter)super.reqSetPowerSavingOperationSetting(edt);
447 public Setter reqSetRemoteControlSetting(byte[] edt) {
448 return (Setter)super.reqSetRemoteControlSetting(edt);
451 public Setter reqSetCurrentTimeSetting(byte[] edt) {
452 return (Setter)super.reqSetCurrentTimeSetting(edt);
455 public Setter reqSetCurrentDateSetting(byte[] edt) {
456 return (Setter)super.reqSetCurrentDateSetting(edt);
459 public Setter reqSetPowerLimitSetting(byte[] edt) {
460 return (Setter)super.reqSetPowerLimitSetting(edt);
486 public Setter reqSetDetectionThresholdLevel(byte[] edt) {
492 public static class Getter
extends DeviceObject.Getter {
493 public Getter(
short dstEchoClassCode, byte dstEchoInstanceCode
494 , String dstEchoAddress) {
495 super(dstEchoClassCode, dstEchoInstanceCode
500 public Getter reqGetProperty(byte epc) {
501 return (Getter)super.reqGetProperty(epc);
505 public Getter reqGetOperationStatus() {
506 return (Getter)super.reqGetOperationStatus();
509 public Getter reqGetInstallationLocation() {
510 return (Getter)super.reqGetInstallationLocation();
513 public Getter reqGetStandardVersionInformation() {
514 return (Getter)super.reqGetStandardVersionInformation();
517 public Getter reqGetIdentificationNumber() {
518 return (Getter)super.reqGetIdentificationNumber();
521 public Getter reqGetMeasuredInstantaneousPowerConsumption() {
522 return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
525 public Getter reqGetMeasuredCumulativePowerConsumption() {
526 return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
529 public Getter reqGetManufacturersFaultCode() {
530 return (Getter)super.reqGetManufacturersFaultCode();
533 public Getter reqGetCurrentLimitSetting() {
534 return (Getter)super.reqGetCurrentLimitSetting();
537 public Getter reqGetFaultStatus() {
538 return (Getter)super.reqGetFaultStatus();
541 public Getter reqGetFaultDescription() {
542 return (Getter)super.reqGetFaultDescription();
545 public Getter reqGetManufacturerCode() {
546 return (Getter)super.reqGetManufacturerCode();
549 public Getter reqGetBusinessFacilityCode() {
550 return (Getter)super.reqGetBusinessFacilityCode();
553 public Getter reqGetProductCode() {
554 return (Getter)super.reqGetProductCode();
557 public Getter reqGetProductionNumber() {
558 return (Getter)super.reqGetProductionNumber();
561 public Getter reqGetProductionDate() {
562 return (Getter)super.reqGetProductionDate();
565 public Getter reqGetPowerSavingOperationSetting() {
566 return (Getter)super.reqGetPowerSavingOperationSetting();
569 public Getter reqGetRemoteControlSetting() {
570 return (Getter)super.reqGetRemoteControlSetting();
573 public Getter reqGetCurrentTimeSetting() {
574 return (Getter)super.reqGetCurrentTimeSetting();
577 public Getter reqGetCurrentDateSetting() {
578 return (Getter)super.reqGetCurrentDateSetting();
581 public Getter reqGetPowerLimitSetting() {
582 return (Getter)super.reqGetPowerLimitSetting();
585 public Getter reqGetCumulativeOperatingTime() {
586 return (Getter)super.reqGetCumulativeOperatingTime();
589 public Getter reqGetStatusChangeAnnouncementPropertyMap() {
590 return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
593 public Getter reqGetSetPropertyMap() {
594 return (Getter)super.reqGetSetPropertyMap();
597 public Getter reqGetGetPropertyMap() {
598 return (Getter)super.reqGetGetPropertyMap();
624 public Getter reqGetDetectionThresholdLevel() {
653 public Getter reqGetSnowDetectionStatus() {
659 public static class Informer
extends DeviceObject.Informer {
660 public Informer(
short echoClassCode, byte echoInstanceCode
662 super(echoClassCode, echoInstanceCode
663 , dstEchoAddress, isSelfObject);
667 public Informer reqInformProperty(byte epc) {
668 return (Informer)super.reqInformProperty(epc);
671 public Informer reqInformOperationStatus() {
672 return (Informer)super.reqInformOperationStatus();
675 public Informer reqInformInstallationLocation() {
676 return (Informer)super.reqInformInstallationLocation();
679 public Informer reqInformStandardVersionInformation() {
680 return (Informer)super.reqInformStandardVersionInformation();
683 public Informer reqInformIdentificationNumber() {
684 return (Informer)super.reqInformIdentificationNumber();
687 public Informer reqInformMeasuredInstantaneousPowerConsumption() {
688 return (Informer)super.reqInformMeasuredInstantaneousPowerConsumption();
691 public Informer reqInformMeasuredCumulativePowerConsumption() {
692 return (Informer)super.reqInformMeasuredCumulativePowerConsumption();
695 public Informer reqInformManufacturersFaultCode() {
696 return (Informer)super.reqInformManufacturersFaultCode();
699 public Informer reqInformCurrentLimitSetting() {
700 return (Informer)super.reqInformCurrentLimitSetting();
703 public Informer reqInformFaultStatus() {
704 return (Informer)super.reqInformFaultStatus();
707 public Informer reqInformFaultDescription() {
708 return (Informer)super.reqInformFaultDescription();
711 public Informer reqInformManufacturerCode() {
712 return (Informer)super.reqInformManufacturerCode();
715 public Informer reqInformBusinessFacilityCode() {
716 return (Informer)super.reqInformBusinessFacilityCode();
719 public Informer reqInformProductCode() {
720 return (Informer)super.reqInformProductCode();
723 public Informer reqInformProductionNumber() {
724 return (Informer)super.reqInformProductionNumber();
727 public Informer reqInformProductionDate() {
728 return (Informer)super.reqInformProductionDate();
731 public Informer reqInformPowerSavingOperationSetting() {
732 return (Informer)super.reqInformPowerSavingOperationSetting();
735 public Informer reqInformRemoteControlSetting() {
736 return (Informer)super.reqInformRemoteControlSetting();
739 public Informer reqInformCurrentTimeSetting() {
740 return (Informer)super.reqInformCurrentTimeSetting();
743 public Informer reqInformCurrentDateSetting() {
744 return (Informer)super.reqInformCurrentDateSetting();
747 public Informer reqInformPowerLimitSetting() {
748 return (Informer)super.reqInformPowerLimitSetting();
751 public Informer reqInformCumulativeOperatingTime() {
752 return (Informer)super.reqInformCumulativeOperatingTime();
755 public Informer reqInformStatusChangeAnnouncementPropertyMap() {
756 return (Informer)super.reqInformStatusChangeAnnouncementPropertyMap();
759 public Informer reqInformSetPropertyMap() {
760 return (Informer)super.reqInformSetPropertyMap();
763 public Informer reqInformGetPropertyMap() {
764 return (Informer)super.reqInformGetPropertyMap();
790 public Informer reqInformDetectionThresholdLevel() {
819 public Informer reqInformSnowDetectionStatus() {
825 public static class Proxy
extends SnowSensor {
826 public Proxy(byte instanceCode) {
851 return setG((byte)0);
854 public static Setter
setG(byte instanceCode) {
855 return setG(instanceCode,
true);
858 public static Setter
setG(
boolean responseRequired) {
859 return setG((byte)0, responseRequired);
862 public static Setter
setG(byte instanceCode,
boolean responseRequired) {
868 return getG((byte)0);
871 public static Getter
getG(byte instanceCode) {
880 public static Informer
informG(byte instanceCode) {
static Informer informG()
byte[] getDetectionThresholdLevel()
Informer inform(boolean multicast)
synchronized boolean setProperty(EchoProperty property)
boolean setDetectionThresholdLevel(byte[] edt)
static final short ECHO_CLASS_CODE
final void removeSetProperty(byte epc)
final void addStatusChangeAnnouncementProperty(byte epc)
abstract byte[] getInstallationLocation()
final void addGetProperty(byte epc)
static Getter getG(byte instanceCode)
static Setter setG(byte instanceCode, boolean responseRequired)
static Setter setG(byte instanceCode)
synchronized boolean isValidProperty(EchoProperty property)
static Informer informG(byte instanceCode)
static final byte EPC_DETECTION_THRESHOLD_LEVEL
abstract byte[] getFaultStatus()
Setter set(boolean responseRequired)
synchronized byte[] getProperty(byte epc)
boolean setOperationStatus(byte[] edt)
abstract byte[] getSnowDetectionStatus()
static Setter setG(boolean responseRequired)
static final byte EPC_SNOW_DETECTION_STATUS
abstract byte[] getManufacturerCode()
boolean isValidDetectionThresholdLevel(byte[] edt)
abstract byte[] getOperationStatus()
static final byte EPC_OPERATION_STATUS
byte[] getStandardVersionInformation()
abstract boolean setInstallationLocation(byte[] edt)
boolean isValidSnowDetectionStatus(byte[] edt)
static final String MULTICAST_ADDRESS
final boolean isSelfObject()