OpenECHO
 All Classes Namespaces Files Functions Variables
BathroomHeaterAndDryer.java
Go to the documentation of this file.
1 /*
2  * Copyright 2012 Sony Computer Science Laboratories, Inc. <info@kadecot.net>
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package com.sonycsl.echo.eoj.device.housingfacilities;
17 
25 
26 public abstract class BathroomHeaterAndDryer extends DeviceObject {
27 
28  public static final short ECHO_CLASS_CODE = (short)0x0273;
29 
30  public static final byte EPC_OPERATION_SETTING = (byte)0xB0;
31  public static final byte EPC_VENTILATION_OPERATION_SETTING = (byte)0xB1;
32  public static final byte EPC_BATHROOM_PRE_WARMER_OPERATION_SETTING = (byte)0xB2;
33  public static final byte EPC_BATHROOM_HEATER_OPERATION_SETTING = (byte)0xB3;
34  public static final byte EPC_BATHROOM_DRYER_OPERATION_SETTING = (byte)0xB4;
35  public static final byte EPC_COOL_AIR_CIRCULATOR_OPERATION_SETTING = (byte)0xB5;
36  public static final byte EPC_MEASURED_RELATIVE_BATHROOM_HUMIDITY = (byte)0xBA;
37  public static final byte EPC_MEASURED_BATHROOM_TEMPERATURE = (byte)0xBB;
38  public static final byte EPC_VENTILATION_AIR_FLOW_RATE_SETTING = (byte)0xC2;
39  public static final byte EPC_FILTER_CLEANING_REMINDER_SIGN_SETTING = (byte)0xCF;
40  public static final byte EPC_HUMAN_BODY_DETECTION_STATUS = (byte)0xE0;
41  public static final byte EPC_ON_TIMER_BASED_RESERVATION_SETTING1 = (byte)0x90;
42  public static final byte EPC_ON_TIMER_BASED_RESERVATION_SETTING2 = (byte)0xE1;
43  public static final byte EPC_ON_TIMER_SETTING_TIME = (byte)0x91;
44  public static final byte EPC_ON_TIMER_SETTING_RELATIVE_TIME = (byte)0x92;
45  public static final byte EPC_OFF_TIMER_BASED_RESERVATION_SETTING = (byte)0x94;
46  public static final byte EPC_OFF_TIMER_SETTING_TIME = (byte)0x95;
47  public static final byte EPC_OFF_TIMER_SETTING_RELATIVE_TIME = (byte)0x96;
48 
49  @Override
50  protected void setupPropertyMaps() {
51  super.setupPropertyMaps();
52 
62  }
63 
64  @Override
65  public void onNew() {
66  super.onNew();
67  Echo.getEventListener().onNewBathroomHeaterAndDryer(this);
68  }
69 
70  @Override
71  public short getEchoClassCode() {
72  return ECHO_CLASS_CODE;
73  }
74 
100  protected boolean setOperationStatus(byte[] edt) {return false;}
126  protected abstract byte[] getOperationStatus();
153  protected abstract boolean setOperationSetting(byte[] edt);
180  protected abstract byte[] getOperationSetting();
207  protected boolean isValidOperationSetting(byte[] edt) {
208  if(edt == null || !(edt.length == 1)) return false;
209  return true;
210  }
235  protected boolean setVentilationOperationSetting(byte[] edt) {return false;}
260  protected byte[] getVentilationOperationSetting() {return null;}
285  protected boolean isValidVentilationOperationSetting(byte[] edt) {
286  if(edt == null || !(edt.length == 1)) return false;
287  return true;
288  }
314  protected abstract boolean setBathroomPreWarmerOperationSetting(byte[] edt);
340  protected abstract byte[] getBathroomPreWarmerOperationSetting();
366  protected boolean isValidBathroomPreWarmerOperationSetting(byte[] edt) {
367  if(edt == null || !(edt.length == 1)) return false;
368  return true;
369  }
394  protected boolean setBathroomHeaterOperationSetting(byte[] edt) {return false;}
419  protected byte[] getBathroomHeaterOperationSetting() {return null;}
444  protected boolean isValidBathroomHeaterOperationSetting(byte[] edt) {
445  if(edt == null || !(edt.length == 1)) return false;
446  return true;
447  }
472  protected abstract boolean setBathroomDryerOperationSetting(byte[] edt);
497  protected abstract byte[] getBathroomDryerOperationSetting();
522  protected boolean isValidBathroomDryerOperationSetting(byte[] edt) {
523  if(edt == null || !(edt.length == 1)) return false;
524  return true;
525  }
550  protected boolean setCoolAirCirculatorOperationSetting(byte[] edt) {return false;}
575  protected byte[] getCoolAirCirculatorOperationSetting() {return null;}
600  protected boolean isValidCoolAirCirculatorOperationSetting(byte[] edt) {
601  if(edt == null || !(edt.length == 1)) return false;
602  return true;
603  }
626  protected byte[] getMeasuredRelativeBathroomHumidity() {return null;}
649  protected boolean isValidMeasuredRelativeBathroomHumidity(byte[] edt) {
650  if(edt == null || !(edt.length == 1)) return false;
651  return true;
652  }
675  protected byte[] getMeasuredBathroomTemperature() {return null;}
698  protected boolean isValidMeasuredBathroomTemperature(byte[] edt) {
699  if(edt == null || !(edt.length == 1)) return false;
700  return true;
701  }
725  protected boolean setVentilationAirFlowRateSetting(byte[] edt) {return false;}
749  protected byte[] getVentilationAirFlowRateSetting() {return null;}
773  protected boolean isValidVentilationAirFlowRateSetting(byte[] edt) {
774  if(edt == null || !(edt.length == 1)) return false;
775  return true;
776  }
800  protected boolean setFilterCleaningReminderSignSetting(byte[] edt) {return false;}
824  protected byte[] getFilterCleaningReminderSignSetting() {return null;}
848  protected boolean isValidFilterCleaningReminderSignSetting(byte[] edt) {
849  if(edt == null || !(edt.length == 1)) return false;
850  return true;
851  }
874  protected byte[] getHumanBodyDetectionStatus() {return null;}
897  protected boolean isValidHumanBodyDetectionStatus(byte[] edt) {
898  if(edt == null || !(edt.length == 1)) return false;
899  return true;
900  }
925  protected boolean setOnTimerBasedReservationSetting1(byte[] edt) {return false;}
950  protected byte[] getOnTimerBasedReservationSetting1() {return null;}
975  protected boolean isValidOnTimerBasedReservationSetting1(byte[] edt) {
976  if(edt == null || !(edt.length == 1)) return false;
977  return true;
978  }
1007  protected boolean setOnTimerBasedReservationSetting2(byte[] edt) {return false;}
1036  protected byte[] getOnTimerBasedReservationSetting2() {return null;}
1065  protected boolean isValidOnTimerBasedReservationSetting2(byte[] edt) {
1066  if(edt == null || !(edt.length == 1)) return false;
1067  return true;
1068  }
1093  protected boolean setOnTimerSettingTime(byte[] edt) {return false;}
1118  protected byte[] getOnTimerSettingTime() {return null;}
1143  protected boolean isValidOnTimerSettingTime(byte[] edt) {
1144  if(edt == null || !(edt.length == 2)) return false;
1145  return true;
1146  }
1171  protected boolean setOnTimerSettingRelativeTime(byte[] edt) {return false;}
1196  protected byte[] getOnTimerSettingRelativeTime() {return null;}
1221  protected boolean isValidOnTimerSettingRelativeTime(byte[] edt) {
1222  if(edt == null || !(edt.length == 2)) return false;
1223  return true;
1224  }
1248  protected boolean setOffTimerBasedReservationSetting(byte[] edt) {return false;}
1272  protected byte[] getOffTimerBasedReservationSetting() {return null;}
1296  protected boolean isValidOffTimerBasedReservationSetting(byte[] edt) {
1297  if(edt == null || !(edt.length == 1)) return false;
1298  return true;
1299  }
1324  protected boolean setOffTimerSettingTime(byte[] edt) {return false;}
1349  protected byte[] getOffTimerSettingTime() {return null;}
1374  protected boolean isValidOffTimerSettingTime(byte[] edt) {
1375  if(edt == null || !(edt.length == 2)) return false;
1376  return true;
1377  }
1402  protected boolean setOffTimerSettingRelativeTime(byte[] edt) {return false;}
1427  protected byte[] getOffTimerSettingRelativeTime() {return null;}
1452  protected boolean isValidOffTimerSettingRelativeTime(byte[] edt) {
1453  if(edt == null || !(edt.length == 2)) return false;
1454  return true;
1455  }
1456 
1457  @Override
1458  protected synchronized boolean setProperty(EchoProperty property) {
1459  boolean success = super.setProperty(property);
1460  if(success) return success;
1461 
1462  switch(property.epc) {
1463  case EPC_OPERATION_SETTING : return setOperationSetting(property.edt);
1473  case EPC_ON_TIMER_SETTING_TIME : return setOnTimerSettingTime(property.edt);
1476  case EPC_OFF_TIMER_SETTING_TIME : return setOffTimerSettingTime(property.edt);
1478  default : return false;
1479  }
1480  }
1481 
1482  @Override
1483  protected synchronized byte[] getProperty(byte epc) {
1484  byte[] edt = super.getProperty(epc);
1485  if(edt != null) return edt;
1486 
1487  switch(epc) {
1506  default : return null;
1507  }
1508  }
1509 
1510  @Override
1511  protected synchronized boolean isValidProperty(EchoProperty property) {
1512  boolean valid = super.isValidProperty(property);
1513  if(valid) return valid;
1514 
1515  switch(property.epc) {
1516  case EPC_OPERATION_SETTING : return isValidOperationSetting(property.edt);
1534  default : return false;
1535  }
1536  }
1537 
1538  @Override
1539  public Setter set() {
1540  return set(true);
1541  }
1542 
1543  @Override
1544  public Setter set(boolean responseRequired) {
1545  return new Setter(getEchoClassCode(), getInstanceCode()
1546  , getNode().getAddressStr(), responseRequired);
1547  }
1548 
1549  @Override
1550  public Getter get() {
1551  return new Getter(getEchoClassCode(), getInstanceCode()
1552  , getNode().getAddressStr());
1553  }
1554 
1555  @Override
1556  public Informer inform() {
1557  return inform(isSelfObject());
1558  }
1559 
1560  @Override
1561  protected Informer inform(boolean multicast) {
1562  String address;
1563  if(multicast) {
1564  address = EchoSocket.MULTICAST_ADDRESS;
1565  } else {
1566  address = getNode().getAddressStr();
1567  }
1568  return new Informer(getEchoClassCode(), getInstanceCode()
1569  , address, isSelfObject());
1570  }
1571 
1572  public static class Receiver extends DeviceObject.Receiver {
1573 
1574  @Override
1575  protected boolean onSetProperty(EchoObject eoj, short tid, byte esv,
1576  EchoProperty property, boolean success) {
1577  boolean ret = super.onSetProperty(eoj, tid, esv, property, success);
1578  if(ret) return true;
1579 
1580  switch(property.epc) {
1581  case EPC_OPERATION_SETTING :
1582  onSetOperationSetting(eoj, tid, esv, property, success);
1583  return true;
1585  onSetVentilationOperationSetting(eoj, tid, esv, property, success);
1586  return true;
1588  onSetBathroomPreWarmerOperationSetting(eoj, tid, esv, property, success);
1589  return true;
1591  onSetBathroomHeaterOperationSetting(eoj, tid, esv, property, success);
1592  return true;
1594  onSetBathroomDryerOperationSetting(eoj, tid, esv, property, success);
1595  return true;
1597  onSetCoolAirCirculatorOperationSetting(eoj, tid, esv, property, success);
1598  return true;
1600  onSetVentilationAirFlowRateSetting(eoj, tid, esv, property, success);
1601  return true;
1603  onSetFilterCleaningReminderSignSetting(eoj, tid, esv, property, success);
1604  return true;
1606  onSetOnTimerBasedReservationSetting1(eoj, tid, esv, property, success);
1607  return true;
1609  onSetOnTimerBasedReservationSetting2(eoj, tid, esv, property, success);
1610  return true;
1612  onSetOnTimerSettingTime(eoj, tid, esv, property, success);
1613  return true;
1615  onSetOnTimerSettingRelativeTime(eoj, tid, esv, property, success);
1616  return true;
1618  onSetOffTimerBasedReservationSetting(eoj, tid, esv, property, success);
1619  return true;
1621  onSetOffTimerSettingTime(eoj, tid, esv, property, success);
1622  return true;
1624  onSetOffTimerSettingRelativeTime(eoj, tid, esv, property, success);
1625  return true;
1626  default :
1627  return false;
1628  }
1629  }
1630 
1631  @Override
1632  protected boolean onGetProperty(EchoObject eoj, short tid, byte esv,
1633  EchoProperty property, boolean success) {
1634  boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
1635  if(ret) return true;
1636 
1637  switch(property.epc) {
1638  case EPC_OPERATION_SETTING :
1639  onGetOperationSetting(eoj, tid, esv, property, success);
1640  return true;
1642  onGetVentilationOperationSetting(eoj, tid, esv, property, success);
1643  return true;
1645  onGetBathroomPreWarmerOperationSetting(eoj, tid, esv, property, success);
1646  return true;
1648  onGetBathroomHeaterOperationSetting(eoj, tid, esv, property, success);
1649  return true;
1651  onGetBathroomDryerOperationSetting(eoj, tid, esv, property, success);
1652  return true;
1654  onGetCoolAirCirculatorOperationSetting(eoj, tid, esv, property, success);
1655  return true;
1657  onGetMeasuredRelativeBathroomHumidity(eoj, tid, esv, property, success);
1658  return true;
1660  onGetMeasuredBathroomTemperature(eoj, tid, esv, property, success);
1661  return true;
1663  onGetVentilationAirFlowRateSetting(eoj, tid, esv, property, success);
1664  return true;
1666  onGetFilterCleaningReminderSignSetting(eoj, tid, esv, property, success);
1667  return true;
1669  onGetHumanBodyDetectionStatus(eoj, tid, esv, property, success);
1670  return true;
1672  onGetOnTimerBasedReservationSetting1(eoj, tid, esv, property, success);
1673  return true;
1675  onGetOnTimerBasedReservationSetting2(eoj, tid, esv, property, success);
1676  return true;
1678  onGetOnTimerSettingTime(eoj, tid, esv, property, success);
1679  return true;
1681  onGetOnTimerSettingRelativeTime(eoj, tid, esv, property, success);
1682  return true;
1684  onGetOffTimerBasedReservationSetting(eoj, tid, esv, property, success);
1685  return true;
1687  onGetOffTimerSettingTime(eoj, tid, esv, property, success);
1688  return true;
1690  onGetOffTimerSettingRelativeTime(eoj, tid, esv, property, success);
1691  return true;
1692  default :
1693  return false;
1694  }
1695  }
1696 
1723  protected void onSetOperationSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
1750  protected void onGetOperationSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
1775  protected void onSetVentilationOperationSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
1800  protected void onGetVentilationOperationSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
1826  protected void onSetBathroomPreWarmerOperationSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
1852  protected void onGetBathroomPreWarmerOperationSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
1877  protected void onSetBathroomHeaterOperationSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
1902  protected void onGetBathroomHeaterOperationSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
1927  protected void onSetBathroomDryerOperationSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
1952  protected void onGetBathroomDryerOperationSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
1977  protected void onSetCoolAirCirculatorOperationSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2002  protected void onGetCoolAirCirculatorOperationSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2025  protected void onGetMeasuredRelativeBathroomHumidity(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2048  protected void onGetMeasuredBathroomTemperature(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2072  protected void onSetVentilationAirFlowRateSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2096  protected void onGetVentilationAirFlowRateSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2120  protected void onSetFilterCleaningReminderSignSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2144  protected void onGetFilterCleaningReminderSignSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2167  protected void onGetHumanBodyDetectionStatus(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2192  protected void onSetOnTimerBasedReservationSetting1(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2217  protected void onGetOnTimerBasedReservationSetting1(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2246  protected void onSetOnTimerBasedReservationSetting2(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2275  protected void onGetOnTimerBasedReservationSetting2(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2300  protected void onSetOnTimerSettingTime(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2325  protected void onGetOnTimerSettingTime(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2350  protected void onSetOnTimerSettingRelativeTime(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2375  protected void onGetOnTimerSettingRelativeTime(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2399  protected void onSetOffTimerBasedReservationSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2423  protected void onGetOffTimerBasedReservationSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2448  protected void onSetOffTimerSettingTime(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2473  protected void onGetOffTimerSettingTime(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2498  protected void onSetOffTimerSettingRelativeTime(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2523  protected void onGetOffTimerSettingRelativeTime(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2524  }
2525 
2526  public static class Setter extends DeviceObject.Setter {
2527  public Setter(short dstEchoClassCode, byte dstEchoInstanceCode
2528  , String dstEchoAddress, boolean responseRequired) {
2529  super(dstEchoClassCode, dstEchoInstanceCode
2530  , dstEchoAddress, responseRequired);
2531  }
2532 
2533  @Override
2534  public Setter reqSetProperty(byte epc, byte[] edt) {
2535  return (Setter)super.reqSetProperty(epc, edt);
2536  }
2537 
2538  @Override
2539  public Setter reqSetOperationStatus(byte[] edt) {
2540  return (Setter)super.reqSetOperationStatus(edt);
2541  }
2542  @Override
2543  public Setter reqSetInstallationLocation(byte[] edt) {
2544  return (Setter)super.reqSetInstallationLocation(edt);
2545  }
2546  @Override
2547  public Setter reqSetCurrentLimitSetting(byte[] edt) {
2548  return (Setter)super.reqSetCurrentLimitSetting(edt);
2549  }
2550  @Override
2551  public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
2552  return (Setter)super.reqSetPowerSavingOperationSetting(edt);
2553  }
2554  @Override
2555  public Setter reqSetRemoteControlSetting(byte[] edt) {
2556  return (Setter)super.reqSetRemoteControlSetting(edt);
2557  }
2558  @Override
2559  public Setter reqSetCurrentTimeSetting(byte[] edt) {
2560  return (Setter)super.reqSetCurrentTimeSetting(edt);
2561  }
2562  @Override
2563  public Setter reqSetCurrentDateSetting(byte[] edt) {
2564  return (Setter)super.reqSetCurrentDateSetting(edt);
2565  }
2566  @Override
2567  public Setter reqSetPowerLimitSetting(byte[] edt) {
2568  return (Setter)super.reqSetPowerLimitSetting(edt);
2569  }
2570 
2597  public Setter reqSetOperationSetting(byte[] edt) {
2598  reqSetProperty(EPC_OPERATION_SETTING, edt);
2599  return this;
2600  }
2625  public Setter reqSetVentilationOperationSetting(byte[] edt) {
2626  reqSetProperty(EPC_VENTILATION_OPERATION_SETTING, edt);
2627  return this;
2628  }
2654  public Setter reqSetBathroomPreWarmerOperationSetting(byte[] edt) {
2655  reqSetProperty(EPC_BATHROOM_PRE_WARMER_OPERATION_SETTING, edt);
2656  return this;
2657  }
2682  public Setter reqSetBathroomHeaterOperationSetting(byte[] edt) {
2683  reqSetProperty(EPC_BATHROOM_HEATER_OPERATION_SETTING, edt);
2684  return this;
2685  }
2710  public Setter reqSetBathroomDryerOperationSetting(byte[] edt) {
2711  reqSetProperty(EPC_BATHROOM_DRYER_OPERATION_SETTING, edt);
2712  return this;
2713  }
2738  public Setter reqSetCoolAirCirculatorOperationSetting(byte[] edt) {
2739  reqSetProperty(EPC_COOL_AIR_CIRCULATOR_OPERATION_SETTING, edt);
2740  return this;
2741  }
2765  public Setter reqSetVentilationAirFlowRateSetting(byte[] edt) {
2766  reqSetProperty(EPC_VENTILATION_AIR_FLOW_RATE_SETTING, edt);
2767  return this;
2768  }
2792  public Setter reqSetFilterCleaningReminderSignSetting(byte[] edt) {
2793  reqSetProperty(EPC_FILTER_CLEANING_REMINDER_SIGN_SETTING, edt);
2794  return this;
2795  }
2820  public Setter reqSetOnTimerBasedReservationSetting1(byte[] edt) {
2821  reqSetProperty(EPC_ON_TIMER_BASED_RESERVATION_SETTING1, edt);
2822  return this;
2823  }
2852  public Setter reqSetOnTimerBasedReservationSetting2(byte[] edt) {
2853  reqSetProperty(EPC_ON_TIMER_BASED_RESERVATION_SETTING2, edt);
2854  return this;
2855  }
2880  public Setter reqSetOnTimerSettingTime(byte[] edt) {
2881  reqSetProperty(EPC_ON_TIMER_SETTING_TIME, edt);
2882  return this;
2883  }
2908  public Setter reqSetOnTimerSettingRelativeTime(byte[] edt) {
2909  reqSetProperty(EPC_ON_TIMER_SETTING_RELATIVE_TIME, edt);
2910  return this;
2911  }
2935  public Setter reqSetOffTimerBasedReservationSetting(byte[] edt) {
2936  reqSetProperty(EPC_OFF_TIMER_BASED_RESERVATION_SETTING, edt);
2937  return this;
2938  }
2963  public Setter reqSetOffTimerSettingTime(byte[] edt) {
2964  reqSetProperty(EPC_OFF_TIMER_SETTING_TIME, edt);
2965  return this;
2966  }
2991  public Setter reqSetOffTimerSettingRelativeTime(byte[] edt) {
2992  reqSetProperty(EPC_OFF_TIMER_SETTING_RELATIVE_TIME, edt);
2993  return this;
2994  }
2995  }
2996 
2997  public static class Getter extends DeviceObject.Getter {
2998  public Getter(short dstEchoClassCode, byte dstEchoInstanceCode
2999  , String dstEchoAddress) {
3000  super(dstEchoClassCode, dstEchoInstanceCode
3001  , dstEchoAddress);
3002  }
3003 
3004  @Override
3005  public Getter reqGetProperty(byte epc) {
3006  return (Getter)super.reqGetProperty(epc);
3007  }
3008 
3009  @Override
3010  public Getter reqGetOperationStatus() {
3011  return (Getter)super.reqGetOperationStatus();
3012  }
3013  @Override
3014  public Getter reqGetInstallationLocation() {
3015  return (Getter)super.reqGetInstallationLocation();
3016  }
3017  @Override
3018  public Getter reqGetStandardVersionInformation() {
3019  return (Getter)super.reqGetStandardVersionInformation();
3020  }
3021  @Override
3022  public Getter reqGetIdentificationNumber() {
3023  return (Getter)super.reqGetIdentificationNumber();
3024  }
3025  @Override
3026  public Getter reqGetMeasuredInstantaneousPowerConsumption() {
3027  return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
3028  }
3029  @Override
3030  public Getter reqGetMeasuredCumulativePowerConsumption() {
3031  return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
3032  }
3033  @Override
3034  public Getter reqGetManufacturersFaultCode() {
3035  return (Getter)super.reqGetManufacturersFaultCode();
3036  }
3037  @Override
3038  public Getter reqGetCurrentLimitSetting() {
3039  return (Getter)super.reqGetCurrentLimitSetting();
3040  }
3041  @Override
3042  public Getter reqGetFaultStatus() {
3043  return (Getter)super.reqGetFaultStatus();
3044  }
3045  @Override
3046  public Getter reqGetFaultDescription() {
3047  return (Getter)super.reqGetFaultDescription();
3048  }
3049  @Override
3050  public Getter reqGetManufacturerCode() {
3051  return (Getter)super.reqGetManufacturerCode();
3052  }
3053  @Override
3054  public Getter reqGetBusinessFacilityCode() {
3055  return (Getter)super.reqGetBusinessFacilityCode();
3056  }
3057  @Override
3058  public Getter reqGetProductCode() {
3059  return (Getter)super.reqGetProductCode();
3060  }
3061  @Override
3062  public Getter reqGetProductionNumber() {
3063  return (Getter)super.reqGetProductionNumber();
3064  }
3065  @Override
3066  public Getter reqGetProductionDate() {
3067  return (Getter)super.reqGetProductionDate();
3068  }
3069  @Override
3070  public Getter reqGetPowerSavingOperationSetting() {
3071  return (Getter)super.reqGetPowerSavingOperationSetting();
3072  }
3073  @Override
3074  public Getter reqGetRemoteControlSetting() {
3075  return (Getter)super.reqGetRemoteControlSetting();
3076  }
3077  @Override
3078  public Getter reqGetCurrentTimeSetting() {
3079  return (Getter)super.reqGetCurrentTimeSetting();
3080  }
3081  @Override
3082  public Getter reqGetCurrentDateSetting() {
3083  return (Getter)super.reqGetCurrentDateSetting();
3084  }
3085  @Override
3086  public Getter reqGetPowerLimitSetting() {
3087  return (Getter)super.reqGetPowerLimitSetting();
3088  }
3089  @Override
3090  public Getter reqGetCumulativeOperatingTime() {
3091  return (Getter)super.reqGetCumulativeOperatingTime();
3092  }
3093  @Override
3094  public Getter reqGetStatusChangeAnnouncementPropertyMap() {
3095  return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
3096  }
3097  @Override
3098  public Getter reqGetSetPropertyMap() {
3099  return (Getter)super.reqGetSetPropertyMap();
3100  }
3101  @Override
3102  public Getter reqGetGetPropertyMap() {
3103  return (Getter)super.reqGetGetPropertyMap();
3104  }
3105 
3132  public Getter reqGetOperationSetting() {
3133  reqGetProperty(EPC_OPERATION_SETTING);
3134  return this;
3135  }
3160  public Getter reqGetVentilationOperationSetting() {
3161  reqGetProperty(EPC_VENTILATION_OPERATION_SETTING);
3162  return this;
3163  }
3189  public Getter reqGetBathroomPreWarmerOperationSetting() {
3191  return this;
3192  }
3217  public Getter reqGetBathroomHeaterOperationSetting() {
3218  reqGetProperty(EPC_BATHROOM_HEATER_OPERATION_SETTING);
3219  return this;
3220  }
3245  public Getter reqGetBathroomDryerOperationSetting() {
3246  reqGetProperty(EPC_BATHROOM_DRYER_OPERATION_SETTING);
3247  return this;
3248  }
3273  public Getter reqGetCoolAirCirculatorOperationSetting() {
3275  return this;
3276  }
3299  public Getter reqGetMeasuredRelativeBathroomHumidity() {
3301  return this;
3302  }
3325  public Getter reqGetMeasuredBathroomTemperature() {
3326  reqGetProperty(EPC_MEASURED_BATHROOM_TEMPERATURE);
3327  return this;
3328  }
3352  public Getter reqGetVentilationAirFlowRateSetting() {
3353  reqGetProperty(EPC_VENTILATION_AIR_FLOW_RATE_SETTING);
3354  return this;
3355  }
3379  public Getter reqGetFilterCleaningReminderSignSetting() {
3381  return this;
3382  }
3405  public Getter reqGetHumanBodyDetectionStatus() {
3406  reqGetProperty(EPC_HUMAN_BODY_DETECTION_STATUS);
3407  return this;
3408  }
3433  public Getter reqGetOnTimerBasedReservationSetting1() {
3435  return this;
3436  }
3465  public Getter reqGetOnTimerBasedReservationSetting2() {
3467  return this;
3468  }
3493  public Getter reqGetOnTimerSettingTime() {
3494  reqGetProperty(EPC_ON_TIMER_SETTING_TIME);
3495  return this;
3496  }
3521  public Getter reqGetOnTimerSettingRelativeTime() {
3522  reqGetProperty(EPC_ON_TIMER_SETTING_RELATIVE_TIME);
3523  return this;
3524  }
3548  public Getter reqGetOffTimerBasedReservationSetting() {
3550  return this;
3551  }
3576  public Getter reqGetOffTimerSettingTime() {
3577  reqGetProperty(EPC_OFF_TIMER_SETTING_TIME);
3578  return this;
3579  }
3604  public Getter reqGetOffTimerSettingRelativeTime() {
3605  reqGetProperty(EPC_OFF_TIMER_SETTING_RELATIVE_TIME);
3606  return this;
3607  }
3608  }
3609 
3610  public static class Informer extends DeviceObject.Informer {
3611  public Informer(short echoClassCode, byte echoInstanceCode
3612  , String dstEchoAddress, boolean isSelfObject) {
3613  super(echoClassCode, echoInstanceCode
3614  , dstEchoAddress, isSelfObject);
3615  }
3616 
3617  @Override
3618  public Informer reqInformProperty(byte epc) {
3619  return (Informer)super.reqInformProperty(epc);
3620  }
3621  @Override
3622  public Informer reqInformOperationStatus() {
3623  return (Informer)super.reqInformOperationStatus();
3624  }
3625  @Override
3626  public Informer reqInformInstallationLocation() {
3627  return (Informer)super.reqInformInstallationLocation();
3628  }
3629  @Override
3630  public Informer reqInformStandardVersionInformation() {
3631  return (Informer)super.reqInformStandardVersionInformation();
3632  }
3633  @Override
3634  public Informer reqInformIdentificationNumber() {
3635  return (Informer)super.reqInformIdentificationNumber();
3636  }
3637  @Override
3638  public Informer reqInformMeasuredInstantaneousPowerConsumption() {
3639  return (Informer)super.reqInformMeasuredInstantaneousPowerConsumption();
3640  }
3641  @Override
3642  public Informer reqInformMeasuredCumulativePowerConsumption() {
3643  return (Informer)super.reqInformMeasuredCumulativePowerConsumption();
3644  }
3645  @Override
3646  public Informer reqInformManufacturersFaultCode() {
3647  return (Informer)super.reqInformManufacturersFaultCode();
3648  }
3649  @Override
3650  public Informer reqInformCurrentLimitSetting() {
3651  return (Informer)super.reqInformCurrentLimitSetting();
3652  }
3653  @Override
3654  public Informer reqInformFaultStatus() {
3655  return (Informer)super.reqInformFaultStatus();
3656  }
3657  @Override
3658  public Informer reqInformFaultDescription() {
3659  return (Informer)super.reqInformFaultDescription();
3660  }
3661  @Override
3662  public Informer reqInformManufacturerCode() {
3663  return (Informer)super.reqInformManufacturerCode();
3664  }
3665  @Override
3666  public Informer reqInformBusinessFacilityCode() {
3667  return (Informer)super.reqInformBusinessFacilityCode();
3668  }
3669  @Override
3670  public Informer reqInformProductCode() {
3671  return (Informer)super.reqInformProductCode();
3672  }
3673  @Override
3674  public Informer reqInformProductionNumber() {
3675  return (Informer)super.reqInformProductionNumber();
3676  }
3677  @Override
3678  public Informer reqInformProductionDate() {
3679  return (Informer)super.reqInformProductionDate();
3680  }
3681  @Override
3682  public Informer reqInformPowerSavingOperationSetting() {
3683  return (Informer)super.reqInformPowerSavingOperationSetting();
3684  }
3685  @Override
3686  public Informer reqInformRemoteControlSetting() {
3687  return (Informer)super.reqInformRemoteControlSetting();
3688  }
3689  @Override
3690  public Informer reqInformCurrentTimeSetting() {
3691  return (Informer)super.reqInformCurrentTimeSetting();
3692  }
3693  @Override
3694  public Informer reqInformCurrentDateSetting() {
3695  return (Informer)super.reqInformCurrentDateSetting();
3696  }
3697  @Override
3698  public Informer reqInformPowerLimitSetting() {
3699  return (Informer)super.reqInformPowerLimitSetting();
3700  }
3701  @Override
3702  public Informer reqInformCumulativeOperatingTime() {
3703  return (Informer)super.reqInformCumulativeOperatingTime();
3704  }
3705  @Override
3706  public Informer reqInformStatusChangeAnnouncementPropertyMap() {
3707  return (Informer)super.reqInformStatusChangeAnnouncementPropertyMap();
3708  }
3709  @Override
3710  public Informer reqInformSetPropertyMap() {
3711  return (Informer)super.reqInformSetPropertyMap();
3712  }
3713  @Override
3714  public Informer reqInformGetPropertyMap() {
3715  return (Informer)super.reqInformGetPropertyMap();
3716  }
3717 
3744  public Informer reqInformOperationSetting() {
3745  reqInformProperty(EPC_OPERATION_SETTING);
3746  return this;
3747  }
3772  public Informer reqInformVentilationOperationSetting() {
3773  reqInformProperty(EPC_VENTILATION_OPERATION_SETTING);
3774  return this;
3775  }
3801  public Informer reqInformBathroomPreWarmerOperationSetting() {
3802  reqInformProperty(EPC_BATHROOM_PRE_WARMER_OPERATION_SETTING);
3803  return this;
3804  }
3829  public Informer reqInformBathroomHeaterOperationSetting() {
3830  reqInformProperty(EPC_BATHROOM_HEATER_OPERATION_SETTING);
3831  return this;
3832  }
3857  public Informer reqInformBathroomDryerOperationSetting() {
3858  reqInformProperty(EPC_BATHROOM_DRYER_OPERATION_SETTING);
3859  return this;
3860  }
3885  public Informer reqInformCoolAirCirculatorOperationSetting() {
3886  reqInformProperty(EPC_COOL_AIR_CIRCULATOR_OPERATION_SETTING);
3887  return this;
3888  }
3911  public Informer reqInformMeasuredRelativeBathroomHumidity() {
3912  reqInformProperty(EPC_MEASURED_RELATIVE_BATHROOM_HUMIDITY);
3913  return this;
3914  }
3937  public Informer reqInformMeasuredBathroomTemperature() {
3938  reqInformProperty(EPC_MEASURED_BATHROOM_TEMPERATURE);
3939  return this;
3940  }
3964  public Informer reqInformVentilationAirFlowRateSetting() {
3965  reqInformProperty(EPC_VENTILATION_AIR_FLOW_RATE_SETTING);
3966  return this;
3967  }
3991  public Informer reqInformFilterCleaningReminderSignSetting() {
3992  reqInformProperty(EPC_FILTER_CLEANING_REMINDER_SIGN_SETTING);
3993  return this;
3994  }
4017  public Informer reqInformHumanBodyDetectionStatus() {
4018  reqInformProperty(EPC_HUMAN_BODY_DETECTION_STATUS);
4019  return this;
4020  }
4045  public Informer reqInformOnTimerBasedReservationSetting1() {
4046  reqInformProperty(EPC_ON_TIMER_BASED_RESERVATION_SETTING1);
4047  return this;
4048  }
4077  public Informer reqInformOnTimerBasedReservationSetting2() {
4078  reqInformProperty(EPC_ON_TIMER_BASED_RESERVATION_SETTING2);
4079  return this;
4080  }
4105  public Informer reqInformOnTimerSettingTime() {
4106  reqInformProperty(EPC_ON_TIMER_SETTING_TIME);
4107  return this;
4108  }
4133  public Informer reqInformOnTimerSettingRelativeTime() {
4134  reqInformProperty(EPC_ON_TIMER_SETTING_RELATIVE_TIME);
4135  return this;
4136  }
4160  public Informer reqInformOffTimerBasedReservationSetting() {
4161  reqInformProperty(EPC_OFF_TIMER_BASED_RESERVATION_SETTING);
4162  return this;
4163  }
4188  public Informer reqInformOffTimerSettingTime() {
4189  reqInformProperty(EPC_OFF_TIMER_SETTING_TIME);
4190  return this;
4191  }
4216  public Informer reqInformOffTimerSettingRelativeTime() {
4217  reqInformProperty(EPC_OFF_TIMER_SETTING_RELATIVE_TIME);
4218  return this;
4219  }
4220  }
4221 
4222  public static class Proxy extends BathroomHeaterAndDryer {
4223  public Proxy(byte instanceCode) {
4224  super();
4225  mEchoInstanceCode = instanceCode;
4226  }
4227  @Override
4228  public byte getInstanceCode() {
4229  return mEchoInstanceCode;
4230  }
4231  @Override
4232  protected byte[] getOperationStatus() {return null;}
4233  @Override
4234  protected boolean setInstallationLocation(byte[] edt) {return false;}
4235  @Override
4236  protected byte[] getInstallationLocation() {return null;}
4237  @Override
4238  protected byte[] getStandardVersionInformation() {return null;}
4239  @Override
4240  protected byte[] getFaultStatus() {return null;}
4241  @Override
4242  protected byte[] getManufacturerCode() {return null;}
4243  @Override
4244  protected boolean setOperationSetting(byte[] edt) {return false;}
4245  @Override
4246  protected byte[] getOperationSetting() {return null;}
4247  @Override
4248  protected boolean setBathroomPreWarmerOperationSetting(byte[] edt) {return false;}
4249  @Override
4250  protected byte[] getBathroomPreWarmerOperationSetting() {return null;}
4251  @Override
4252  protected boolean setBathroomDryerOperationSetting(byte[] edt) {return false;}
4253  @Override
4254  protected byte[] getBathroomDryerOperationSetting() {return null;}
4255  }
4256 
4257  public static Setter setG() {
4258  return setG((byte)0);
4259  }
4260 
4261  public static Setter setG(byte instanceCode) {
4262  return setG(instanceCode, true);
4263  }
4264 
4265  public static Setter setG(boolean responseRequired) {
4266  return setG((byte)0, responseRequired);
4267  }
4268 
4269  public static Setter setG(byte instanceCode, boolean responseRequired) {
4270  return new Setter(ECHO_CLASS_CODE, instanceCode
4271  , EchoSocket.MULTICAST_ADDRESS, responseRequired);
4272  }
4273 
4274  public static Getter getG() {
4275  return getG((byte)0);
4276  }
4277 
4278  public static Getter getG(byte instanceCode) {
4279  return new Getter(ECHO_CLASS_CODE, instanceCode
4281  }
4282 
4283  public static Informer informG() {
4284  return informG((byte)0);
4285  }
4286 
4287  public static Informer informG(byte instanceCode) {
4288  return new Informer(ECHO_CLASS_CODE, instanceCode
4289  , EchoSocket.MULTICAST_ADDRESS, false);
4290  }
4291 
4292 }
final void removeSetProperty(byte epc)
Definition: EchoObject.java:98
final void addStatusChangeAnnouncementProperty(byte epc)
Definition: EchoObject.java:71
final void addGetProperty(byte epc)
final void addSetProperty(byte epc)
Definition: EchoObject.java:93
static Setter setG(byte instanceCode, boolean responseRequired)
abstract boolean setInstallationLocation(byte[] edt)
static final String MULTICAST_ADDRESS
Definition: EchoSocket.java:53