16 package com.sonycsl.echo.eoj.device.sensor;
35 super.setupPropertyMaps();
47 Echo.getEventListener().onNewIlluminanceSensor(
this);
151 if(edt == null || !(edt.length == 2))
return false;
202 if(edt == null || !(edt.length == 2))
return false;
208 boolean success = super.setProperty(property);
209 if(success)
return success;
211 switch(property.
epc) {
212 default :
return false;
218 byte[] edt = super.getProperty(epc);
219 if(edt != null)
return edt;
224 default :
return null;
230 boolean valid = super.isValidProperty(property);
231 if(valid)
return valid;
233 switch(property.
epc) {
236 default :
return false;
246 public Setter
set(
boolean responseRequired) {
248 ,
getNode().getAddressStr(), responseRequired);
252 public Getter
get() {
263 protected Informer
inform(
boolean multicast) {
268 address =
getNode().getAddressStr();
274 public static class Receiver
extends DeviceObject.Receiver {
277 protected boolean onSetProperty(
EchoObject eoj,
short tid, byte esv,
279 boolean ret = super.onSetProperty(eoj, tid, esv, property, success);
282 switch(property.epc) {
289 protected boolean onGetProperty(
EchoObject eoj,
short tid, byte esv,
291 boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
294 switch(property.epc) {
296 onGetMeasuredIlluminanceValue1(eoj, tid, esv, property, success);
299 onGetMeasuredIlluminanceValue2(eoj, tid, esv, property, success);
328 protected void onGetMeasuredIlluminanceValue1(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
352 protected void onGetMeasuredIlluminanceValue2(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
355 public static class Setter
extends DeviceObject.Setter {
356 public Setter(
short dstEchoClassCode, byte dstEchoInstanceCode
357 , String dstEchoAddress,
boolean responseRequired) {
358 super(dstEchoClassCode, dstEchoInstanceCode
359 , dstEchoAddress, responseRequired);
363 public Setter reqSetProperty(byte epc, byte[] edt) {
364 return (Setter)super.reqSetProperty(epc, edt);
368 public Setter reqSetOperationStatus(byte[] edt) {
369 return (Setter)super.reqSetOperationStatus(edt);
372 public Setter reqSetInstallationLocation(byte[] edt) {
373 return (Setter)super.reqSetInstallationLocation(edt);
376 public Setter reqSetCurrentLimitSetting(byte[] edt) {
377 return (Setter)super.reqSetCurrentLimitSetting(edt);
380 public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
381 return (Setter)super.reqSetPowerSavingOperationSetting(edt);
384 public Setter reqSetRemoteControlSetting(byte[] edt) {
385 return (Setter)super.reqSetRemoteControlSetting(edt);
388 public Setter reqSetCurrentTimeSetting(byte[] edt) {
389 return (Setter)super.reqSetCurrentTimeSetting(edt);
392 public Setter reqSetCurrentDateSetting(byte[] edt) {
393 return (Setter)super.reqSetCurrentDateSetting(edt);
396 public Setter reqSetPowerLimitSetting(byte[] edt) {
397 return (Setter)super.reqSetPowerLimitSetting(edt);
402 public static class Getter
extends DeviceObject.Getter {
403 public Getter(
short dstEchoClassCode, byte dstEchoInstanceCode
404 , String dstEchoAddress) {
405 super(dstEchoClassCode, dstEchoInstanceCode
410 public Getter reqGetProperty(byte epc) {
411 return (Getter)super.reqGetProperty(epc);
415 public Getter reqGetOperationStatus() {
416 return (Getter)super.reqGetOperationStatus();
419 public Getter reqGetInstallationLocation() {
420 return (Getter)super.reqGetInstallationLocation();
423 public Getter reqGetStandardVersionInformation() {
424 return (Getter)super.reqGetStandardVersionInformation();
427 public Getter reqGetIdentificationNumber() {
428 return (Getter)super.reqGetIdentificationNumber();
431 public Getter reqGetMeasuredInstantaneousPowerConsumption() {
432 return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
435 public Getter reqGetMeasuredCumulativePowerConsumption() {
436 return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
439 public Getter reqGetManufacturersFaultCode() {
440 return (Getter)super.reqGetManufacturersFaultCode();
443 public Getter reqGetCurrentLimitSetting() {
444 return (Getter)super.reqGetCurrentLimitSetting();
447 public Getter reqGetFaultStatus() {
448 return (Getter)super.reqGetFaultStatus();
451 public Getter reqGetFaultDescription() {
452 return (Getter)super.reqGetFaultDescription();
455 public Getter reqGetManufacturerCode() {
456 return (Getter)super.reqGetManufacturerCode();
459 public Getter reqGetBusinessFacilityCode() {
460 return (Getter)super.reqGetBusinessFacilityCode();
463 public Getter reqGetProductCode() {
464 return (Getter)super.reqGetProductCode();
467 public Getter reqGetProductionNumber() {
468 return (Getter)super.reqGetProductionNumber();
471 public Getter reqGetProductionDate() {
472 return (Getter)super.reqGetProductionDate();
475 public Getter reqGetPowerSavingOperationSetting() {
476 return (Getter)super.reqGetPowerSavingOperationSetting();
479 public Getter reqGetRemoteControlSetting() {
480 return (Getter)super.reqGetRemoteControlSetting();
483 public Getter reqGetCurrentTimeSetting() {
484 return (Getter)super.reqGetCurrentTimeSetting();
487 public Getter reqGetCurrentDateSetting() {
488 return (Getter)super.reqGetCurrentDateSetting();
491 public Getter reqGetPowerLimitSetting() {
492 return (Getter)super.reqGetPowerLimitSetting();
495 public Getter reqGetCumulativeOperatingTime() {
496 return (Getter)super.reqGetCumulativeOperatingTime();
499 public Getter reqGetStatusChangeAnnouncementPropertyMap() {
500 return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
503 public Getter reqGetSetPropertyMap() {
504 return (Getter)super.reqGetSetPropertyMap();
507 public Getter reqGetGetPropertyMap() {
508 return (Getter)super.reqGetGetPropertyMap();
533 public Getter reqGetMeasuredIlluminanceValue1() {
560 public Getter reqGetMeasuredIlluminanceValue2() {
566 public static class Informer
extends DeviceObject.Informer {
567 public Informer(
short echoClassCode, byte echoInstanceCode
569 super(echoClassCode, echoInstanceCode
570 , dstEchoAddress, isSelfObject);
574 public Informer reqInformProperty(byte epc) {
575 return (Informer)super.reqInformProperty(epc);
578 public Informer reqInformOperationStatus() {
579 return (Informer)super.reqInformOperationStatus();
582 public Informer reqInformInstallationLocation() {
583 return (Informer)super.reqInformInstallationLocation();
586 public Informer reqInformStandardVersionInformation() {
587 return (Informer)super.reqInformStandardVersionInformation();
590 public Informer reqInformIdentificationNumber() {
591 return (Informer)super.reqInformIdentificationNumber();
594 public Informer reqInformMeasuredInstantaneousPowerConsumption() {
595 return (Informer)super.reqInformMeasuredInstantaneousPowerConsumption();
598 public Informer reqInformMeasuredCumulativePowerConsumption() {
599 return (Informer)super.reqInformMeasuredCumulativePowerConsumption();
602 public Informer reqInformManufacturersFaultCode() {
603 return (Informer)super.reqInformManufacturersFaultCode();
606 public Informer reqInformCurrentLimitSetting() {
607 return (Informer)super.reqInformCurrentLimitSetting();
610 public Informer reqInformFaultStatus() {
611 return (Informer)super.reqInformFaultStatus();
614 public Informer reqInformFaultDescription() {
615 return (Informer)super.reqInformFaultDescription();
618 public Informer reqInformManufacturerCode() {
619 return (Informer)super.reqInformManufacturerCode();
622 public Informer reqInformBusinessFacilityCode() {
623 return (Informer)super.reqInformBusinessFacilityCode();
626 public Informer reqInformProductCode() {
627 return (Informer)super.reqInformProductCode();
630 public Informer reqInformProductionNumber() {
631 return (Informer)super.reqInformProductionNumber();
634 public Informer reqInformProductionDate() {
635 return (Informer)super.reqInformProductionDate();
638 public Informer reqInformPowerSavingOperationSetting() {
639 return (Informer)super.reqInformPowerSavingOperationSetting();
642 public Informer reqInformRemoteControlSetting() {
643 return (Informer)super.reqInformRemoteControlSetting();
646 public Informer reqInformCurrentTimeSetting() {
647 return (Informer)super.reqInformCurrentTimeSetting();
650 public Informer reqInformCurrentDateSetting() {
651 return (Informer)super.reqInformCurrentDateSetting();
654 public Informer reqInformPowerLimitSetting() {
655 return (Informer)super.reqInformPowerLimitSetting();
658 public Informer reqInformCumulativeOperatingTime() {
659 return (Informer)super.reqInformCumulativeOperatingTime();
662 public Informer reqInformStatusChangeAnnouncementPropertyMap() {
663 return (Informer)super.reqInformStatusChangeAnnouncementPropertyMap();
666 public Informer reqInformSetPropertyMap() {
667 return (Informer)super.reqInformSetPropertyMap();
670 public Informer reqInformGetPropertyMap() {
671 return (Informer)super.reqInformGetPropertyMap();
696 public Informer reqInformMeasuredIlluminanceValue1() {
723 public Informer reqInformMeasuredIlluminanceValue2() {
729 public static class Proxy
extends IlluminanceSensor {
730 public Proxy(byte instanceCode) {
757 return setG((byte)0);
760 public static Setter
setG(byte instanceCode) {
761 return setG(instanceCode,
true);
764 public static Setter
setG(
boolean responseRequired) {
765 return setG((byte)0, responseRequired);
768 public static Setter
setG(byte instanceCode,
boolean responseRequired) {
774 return getG((byte)0);
777 public static Getter
getG(byte instanceCode) {
786 public static Informer
informG(byte instanceCode) {
abstract byte[] getMeasuredIlluminanceValue1()
static Setter setG(byte instanceCode, boolean responseRequired)
static Setter setG(byte instanceCode)
Informer inform(boolean multicast)
static Setter setG(boolean responseRequired)
boolean isValidMeasuredIlluminanceValue1(byte[] edt)
static final short ECHO_CLASS_CODE
static final byte EPC_MEASURED_ILLUMINANCE_VALUE1
final void removeSetProperty(byte epc)
final void addStatusChangeAnnouncementProperty(byte epc)
abstract byte[] getInstallationLocation()
final void addGetProperty(byte epc)
synchronized boolean isValidProperty(EchoProperty property)
abstract byte[] getFaultStatus()
static Informer informG(byte instanceCode)
synchronized boolean setProperty(EchoProperty property)
abstract byte[] getManufacturerCode()
static Informer informG()
Setter set(boolean responseRequired)
static final byte EPC_MEASURED_ILLUMINANCE_VALUE2
static final byte EPC_OPERATION_STATUS
byte[] getStandardVersionInformation()
boolean setOperationStatus(byte[] edt)
abstract boolean setInstallationLocation(byte[] edt)
static final String MULTICAST_ADDRESS
static Getter getG(byte instanceCode)
synchronized byte[] getProperty(byte epc)
final boolean isSelfObject()
abstract byte[] getOperationStatus()
abstract byte[] getMeasuredIlluminanceValue2()
boolean isValidMeasuredIlluminanceValue2(byte[] edt)