16 package com.sonycsl.echo.eoj.device.sensor;
38 super.setupPropertyMaps();
50 Echo.getEventListener().onNewMicromotionSensor(
this);
177 if(edt == null || !(edt.length == 1))
return false;
230 if(edt == null || !(edt.length == 1))
return false;
302 if(edt == null || !(edt.length == 2))
return false;
374 if(edt == null || !(edt.length == 2))
return false;
446 if(edt == null || !(edt.length == 2))
return false;
452 boolean success = super.setProperty(property);
453 if(success)
return success;
455 switch(property.
epc) {
460 default :
return false;
466 byte[] edt = super.getProperty(epc);
467 if(edt != null)
return edt;
475 default :
return null;
481 boolean valid = super.isValidProperty(property);
482 if(valid)
return valid;
484 switch(property.
epc) {
490 default :
return false;
500 public Setter
set(
boolean responseRequired) {
502 ,
getNode().getAddressStr(), responseRequired);
506 public Getter
get() {
517 protected Informer
inform(
boolean multicast) {
522 address =
getNode().getAddressStr();
528 public static class Receiver
extends DeviceObject.Receiver {
531 protected boolean onSetProperty(
EchoObject eoj,
short tid, byte esv,
533 boolean ret = super.onSetProperty(eoj, tid, esv, property, success);
536 switch(property.epc) {
538 onSetDetectionThresholdLevel(eoj, tid, esv, property, success);
541 onSetDetectionCounter(eoj, tid, esv, property, success);
544 onSetSamplingCount(eoj, tid, esv, property, success);
547 onSetSamplingCycle(eoj, tid, esv, property, success);
555 protected boolean onGetProperty(
EchoObject eoj,
short tid, byte esv,
557 boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
560 switch(property.epc) {
562 onGetDetectionThresholdLevel(eoj, tid, esv, property, success);
565 onGetMicromotionDetectionStatus(eoj, tid, esv, property, success);
568 onGetDetectionCounter(eoj, tid, esv, property, success);
571 onGetSamplingCount(eoj, tid, esv, property, success);
574 onGetSamplingCycle(eoj, tid, esv, property, success);
603 protected void onSetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
626 protected void onGetDetectionThresholdLevel(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
651 protected void onGetMicromotionDetectionStatus(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
674 protected void onSetDetectionCounter(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
697 protected void onGetDetectionCounter(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
720 protected void onSetSamplingCount(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
743 protected void onGetSamplingCount(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
766 protected void onSetSamplingCycle(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
789 protected void onGetSamplingCycle(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
792 public static class Setter
extends DeviceObject.Setter {
793 public Setter(
short dstEchoClassCode, byte dstEchoInstanceCode
794 , String dstEchoAddress,
boolean responseRequired) {
795 super(dstEchoClassCode, dstEchoInstanceCode
796 , dstEchoAddress, responseRequired);
800 public Setter reqSetProperty(byte epc, byte[] edt) {
801 return (Setter)super.reqSetProperty(epc, edt);
805 public Setter reqSetOperationStatus(byte[] edt) {
806 return (Setter)super.reqSetOperationStatus(edt);
809 public Setter reqSetInstallationLocation(byte[] edt) {
810 return (Setter)super.reqSetInstallationLocation(edt);
813 public Setter reqSetCurrentLimitSetting(byte[] edt) {
814 return (Setter)super.reqSetCurrentLimitSetting(edt);
817 public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
818 return (Setter)super.reqSetPowerSavingOperationSetting(edt);
821 public Setter reqSetRemoteControlSetting(byte[] edt) {
822 return (Setter)super.reqSetRemoteControlSetting(edt);
825 public Setter reqSetCurrentTimeSetting(byte[] edt) {
826 return (Setter)super.reqSetCurrentTimeSetting(edt);
829 public Setter reqSetCurrentDateSetting(byte[] edt) {
830 return (Setter)super.reqSetCurrentDateSetting(edt);
833 public Setter reqSetPowerLimitSetting(byte[] edt) {
834 return (Setter)super.reqSetPowerLimitSetting(edt);
859 public Setter reqSetDetectionThresholdLevel(byte[] edt) {
885 public Setter reqSetDetectionCounter(byte[] edt) {
911 public Setter reqSetSamplingCount(byte[] edt) {
937 public Setter reqSetSamplingCycle(byte[] edt) {
943 public static class Getter
extends DeviceObject.Getter {
944 public Getter(
short dstEchoClassCode, byte dstEchoInstanceCode
945 , String dstEchoAddress) {
946 super(dstEchoClassCode, dstEchoInstanceCode
951 public Getter reqGetProperty(byte epc) {
952 return (Getter)super.reqGetProperty(epc);
956 public Getter reqGetOperationStatus() {
957 return (Getter)super.reqGetOperationStatus();
960 public Getter reqGetInstallationLocation() {
961 return (Getter)super.reqGetInstallationLocation();
964 public Getter reqGetStandardVersionInformation() {
965 return (Getter)super.reqGetStandardVersionInformation();
968 public Getter reqGetIdentificationNumber() {
969 return (Getter)super.reqGetIdentificationNumber();
972 public Getter reqGetMeasuredInstantaneousPowerConsumption() {
973 return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
976 public Getter reqGetMeasuredCumulativePowerConsumption() {
977 return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
980 public Getter reqGetManufacturersFaultCode() {
981 return (Getter)super.reqGetManufacturersFaultCode();
984 public Getter reqGetCurrentLimitSetting() {
985 return (Getter)super.reqGetCurrentLimitSetting();
988 public Getter reqGetFaultStatus() {
989 return (Getter)super.reqGetFaultStatus();
992 public Getter reqGetFaultDescription() {
993 return (Getter)super.reqGetFaultDescription();
996 public Getter reqGetManufacturerCode() {
997 return (Getter)super.reqGetManufacturerCode();
1000 public Getter reqGetBusinessFacilityCode() {
1001 return (Getter)super.reqGetBusinessFacilityCode();
1004 public Getter reqGetProductCode() {
1005 return (Getter)super.reqGetProductCode();
1008 public Getter reqGetProductionNumber() {
1009 return (Getter)super.reqGetProductionNumber();
1012 public Getter reqGetProductionDate() {
1013 return (Getter)super.reqGetProductionDate();
1016 public Getter reqGetPowerSavingOperationSetting() {
1017 return (Getter)super.reqGetPowerSavingOperationSetting();
1020 public Getter reqGetRemoteControlSetting() {
1021 return (Getter)super.reqGetRemoteControlSetting();
1024 public Getter reqGetCurrentTimeSetting() {
1025 return (Getter)super.reqGetCurrentTimeSetting();
1028 public Getter reqGetCurrentDateSetting() {
1029 return (Getter)super.reqGetCurrentDateSetting();
1032 public Getter reqGetPowerLimitSetting() {
1033 return (Getter)super.reqGetPowerLimitSetting();
1036 public Getter reqGetCumulativeOperatingTime() {
1037 return (Getter)super.reqGetCumulativeOperatingTime();
1040 public Getter reqGetStatusChangeAnnouncementPropertyMap() {
1041 return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
1044 public Getter reqGetSetPropertyMap() {
1045 return (Getter)super.reqGetSetPropertyMap();
1048 public Getter reqGetGetPropertyMap() {
1049 return (Getter)super.reqGetGetPropertyMap();
1074 public Getter reqGetDetectionThresholdLevel() {
1102 public Getter reqGetMicromotionDetectionStatus() {
1128 public Getter reqGetDetectionCounter() {
1154 public Getter reqGetSamplingCount() {
1180 public Getter reqGetSamplingCycle() {
1186 public static class Informer
extends DeviceObject.Informer {
1187 public Informer(
short echoClassCode, byte echoInstanceCode
1189 super(echoClassCode, echoInstanceCode
1190 , dstEchoAddress, isSelfObject);
1194 public Informer reqInformProperty(byte epc) {
1195 return (Informer)super.reqInformProperty(epc);
1198 public Informer reqInformOperationStatus() {
1199 return (Informer)super.reqInformOperationStatus();
1202 public Informer reqInformInstallationLocation() {
1203 return (Informer)super.reqInformInstallationLocation();
1206 public Informer reqInformStandardVersionInformation() {
1207 return (Informer)super.reqInformStandardVersionInformation();
1210 public Informer reqInformIdentificationNumber() {
1211 return (Informer)super.reqInformIdentificationNumber();
1214 public Informer reqInformMeasuredInstantaneousPowerConsumption() {
1215 return (Informer)super.reqInformMeasuredInstantaneousPowerConsumption();
1218 public Informer reqInformMeasuredCumulativePowerConsumption() {
1219 return (Informer)super.reqInformMeasuredCumulativePowerConsumption();
1222 public Informer reqInformManufacturersFaultCode() {
1223 return (Informer)super.reqInformManufacturersFaultCode();
1226 public Informer reqInformCurrentLimitSetting() {
1227 return (Informer)super.reqInformCurrentLimitSetting();
1230 public Informer reqInformFaultStatus() {
1231 return (Informer)super.reqInformFaultStatus();
1234 public Informer reqInformFaultDescription() {
1235 return (Informer)super.reqInformFaultDescription();
1238 public Informer reqInformManufacturerCode() {
1239 return (Informer)super.reqInformManufacturerCode();
1242 public Informer reqInformBusinessFacilityCode() {
1243 return (Informer)super.reqInformBusinessFacilityCode();
1246 public Informer reqInformProductCode() {
1247 return (Informer)super.reqInformProductCode();
1250 public Informer reqInformProductionNumber() {
1251 return (Informer)super.reqInformProductionNumber();
1254 public Informer reqInformProductionDate() {
1255 return (Informer)super.reqInformProductionDate();
1258 public Informer reqInformPowerSavingOperationSetting() {
1259 return (Informer)super.reqInformPowerSavingOperationSetting();
1262 public Informer reqInformRemoteControlSetting() {
1263 return (Informer)super.reqInformRemoteControlSetting();
1266 public Informer reqInformCurrentTimeSetting() {
1267 return (Informer)super.reqInformCurrentTimeSetting();
1270 public Informer reqInformCurrentDateSetting() {
1271 return (Informer)super.reqInformCurrentDateSetting();
1274 public Informer reqInformPowerLimitSetting() {
1275 return (Informer)super.reqInformPowerLimitSetting();
1278 public Informer reqInformCumulativeOperatingTime() {
1279 return (Informer)super.reqInformCumulativeOperatingTime();
1282 public Informer reqInformStatusChangeAnnouncementPropertyMap() {
1283 return (Informer)super.reqInformStatusChangeAnnouncementPropertyMap();
1286 public Informer reqInformSetPropertyMap() {
1287 return (Informer)super.reqInformSetPropertyMap();
1290 public Informer reqInformGetPropertyMap() {
1291 return (Informer)super.reqInformGetPropertyMap();
1316 public Informer reqInformDetectionThresholdLevel() {
1344 public Informer reqInformMicromotionDetectionStatus() {
1370 public Informer reqInformDetectionCounter() {
1396 public Informer reqInformSamplingCount() {
1422 public Informer reqInformSamplingCycle() {
1428 public static class Proxy
extends MicromotionSensor {
1429 public Proxy(byte instanceCode) {
1454 return setG((byte)0);
1457 public static Setter
setG(byte instanceCode) {
1458 return setG(instanceCode,
true);
1461 public static Setter
setG(
boolean responseRequired) {
1462 return setG((byte)0, responseRequired);
1465 public static Setter
setG(byte instanceCode,
boolean responseRequired) {
1471 return getG((byte)0);
1474 public static Getter
getG(byte instanceCode) {
1483 public static Informer
informG(byte instanceCode) {
static final byte EPC_MICROMOTION_DETECTION_STATUS
static final byte EPC_DETECTION_COUNTER
boolean isValidSamplingCount(byte[] edt)
static final byte EPC_DETECTION_THRESHOLD_LEVEL
boolean setSamplingCount(byte[] edt)
boolean isValidSamplingCycle(byte[] edt)
synchronized byte[] getProperty(byte epc)
static Setter setG(byte instanceCode)
static Informer informG(byte instanceCode)
static final short ECHO_CLASS_CODE
final void removeSetProperty(byte epc)
boolean setDetectionCounter(byte[] edt)
final void addStatusChangeAnnouncementProperty(byte epc)
static Setter setG(byte instanceCode, boolean responseRequired)
abstract byte[] getInstallationLocation()
final void addGetProperty(byte epc)
static final byte EPC_SAMPLING_CYCLE
boolean setOperationStatus(byte[] edt)
static Getter getG(byte instanceCode)
abstract byte[] getMicromotionDetectionStatus()
synchronized boolean isValidProperty(EchoProperty property)
abstract byte[] getOperationStatus()
Informer inform(boolean multicast)
boolean isValidMicromotionDetectionStatus(byte[] edt)
abstract byte[] getFaultStatus()
byte[] getSamplingCount()
static final byte EPC_SAMPLING_COUNT
abstract byte[] getManufacturerCode()
synchronized boolean setProperty(EchoProperty property)
byte[] getDetectionThresholdLevel()
boolean isValidDetectionThresholdLevel(byte[] edt)
static final byte EPC_OPERATION_STATUS
byte[] getStandardVersionInformation()
static Setter setG(boolean responseRequired)
static Informer informG()
boolean setSamplingCycle(byte[] edt)
abstract boolean setInstallationLocation(byte[] edt)
static final String MULTICAST_ADDRESS
byte[] getDetectionCounter()
boolean isValidDetectionCounter(byte[] edt)
byte[] getSamplingCycle()
final boolean isSelfObject()
Setter set(boolean responseRequired)
boolean setDetectionThresholdLevel(byte[] edt)