16 package com.sonycsl.echo.eoj.device.sensor;
36 super.setupPropertyMaps();
48 Echo.getEventListener().onNewCallSensor(
this);
175 if(edt == null || !(edt.length == 1))
return false;
228 if(edt == null || !(edt.length == 1))
return false;
303 if(edt == null || !(edt.length == 2))
return false;
309 boolean success = super.setProperty(property);
310 if(success)
return success;
312 switch(property.
epc) {
315 default :
return false;
321 byte[] edt = super.getProperty(epc);
322 if(edt != null)
return edt;
328 default :
return null;
334 boolean valid = super.isValidProperty(property);
335 if(valid)
return valid;
337 switch(property.
epc) {
341 default :
return false;
351 public Setter
set(
boolean responseRequired) {
353 ,
getNode().getAddressStr(), responseRequired);
357 public Getter
get() {
368 protected Informer
inform(
boolean multicast) {
373 address =
getNode().getAddressStr();
379 public static class Receiver
extends DeviceObject.Receiver {
382 protected boolean onSetProperty(
EchoObject eoj,
short tid, byte esv,
384 boolean ret = super.onSetProperty(eoj, tid, esv, property, success);
387 switch(property.epc) {
389 onSetDetectionThresholdLevel(eoj, tid, esv, property, success);
392 onSetCallHoldingTime(eoj, tid, esv, property, success);
400 protected boolean onGetProperty(
EchoObject eoj,
short tid, byte esv,
402 boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
405 switch(property.epc) {
407 onGetDetectionThresholdLevel(eoj, tid, esv, property, success);
410 onGetCallStatus(eoj, tid, esv, property, success);
413 onGetCallHoldingTime(eoj, tid, esv, property, success);
442 protected void onSetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
465 protected void onGetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
490 protected void onGetCallStatus(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
514 protected void onSetCallHoldingTime(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
538 protected void onGetCallHoldingTime(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
541 public static class Setter
extends DeviceObject.Setter {
542 public Setter(
short dstEchoClassCode, byte dstEchoInstanceCode
543 , String dstEchoAddress,
boolean responseRequired) {
544 super(dstEchoClassCode, dstEchoInstanceCode
545 , dstEchoAddress, responseRequired);
549 public Setter reqSetProperty(byte epc, byte[] edt) {
550 return (Setter)super.reqSetProperty(epc, edt);
554 public Setter reqSetOperationStatus(byte[] edt) {
555 return (Setter)super.reqSetOperationStatus(edt);
558 public Setter reqSetInstallationLocation(byte[] edt) {
559 return (Setter)super.reqSetInstallationLocation(edt);
562 public Setter reqSetCurrentLimitSetting(byte[] edt) {
563 return (Setter)super.reqSetCurrentLimitSetting(edt);
566 public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
567 return (Setter)super.reqSetPowerSavingOperationSetting(edt);
570 public Setter reqSetRemoteControlSetting(byte[] edt) {
571 return (Setter)super.reqSetRemoteControlSetting(edt);
574 public Setter reqSetCurrentTimeSetting(byte[] edt) {
575 return (Setter)super.reqSetCurrentTimeSetting(edt);
578 public Setter reqSetCurrentDateSetting(byte[] edt) {
579 return (Setter)super.reqSetCurrentDateSetting(edt);
582 public Setter reqSetPowerLimitSetting(byte[] edt) {
583 return (Setter)super.reqSetPowerLimitSetting(edt);
608 public Setter reqSetDetectionThresholdLevel(byte[] edt) {
635 public Setter reqSetCallHoldingTime(byte[] edt) {
641 public static class Getter
extends DeviceObject.Getter {
642 public Getter(
short dstEchoClassCode, byte dstEchoInstanceCode
643 , String dstEchoAddress) {
644 super(dstEchoClassCode, dstEchoInstanceCode
649 public Getter reqGetProperty(byte epc) {
650 return (Getter)super.reqGetProperty(epc);
654 public Getter reqGetOperationStatus() {
655 return (Getter)super.reqGetOperationStatus();
658 public Getter reqGetInstallationLocation() {
659 return (Getter)super.reqGetInstallationLocation();
662 public Getter reqGetStandardVersionInformation() {
663 return (Getter)super.reqGetStandardVersionInformation();
666 public Getter reqGetIdentificationNumber() {
667 return (Getter)super.reqGetIdentificationNumber();
670 public Getter reqGetMeasuredInstantaneousPowerConsumption() {
671 return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
674 public Getter reqGetMeasuredCumulativePowerConsumption() {
675 return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
678 public Getter reqGetManufacturersFaultCode() {
679 return (Getter)super.reqGetManufacturersFaultCode();
682 public Getter reqGetCurrentLimitSetting() {
683 return (Getter)super.reqGetCurrentLimitSetting();
686 public Getter reqGetFaultStatus() {
687 return (Getter)super.reqGetFaultStatus();
690 public Getter reqGetFaultDescription() {
691 return (Getter)super.reqGetFaultDescription();
694 public Getter reqGetManufacturerCode() {
695 return (Getter)super.reqGetManufacturerCode();
698 public Getter reqGetBusinessFacilityCode() {
699 return (Getter)super.reqGetBusinessFacilityCode();
702 public Getter reqGetProductCode() {
703 return (Getter)super.reqGetProductCode();
706 public Getter reqGetProductionNumber() {
707 return (Getter)super.reqGetProductionNumber();
710 public Getter reqGetProductionDate() {
711 return (Getter)super.reqGetProductionDate();
714 public Getter reqGetPowerSavingOperationSetting() {
715 return (Getter)super.reqGetPowerSavingOperationSetting();
718 public Getter reqGetRemoteControlSetting() {
719 return (Getter)super.reqGetRemoteControlSetting();
722 public Getter reqGetCurrentTimeSetting() {
723 return (Getter)super.reqGetCurrentTimeSetting();
726 public Getter reqGetCurrentDateSetting() {
727 return (Getter)super.reqGetCurrentDateSetting();
730 public Getter reqGetPowerLimitSetting() {
731 return (Getter)super.reqGetPowerLimitSetting();
734 public Getter reqGetCumulativeOperatingTime() {
735 return (Getter)super.reqGetCumulativeOperatingTime();
738 public Getter reqGetStatusChangeAnnouncementPropertyMap() {
739 return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
742 public Getter reqGetSetPropertyMap() {
743 return (Getter)super.reqGetSetPropertyMap();
746 public Getter reqGetGetPropertyMap() {
747 return (Getter)super.reqGetGetPropertyMap();
772 public Getter reqGetDetectionThresholdLevel() {
800 public Getter reqGetCallStatus() {
827 public Getter reqGetCallHoldingTime() {
833 public static class Informer
extends DeviceObject.Informer {
834 public Informer(
short echoClassCode, byte echoInstanceCode
836 super(echoClassCode, echoInstanceCode
837 , dstEchoAddress, isSelfObject);
841 public Informer reqInformProperty(byte epc) {
842 return (Informer)super.reqInformProperty(epc);
845 public Informer reqInformOperationStatus() {
846 return (Informer)super.reqInformOperationStatus();
849 public Informer reqInformInstallationLocation() {
850 return (Informer)super.reqInformInstallationLocation();
853 public Informer reqInformStandardVersionInformation() {
854 return (Informer)super.reqInformStandardVersionInformation();
857 public Informer reqInformIdentificationNumber() {
858 return (Informer)super.reqInformIdentificationNumber();
861 public Informer reqInformMeasuredInstantaneousPowerConsumption() {
862 return (Informer)super.reqInformMeasuredInstantaneousPowerConsumption();
865 public Informer reqInformMeasuredCumulativePowerConsumption() {
866 return (Informer)super.reqInformMeasuredCumulativePowerConsumption();
869 public Informer reqInformManufacturersFaultCode() {
870 return (Informer)super.reqInformManufacturersFaultCode();
873 public Informer reqInformCurrentLimitSetting() {
874 return (Informer)super.reqInformCurrentLimitSetting();
877 public Informer reqInformFaultStatus() {
878 return (Informer)super.reqInformFaultStatus();
881 public Informer reqInformFaultDescription() {
882 return (Informer)super.reqInformFaultDescription();
885 public Informer reqInformManufacturerCode() {
886 return (Informer)super.reqInformManufacturerCode();
889 public Informer reqInformBusinessFacilityCode() {
890 return (Informer)super.reqInformBusinessFacilityCode();
893 public Informer reqInformProductCode() {
894 return (Informer)super.reqInformProductCode();
897 public Informer reqInformProductionNumber() {
898 return (Informer)super.reqInformProductionNumber();
901 public Informer reqInformProductionDate() {
902 return (Informer)super.reqInformProductionDate();
905 public Informer reqInformPowerSavingOperationSetting() {
906 return (Informer)super.reqInformPowerSavingOperationSetting();
909 public Informer reqInformRemoteControlSetting() {
910 return (Informer)super.reqInformRemoteControlSetting();
913 public Informer reqInformCurrentTimeSetting() {
914 return (Informer)super.reqInformCurrentTimeSetting();
917 public Informer reqInformCurrentDateSetting() {
918 return (Informer)super.reqInformCurrentDateSetting();
921 public Informer reqInformPowerLimitSetting() {
922 return (Informer)super.reqInformPowerLimitSetting();
925 public Informer reqInformCumulativeOperatingTime() {
926 return (Informer)super.reqInformCumulativeOperatingTime();
929 public Informer reqInformStatusChangeAnnouncementPropertyMap() {
930 return (Informer)super.reqInformStatusChangeAnnouncementPropertyMap();
933 public Informer reqInformSetPropertyMap() {
934 return (Informer)super.reqInformSetPropertyMap();
937 public Informer reqInformGetPropertyMap() {
938 return (Informer)super.reqInformGetPropertyMap();
963 public Informer reqInformDetectionThresholdLevel() {
991 public Informer reqInformCallStatus() {
1018 public Informer reqInformCallHoldingTime() {
1024 public static class Proxy
extends CallSensor {
1025 public Proxy(byte instanceCode) {
1050 return setG((byte)0);
1053 public static Setter
setG(byte instanceCode) {
1054 return setG(instanceCode,
true);
1057 public static Setter
setG(
boolean responseRequired) {
1058 return setG((byte)0, responseRequired);
1061 public static Setter
setG(byte instanceCode,
boolean responseRequired) {
1067 return getG((byte)0);
1070 public static Getter
getG(byte instanceCode) {
1079 public static Informer
informG(byte instanceCode) {
synchronized boolean setProperty(EchoProperty property)
Setter set(boolean responseRequired)
boolean setCallHoldingTime(byte[] edt)
static Setter setG(byte instanceCode)
Informer inform(boolean multicast)
abstract byte[] getOperationStatus()
boolean isValidCallStatus(byte[] edt)
static final byte EPC_CALL_STATUS
final void removeSetProperty(byte epc)
abstract byte[] getCallStatus()
final void addStatusChangeAnnouncementProperty(byte epc)
abstract byte[] getInstallationLocation()
final void addGetProperty(byte epc)
static Getter getG(byte instanceCode)
synchronized boolean isValidProperty(EchoProperty property)
abstract byte[] getFaultStatus()
static final byte EPC_DETECTION_THRESHOLD_LEVEL
abstract byte[] getManufacturerCode()
synchronized byte[] getProperty(byte epc)
static Setter setG(byte instanceCode, boolean responseRequired)
byte[] getDetectionThresholdLevel()
boolean setOperationStatus(byte[] edt)
static Informer informG(byte instanceCode)
byte[] getCallHoldingTime()
boolean setDetectionThresholdLevel(byte[] edt)
static final byte EPC_OPERATION_STATUS
byte[] getStandardVersionInformation()
static final short ECHO_CLASS_CODE
static Setter setG(boolean responseRequired)
abstract boolean setInstallationLocation(byte[] edt)
boolean isValidDetectionThresholdLevel(byte[] edt)
static final String MULTICAST_ADDRESS
static final byte EPC_CALL_HOLDING_TIME
final boolean isSelfObject()
static Informer informG()
boolean isValidCallHoldingTime(byte[] edt)