16 package com.sonycsl.echo.eoj.device.sensor;
37 super.setupPropertyMaps();
49 Echo.getEventListener().onNewActivityAmountSensor(
this);
157 if(edt == null || !(edt.length <= 128))
return false;
206 if(edt == null || !(edt.length == 2))
return false;
255 if(edt == null || !(edt.length == 1))
return false;
306 if(edt == null || !(edt.length == 16))
return false;
312 boolean success = super.setProperty(property);
313 if(success)
return success;
315 switch(property.
epc) {
316 default :
return false;
322 byte[] edt = super.getProperty(epc);
323 if(edt != null)
return edt;
330 default :
return null;
336 boolean valid = super.isValidProperty(property);
337 if(valid)
return valid;
339 switch(property.
epc) {
344 default :
return false;
354 public Setter
set(
boolean responseRequired) {
356 ,
getNode().getAddressStr(), responseRequired);
360 public Getter
get() {
371 protected Informer
inform(
boolean multicast) {
376 address =
getNode().getAddressStr();
382 public static class Receiver
extends DeviceObject.Receiver {
385 protected boolean onSetProperty(
EchoObject eoj,
short tid, byte esv,
387 boolean ret = super.onSetProperty(eoj, tid, esv, property, success);
390 switch(property.epc) {
397 protected boolean onGetProperty(
EchoObject eoj,
short tid, byte esv,
399 boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
402 switch(property.epc) {
404 onGetActivityAmountLevel1(eoj, tid, esv, property, success);
407 onGetMaximumNumberOfHumanBodyIdS(eoj, tid, esv, property, success);
410 onGetActivityAmountLevel2(eoj, tid, esv, property, success);
413 onGetHumanBodyExistenceInformation(eoj, tid, esv, property, success);
444 protected void onGetActivityAmountLevel1(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
467 protected void onGetMaximumNumberOfHumanBodyIdS(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
490 protected void onGetActivityAmountLevel2(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
514 protected void onGetHumanBodyExistenceInformation(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
517 public static class Setter
extends DeviceObject.Setter {
518 public Setter(
short dstEchoClassCode, byte dstEchoInstanceCode
519 , String dstEchoAddress,
boolean responseRequired) {
520 super(dstEchoClassCode, dstEchoInstanceCode
521 , dstEchoAddress, responseRequired);
525 public Setter reqSetProperty(byte epc, byte[] edt) {
526 return (Setter)super.reqSetProperty(epc, edt);
530 public Setter reqSetOperationStatus(byte[] edt) {
531 return (Setter)super.reqSetOperationStatus(edt);
534 public Setter reqSetInstallationLocation(byte[] edt) {
535 return (Setter)super.reqSetInstallationLocation(edt);
538 public Setter reqSetCurrentLimitSetting(byte[] edt) {
539 return (Setter)super.reqSetCurrentLimitSetting(edt);
542 public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
543 return (Setter)super.reqSetPowerSavingOperationSetting(edt);
546 public Setter reqSetRemoteControlSetting(byte[] edt) {
547 return (Setter)super.reqSetRemoteControlSetting(edt);
550 public Setter reqSetCurrentTimeSetting(byte[] edt) {
551 return (Setter)super.reqSetCurrentTimeSetting(edt);
554 public Setter reqSetCurrentDateSetting(byte[] edt) {
555 return (Setter)super.reqSetCurrentDateSetting(edt);
558 public Setter reqSetPowerLimitSetting(byte[] edt) {
559 return (Setter)super.reqSetPowerLimitSetting(edt);
564 public static class Getter
extends DeviceObject.Getter {
565 public Getter(
short dstEchoClassCode, byte dstEchoInstanceCode
566 , String dstEchoAddress) {
567 super(dstEchoClassCode, dstEchoInstanceCode
572 public Getter reqGetProperty(byte epc) {
573 return (Getter)super.reqGetProperty(epc);
577 public Getter reqGetOperationStatus() {
578 return (Getter)super.reqGetOperationStatus();
581 public Getter reqGetInstallationLocation() {
582 return (Getter)super.reqGetInstallationLocation();
585 public Getter reqGetStandardVersionInformation() {
586 return (Getter)super.reqGetStandardVersionInformation();
589 public Getter reqGetIdentificationNumber() {
590 return (Getter)super.reqGetIdentificationNumber();
593 public Getter reqGetMeasuredInstantaneousPowerConsumption() {
594 return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
597 public Getter reqGetMeasuredCumulativePowerConsumption() {
598 return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
601 public Getter reqGetManufacturersFaultCode() {
602 return (Getter)super.reqGetManufacturersFaultCode();
605 public Getter reqGetCurrentLimitSetting() {
606 return (Getter)super.reqGetCurrentLimitSetting();
609 public Getter reqGetFaultStatus() {
610 return (Getter)super.reqGetFaultStatus();
613 public Getter reqGetFaultDescription() {
614 return (Getter)super.reqGetFaultDescription();
617 public Getter reqGetManufacturerCode() {
618 return (Getter)super.reqGetManufacturerCode();
621 public Getter reqGetBusinessFacilityCode() {
622 return (Getter)super.reqGetBusinessFacilityCode();
625 public Getter reqGetProductCode() {
626 return (Getter)super.reqGetProductCode();
629 public Getter reqGetProductionNumber() {
630 return (Getter)super.reqGetProductionNumber();
633 public Getter reqGetProductionDate() {
634 return (Getter)super.reqGetProductionDate();
637 public Getter reqGetPowerSavingOperationSetting() {
638 return (Getter)super.reqGetPowerSavingOperationSetting();
641 public Getter reqGetRemoteControlSetting() {
642 return (Getter)super.reqGetRemoteControlSetting();
645 public Getter reqGetCurrentTimeSetting() {
646 return (Getter)super.reqGetCurrentTimeSetting();
649 public Getter reqGetCurrentDateSetting() {
650 return (Getter)super.reqGetCurrentDateSetting();
653 public Getter reqGetPowerLimitSetting() {
654 return (Getter)super.reqGetPowerLimitSetting();
657 public Getter reqGetCumulativeOperatingTime() {
658 return (Getter)super.reqGetCumulativeOperatingTime();
661 public Getter reqGetStatusChangeAnnouncementPropertyMap() {
662 return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
665 public Getter reqGetSetPropertyMap() {
666 return (Getter)super.reqGetSetPropertyMap();
669 public Getter reqGetGetPropertyMap() {
670 return (Getter)super.reqGetGetPropertyMap();
697 public Getter reqGetActivityAmountLevel1() {
723 public Getter reqGetMaximumNumberOfHumanBodyIdS() {
749 public Getter reqGetActivityAmountLevel2() {
776 public Getter reqGetHumanBodyExistenceInformation() {
782 public static class Informer
extends DeviceObject.Informer {
783 public Informer(
short echoClassCode, byte echoInstanceCode
785 super(echoClassCode, echoInstanceCode
786 , dstEchoAddress, isSelfObject);
790 public Informer reqInformProperty(byte epc) {
791 return (Informer)super.reqInformProperty(epc);
794 public Informer reqInformOperationStatus() {
795 return (Informer)super.reqInformOperationStatus();
798 public Informer reqInformInstallationLocation() {
799 return (Informer)super.reqInformInstallationLocation();
802 public Informer reqInformStandardVersionInformation() {
803 return (Informer)super.reqInformStandardVersionInformation();
806 public Informer reqInformIdentificationNumber() {
807 return (Informer)super.reqInformIdentificationNumber();
810 public Informer reqInformMeasuredInstantaneousPowerConsumption() {
811 return (Informer)super.reqInformMeasuredInstantaneousPowerConsumption();
814 public Informer reqInformMeasuredCumulativePowerConsumption() {
815 return (Informer)super.reqInformMeasuredCumulativePowerConsumption();
818 public Informer reqInformManufacturersFaultCode() {
819 return (Informer)super.reqInformManufacturersFaultCode();
822 public Informer reqInformCurrentLimitSetting() {
823 return (Informer)super.reqInformCurrentLimitSetting();
826 public Informer reqInformFaultStatus() {
827 return (Informer)super.reqInformFaultStatus();
830 public Informer reqInformFaultDescription() {
831 return (Informer)super.reqInformFaultDescription();
834 public Informer reqInformManufacturerCode() {
835 return (Informer)super.reqInformManufacturerCode();
838 public Informer reqInformBusinessFacilityCode() {
839 return (Informer)super.reqInformBusinessFacilityCode();
842 public Informer reqInformProductCode() {
843 return (Informer)super.reqInformProductCode();
846 public Informer reqInformProductionNumber() {
847 return (Informer)super.reqInformProductionNumber();
850 public Informer reqInformProductionDate() {
851 return (Informer)super.reqInformProductionDate();
854 public Informer reqInformPowerSavingOperationSetting() {
855 return (Informer)super.reqInformPowerSavingOperationSetting();
858 public Informer reqInformRemoteControlSetting() {
859 return (Informer)super.reqInformRemoteControlSetting();
862 public Informer reqInformCurrentTimeSetting() {
863 return (Informer)super.reqInformCurrentTimeSetting();
866 public Informer reqInformCurrentDateSetting() {
867 return (Informer)super.reqInformCurrentDateSetting();
870 public Informer reqInformPowerLimitSetting() {
871 return (Informer)super.reqInformPowerLimitSetting();
874 public Informer reqInformCumulativeOperatingTime() {
875 return (Informer)super.reqInformCumulativeOperatingTime();
878 public Informer reqInformStatusChangeAnnouncementPropertyMap() {
879 return (Informer)super.reqInformStatusChangeAnnouncementPropertyMap();
882 public Informer reqInformSetPropertyMap() {
883 return (Informer)super.reqInformSetPropertyMap();
886 public Informer reqInformGetPropertyMap() {
887 return (Informer)super.reqInformGetPropertyMap();
914 public Informer reqInformActivityAmountLevel1() {
940 public Informer reqInformMaximumNumberOfHumanBodyIdS() {
966 public Informer reqInformActivityAmountLevel2() {
993 public Informer reqInformHumanBodyExistenceInformation() {
999 public static class Proxy
extends ActivityAmountSensor {
1000 public Proxy(byte instanceCode) {
1027 return setG((byte)0);
1030 public static Setter
setG(byte instanceCode) {
1031 return setG(instanceCode,
true);
1034 public static Setter
setG(
boolean responseRequired) {
1035 return setG((byte)0, responseRequired);
1038 public static Setter
setG(byte instanceCode,
boolean responseRequired) {
1044 return getG((byte)0);
1047 public static Getter
getG(byte instanceCode) {
1056 public static Informer
informG(byte instanceCode) {
boolean isValidActivityAmountLevel1(byte[] edt)
abstract byte[] getActivityAmountLevel1()
synchronized byte[] getProperty(byte epc)
static final byte EPC_ACTIVITY_AMOUNT_LEVEL2
static Informer informG()
abstract byte[] getActivityAmountLevel2()
byte[] getHumanBodyExistenceInformation()
final void removeSetProperty(byte epc)
static final short ECHO_CLASS_CODE
static final byte EPC_HUMAN_BODY_EXISTENCE_INFORMATION
boolean setOperationStatus(byte[] edt)
final void addStatusChangeAnnouncementProperty(byte epc)
abstract byte[] getInstallationLocation()
Setter set(boolean responseRequired)
static Informer informG(byte instanceCode)
final void addGetProperty(byte epc)
static Setter setG(byte instanceCode)
static final byte EPC_MAXIMUM_NUMBER_OF_HUMAN_BODY_ID_S
static Setter setG(boolean responseRequired)
boolean isValidActivityAmountLevel2(byte[] edt)
Informer inform(boolean multicast)
abstract byte[] getFaultStatus()
synchronized boolean setProperty(EchoProperty property)
abstract byte[] getOperationStatus()
abstract byte[] getManufacturerCode()
boolean isValidHumanBodyExistenceInformation(byte[] edt)
static Getter getG(byte instanceCode)
static Setter setG(byte instanceCode, boolean responseRequired)
static final byte EPC_OPERATION_STATUS
byte[] getStandardVersionInformation()
boolean isValidMaximumNumberOfHumanBodyIdS(byte[] edt)
abstract boolean setInstallationLocation(byte[] edt)
byte[] getMaximumNumberOfHumanBodyIdS()
static final String MULTICAST_ADDRESS
static final byte EPC_ACTIVITY_AMOUNT_LEVEL1
synchronized boolean isValidProperty(EchoProperty property)
final boolean isSelfObject()