16 package com.sonycsl.echo.eoj.device.sensor;
35 super.setupPropertyMaps();
47 Echo.getEventListener().onNewEmergencyButton(
this);
159 if(edt == null || !(edt.length == 1))
return false;
208 if(edt == null || !(edt.length == 1))
return false;
214 boolean success = super.setProperty(property);
215 if(success)
return success;
217 switch(property.
epc) {
219 default :
return false;
225 byte[] edt = super.getProperty(epc);
226 if(edt != null)
return edt;
230 default :
return null;
236 boolean valid = super.isValidProperty(property);
237 if(valid)
return valid;
239 switch(property.
epc) {
242 default :
return false;
252 public Setter
set(
boolean responseRequired) {
254 ,
getNode().getAddressStr(), responseRequired);
258 public Getter
get() {
269 protected Informer
inform(
boolean multicast) {
274 address =
getNode().getAddressStr();
280 public static class Receiver
extends DeviceObject.Receiver {
283 protected boolean onSetProperty(
EchoObject eoj,
short tid, byte esv,
285 boolean ret = super.onSetProperty(eoj, tid, esv, property, success);
288 switch(property.epc) {
290 onSetEmergencyOccurrenceStatusResetting(eoj, tid, esv, property, success);
298 protected boolean onGetProperty(
EchoObject eoj,
short tid, byte esv,
300 boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
303 switch(property.epc) {
305 onGetEmergencyOccurrenceStatus(eoj, tid, esv, property, success);
338 protected void onGetEmergencyOccurrenceStatus(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
361 protected void onSetEmergencyOccurrenceStatusResetting(
EchoObject eoj,
short tid, byte esv, EchoProperty property,
boolean success) {}
364 public static class Setter
extends DeviceObject.Setter {
365 public Setter(
short dstEchoClassCode, byte dstEchoInstanceCode
366 , String dstEchoAddress,
boolean responseRequired) {
367 super(dstEchoClassCode, dstEchoInstanceCode
368 , dstEchoAddress, responseRequired);
372 public Setter reqSetProperty(byte epc, byte[] edt) {
373 return (Setter)super.reqSetProperty(epc, edt);
377 public Setter reqSetOperationStatus(byte[] edt) {
378 return (Setter)super.reqSetOperationStatus(edt);
381 public Setter reqSetInstallationLocation(byte[] edt) {
382 return (Setter)super.reqSetInstallationLocation(edt);
385 public Setter reqSetCurrentLimitSetting(byte[] edt) {
386 return (Setter)super.reqSetCurrentLimitSetting(edt);
389 public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
390 return (Setter)super.reqSetPowerSavingOperationSetting(edt);
393 public Setter reqSetRemoteControlSetting(byte[] edt) {
394 return (Setter)super.reqSetRemoteControlSetting(edt);
397 public Setter reqSetCurrentTimeSetting(byte[] edt) {
398 return (Setter)super.reqSetCurrentTimeSetting(edt);
401 public Setter reqSetCurrentDateSetting(byte[] edt) {
402 return (Setter)super.reqSetCurrentDateSetting(edt);
405 public Setter reqSetPowerLimitSetting(byte[] edt) {
406 return (Setter)super.reqSetPowerLimitSetting(edt);
431 public Setter reqSetEmergencyOccurrenceStatusResetting(byte[] edt) {
437 public static class Getter
extends DeviceObject.Getter {
438 public Getter(
short dstEchoClassCode, byte dstEchoInstanceCode
439 , String dstEchoAddress) {
440 super(dstEchoClassCode, dstEchoInstanceCode
445 public Getter reqGetProperty(byte epc) {
446 return (Getter)super.reqGetProperty(epc);
450 public Getter reqGetOperationStatus() {
451 return (Getter)super.reqGetOperationStatus();
454 public Getter reqGetInstallationLocation() {
455 return (Getter)super.reqGetInstallationLocation();
458 public Getter reqGetStandardVersionInformation() {
459 return (Getter)super.reqGetStandardVersionInformation();
462 public Getter reqGetIdentificationNumber() {
463 return (Getter)super.reqGetIdentificationNumber();
466 public Getter reqGetMeasuredInstantaneousPowerConsumption() {
467 return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
470 public Getter reqGetMeasuredCumulativePowerConsumption() {
471 return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
474 public Getter reqGetManufacturersFaultCode() {
475 return (Getter)super.reqGetManufacturersFaultCode();
478 public Getter reqGetCurrentLimitSetting() {
479 return (Getter)super.reqGetCurrentLimitSetting();
482 public Getter reqGetFaultStatus() {
483 return (Getter)super.reqGetFaultStatus();
486 public Getter reqGetFaultDescription() {
487 return (Getter)super.reqGetFaultDescription();
490 public Getter reqGetManufacturerCode() {
491 return (Getter)super.reqGetManufacturerCode();
494 public Getter reqGetBusinessFacilityCode() {
495 return (Getter)super.reqGetBusinessFacilityCode();
498 public Getter reqGetProductCode() {
499 return (Getter)super.reqGetProductCode();
502 public Getter reqGetProductionNumber() {
503 return (Getter)super.reqGetProductionNumber();
506 public Getter reqGetProductionDate() {
507 return (Getter)super.reqGetProductionDate();
510 public Getter reqGetPowerSavingOperationSetting() {
511 return (Getter)super.reqGetPowerSavingOperationSetting();
514 public Getter reqGetRemoteControlSetting() {
515 return (Getter)super.reqGetRemoteControlSetting();
518 public Getter reqGetCurrentTimeSetting() {
519 return (Getter)super.reqGetCurrentTimeSetting();
522 public Getter reqGetCurrentDateSetting() {
523 return (Getter)super.reqGetCurrentDateSetting();
526 public Getter reqGetPowerLimitSetting() {
527 return (Getter)super.reqGetPowerLimitSetting();
530 public Getter reqGetCumulativeOperatingTime() {
531 return (Getter)super.reqGetCumulativeOperatingTime();
534 public Getter reqGetStatusChangeAnnouncementPropertyMap() {
535 return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
538 public Getter reqGetSetPropertyMap() {
539 return (Getter)super.reqGetSetPropertyMap();
542 public Getter reqGetGetPropertyMap() {
543 return (Getter)super.reqGetGetPropertyMap();
572 public Getter reqGetEmergencyOccurrenceStatus() {
578 public static class Informer
extends DeviceObject.Informer {
579 public Informer(
short echoClassCode, byte echoInstanceCode
581 super(echoClassCode, echoInstanceCode
582 , dstEchoAddress, isSelfObject);
586 public Informer reqInformProperty(byte epc) {
587 return (Informer)super.reqInformProperty(epc);
590 public Informer reqInformOperationStatus() {
591 return (Informer)super.reqInformOperationStatus();
594 public Informer reqInformInstallationLocation() {
595 return (Informer)super.reqInformInstallationLocation();
598 public Informer reqInformStandardVersionInformation() {
599 return (Informer)super.reqInformStandardVersionInformation();
602 public Informer reqInformIdentificationNumber() {
603 return (Informer)super.reqInformIdentificationNumber();
606 public Informer reqInformMeasuredInstantaneousPowerConsumption() {
607 return (Informer)super.reqInformMeasuredInstantaneousPowerConsumption();
610 public Informer reqInformMeasuredCumulativePowerConsumption() {
611 return (Informer)super.reqInformMeasuredCumulativePowerConsumption();
614 public Informer reqInformManufacturersFaultCode() {
615 return (Informer)super.reqInformManufacturersFaultCode();
618 public Informer reqInformCurrentLimitSetting() {
619 return (Informer)super.reqInformCurrentLimitSetting();
622 public Informer reqInformFaultStatus() {
623 return (Informer)super.reqInformFaultStatus();
626 public Informer reqInformFaultDescription() {
627 return (Informer)super.reqInformFaultDescription();
630 public Informer reqInformManufacturerCode() {
631 return (Informer)super.reqInformManufacturerCode();
634 public Informer reqInformBusinessFacilityCode() {
635 return (Informer)super.reqInformBusinessFacilityCode();
638 public Informer reqInformProductCode() {
639 return (Informer)super.reqInformProductCode();
642 public Informer reqInformProductionNumber() {
643 return (Informer)super.reqInformProductionNumber();
646 public Informer reqInformProductionDate() {
647 return (Informer)super.reqInformProductionDate();
650 public Informer reqInformPowerSavingOperationSetting() {
651 return (Informer)super.reqInformPowerSavingOperationSetting();
654 public Informer reqInformRemoteControlSetting() {
655 return (Informer)super.reqInformRemoteControlSetting();
658 public Informer reqInformCurrentTimeSetting() {
659 return (Informer)super.reqInformCurrentTimeSetting();
662 public Informer reqInformCurrentDateSetting() {
663 return (Informer)super.reqInformCurrentDateSetting();
666 public Informer reqInformPowerLimitSetting() {
667 return (Informer)super.reqInformPowerLimitSetting();
670 public Informer reqInformCumulativeOperatingTime() {
671 return (Informer)super.reqInformCumulativeOperatingTime();
674 public Informer reqInformStatusChangeAnnouncementPropertyMap() {
675 return (Informer)super.reqInformStatusChangeAnnouncementPropertyMap();
678 public Informer reqInformSetPropertyMap() {
679 return (Informer)super.reqInformSetPropertyMap();
682 public Informer reqInformGetPropertyMap() {
683 return (Informer)super.reqInformGetPropertyMap();
712 public Informer reqInformEmergencyOccurrenceStatus() {
718 public static class Proxy
extends EmergencyButton {
719 public Proxy(byte instanceCode) {
744 return setG((byte)0);
747 public static Setter
setG(byte instanceCode) {
748 return setG(instanceCode,
true);
751 public static Setter
setG(
boolean responseRequired) {
752 return setG((byte)0, responseRequired);
755 public static Setter
setG(byte instanceCode,
boolean responseRequired) {
761 return getG((byte)0);
764 public static Getter
getG(byte instanceCode) {
773 public static Informer
informG(byte instanceCode) {
final void removeSetProperty(byte epc)
final void addStatusChangeAnnouncementProperty(byte epc)
abstract byte[] getInstallationLocation()
final void addGetProperty(byte epc)
abstract byte[] getFaultStatus()
abstract byte[] getManufacturerCode()
static final byte EPC_OPERATION_STATUS
byte[] getStandardVersionInformation()
abstract boolean setInstallationLocation(byte[] edt)
static final String MULTICAST_ADDRESS
final boolean isSelfObject()