16 package com.sonycsl.echo.eoj.device.sensor;
35 super.setupPropertyMaps();
47 Echo.getEventListener().onNewMailingSensor(
this);
174 if(edt == null || !(edt.length == 1))
return false;
233 if(edt == null || !(edt.length == 1))
return false;
239 boolean success = super.setProperty(property);
240 if(success)
return success;
242 switch(property.
epc) {
244 default :
return false;
250 byte[] edt = super.getProperty(epc);
251 if(edt != null)
return edt;
256 default :
return null;
262 boolean valid = super.isValidProperty(property);
263 if(valid)
return valid;
265 switch(property.
epc) {
268 default :
return false;
278 public Setter
set(
boolean responseRequired) {
280 ,
getNode().getAddressStr(), responseRequired);
284 public Getter
get() {
295 protected Informer
inform(
boolean multicast) {
300 address =
getNode().getAddressStr();
306 public static class Receiver
extends DeviceObject.Receiver {
309 protected boolean onSetProperty(
EchoObject eoj,
short tid, byte esv,
311 boolean ret = super.onSetProperty(eoj, tid, esv, property, success);
314 switch(property.epc) {
316 onSetDetectionThresholdLevel(eoj, tid, esv, property, success);
324 protected boolean onGetProperty(
EchoObject eoj,
short tid, byte esv,
326 boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
329 switch(property.epc) {
331 onGetDetectionThresholdLevel(eoj, tid, esv, property, success);
334 onGetMailingDetectionStatus(eoj, tid, esv, property, success);
363 protected void onSetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
386 protected void onGetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
414 protected void onGetMailingDetectionStatus(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
417 public static class Setter
extends DeviceObject.Setter {
418 public Setter(
short dstEchoClassCode, byte dstEchoInstanceCode
419 , String dstEchoAddress,
boolean responseRequired) {
420 super(dstEchoClassCode, dstEchoInstanceCode
421 , dstEchoAddress, responseRequired);
425 public Setter reqSetProperty(byte epc, byte[] edt) {
426 return (Setter)super.reqSetProperty(epc, edt);
430 public Setter reqSetOperationStatus(byte[] edt) {
431 return (Setter)super.reqSetOperationStatus(edt);
434 public Setter reqSetInstallationLocation(byte[] edt) {
435 return (Setter)super.reqSetInstallationLocation(edt);
438 public Setter reqSetCurrentLimitSetting(byte[] edt) {
439 return (Setter)super.reqSetCurrentLimitSetting(edt);
442 public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
443 return (Setter)super.reqSetPowerSavingOperationSetting(edt);
446 public Setter reqSetRemoteControlSetting(byte[] edt) {
447 return (Setter)super.reqSetRemoteControlSetting(edt);
450 public Setter reqSetCurrentTimeSetting(byte[] edt) {
451 return (Setter)super.reqSetCurrentTimeSetting(edt);
454 public Setter reqSetCurrentDateSetting(byte[] edt) {
455 return (Setter)super.reqSetCurrentDateSetting(edt);
458 public Setter reqSetPowerLimitSetting(byte[] edt) {
459 return (Setter)super.reqSetPowerLimitSetting(edt);
484 public Setter reqSetDetectionThresholdLevel(byte[] edt) {
490 public static class Getter
extends DeviceObject.Getter {
491 public Getter(
short dstEchoClassCode, byte dstEchoInstanceCode
492 , String dstEchoAddress) {
493 super(dstEchoClassCode, dstEchoInstanceCode
498 public Getter reqGetProperty(byte epc) {
499 return (Getter)super.reqGetProperty(epc);
503 public Getter reqGetOperationStatus() {
504 return (Getter)super.reqGetOperationStatus();
507 public Getter reqGetInstallationLocation() {
508 return (Getter)super.reqGetInstallationLocation();
511 public Getter reqGetStandardVersionInformation() {
512 return (Getter)super.reqGetStandardVersionInformation();
515 public Getter reqGetIdentificationNumber() {
516 return (Getter)super.reqGetIdentificationNumber();
519 public Getter reqGetMeasuredInstantaneousPowerConsumption() {
520 return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
523 public Getter reqGetMeasuredCumulativePowerConsumption() {
524 return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
527 public Getter reqGetManufacturersFaultCode() {
528 return (Getter)super.reqGetManufacturersFaultCode();
531 public Getter reqGetCurrentLimitSetting() {
532 return (Getter)super.reqGetCurrentLimitSetting();
535 public Getter reqGetFaultStatus() {
536 return (Getter)super.reqGetFaultStatus();
539 public Getter reqGetFaultDescription() {
540 return (Getter)super.reqGetFaultDescription();
543 public Getter reqGetManufacturerCode() {
544 return (Getter)super.reqGetManufacturerCode();
547 public Getter reqGetBusinessFacilityCode() {
548 return (Getter)super.reqGetBusinessFacilityCode();
551 public Getter reqGetProductCode() {
552 return (Getter)super.reqGetProductCode();
555 public Getter reqGetProductionNumber() {
556 return (Getter)super.reqGetProductionNumber();
559 public Getter reqGetProductionDate() {
560 return (Getter)super.reqGetProductionDate();
563 public Getter reqGetPowerSavingOperationSetting() {
564 return (Getter)super.reqGetPowerSavingOperationSetting();
567 public Getter reqGetRemoteControlSetting() {
568 return (Getter)super.reqGetRemoteControlSetting();
571 public Getter reqGetCurrentTimeSetting() {
572 return (Getter)super.reqGetCurrentTimeSetting();
575 public Getter reqGetCurrentDateSetting() {
576 return (Getter)super.reqGetCurrentDateSetting();
579 public Getter reqGetPowerLimitSetting() {
580 return (Getter)super.reqGetPowerLimitSetting();
583 public Getter reqGetCumulativeOperatingTime() {
584 return (Getter)super.reqGetCumulativeOperatingTime();
587 public Getter reqGetStatusChangeAnnouncementPropertyMap() {
588 return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
591 public Getter reqGetSetPropertyMap() {
592 return (Getter)super.reqGetSetPropertyMap();
595 public Getter reqGetGetPropertyMap() {
596 return (Getter)super.reqGetGetPropertyMap();
621 public Getter reqGetDetectionThresholdLevel() {
652 public Getter reqGetMailingDetectionStatus() {
658 public static class Informer
extends DeviceObject.Informer {
659 public Informer(
short echoClassCode, byte echoInstanceCode
661 super(echoClassCode, echoInstanceCode
662 , dstEchoAddress, isSelfObject);
666 public Informer reqInformProperty(byte epc) {
667 return (Informer)super.reqInformProperty(epc);
670 public Informer reqInformOperationStatus() {
671 return (Informer)super.reqInformOperationStatus();
674 public Informer reqInformInstallationLocation() {
675 return (Informer)super.reqInformInstallationLocation();
678 public Informer reqInformStandardVersionInformation() {
679 return (Informer)super.reqInformStandardVersionInformation();
682 public Informer reqInformIdentificationNumber() {
683 return (Informer)super.reqInformIdentificationNumber();
686 public Informer reqInformMeasuredInstantaneousPowerConsumption() {
687 return (Informer)super.reqInformMeasuredInstantaneousPowerConsumption();
690 public Informer reqInformMeasuredCumulativePowerConsumption() {
691 return (Informer)super.reqInformMeasuredCumulativePowerConsumption();
694 public Informer reqInformManufacturersFaultCode() {
695 return (Informer)super.reqInformManufacturersFaultCode();
698 public Informer reqInformCurrentLimitSetting() {
699 return (Informer)super.reqInformCurrentLimitSetting();
702 public Informer reqInformFaultStatus() {
703 return (Informer)super.reqInformFaultStatus();
706 public Informer reqInformFaultDescription() {
707 return (Informer)super.reqInformFaultDescription();
710 public Informer reqInformManufacturerCode() {
711 return (Informer)super.reqInformManufacturerCode();
714 public Informer reqInformBusinessFacilityCode() {
715 return (Informer)super.reqInformBusinessFacilityCode();
718 public Informer reqInformProductCode() {
719 return (Informer)super.reqInformProductCode();
722 public Informer reqInformProductionNumber() {
723 return (Informer)super.reqInformProductionNumber();
726 public Informer reqInformProductionDate() {
727 return (Informer)super.reqInformProductionDate();
730 public Informer reqInformPowerSavingOperationSetting() {
731 return (Informer)super.reqInformPowerSavingOperationSetting();
734 public Informer reqInformRemoteControlSetting() {
735 return (Informer)super.reqInformRemoteControlSetting();
738 public Informer reqInformCurrentTimeSetting() {
739 return (Informer)super.reqInformCurrentTimeSetting();
742 public Informer reqInformCurrentDateSetting() {
743 return (Informer)super.reqInformCurrentDateSetting();
746 public Informer reqInformPowerLimitSetting() {
747 return (Informer)super.reqInformPowerLimitSetting();
750 public Informer reqInformCumulativeOperatingTime() {
751 return (Informer)super.reqInformCumulativeOperatingTime();
754 public Informer reqInformStatusChangeAnnouncementPropertyMap() {
755 return (Informer)super.reqInformStatusChangeAnnouncementPropertyMap();
758 public Informer reqInformSetPropertyMap() {
759 return (Informer)super.reqInformSetPropertyMap();
762 public Informer reqInformGetPropertyMap() {
763 return (Informer)super.reqInformGetPropertyMap();
788 public Informer reqInformDetectionThresholdLevel() {
819 public Informer reqInformMailingDetectionStatus() {
825 public static class Proxy
extends MailingSensor {
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) {
boolean setDetectionThresholdLevel(byte[] edt)
synchronized byte[] getProperty(byte epc)
byte[] getDetectionThresholdLevel()
final void removeSetProperty(byte epc)
final void addStatusChangeAnnouncementProperty(byte epc)
abstract byte[] getInstallationLocation()
final void addGetProperty(byte epc)
static final short ECHO_CLASS_CODE
static Getter getG(byte instanceCode)
boolean isValidDetectionThresholdLevel(byte[] edt)
static Setter setG(boolean responseRequired)
abstract byte[] getFaultStatus()
static Setter setG(byte instanceCode, boolean responseRequired)
abstract byte[] getOperationStatus()
Informer inform(boolean multicast)
abstract byte[] getManufacturerCode()
static Setter setG(byte instanceCode)
boolean setOperationStatus(byte[] edt)
synchronized boolean isValidProperty(EchoProperty property)
boolean isValidMailingDetectionStatus(byte[] edt)
static final byte EPC_MAILING_DETECTION_STATUS
static Informer informG(byte instanceCode)
synchronized boolean setProperty(EchoProperty property)
static final byte EPC_OPERATION_STATUS
byte[] getStandardVersionInformation()
abstract byte[] getMailingDetectionStatus()
Setter set(boolean responseRequired)
static Informer informG()
abstract boolean setInstallationLocation(byte[] edt)
static final String MULTICAST_ADDRESS
final boolean isSelfObject()
static final byte EPC_DETECTION_THRESHOLD_LEVEL