OpenECHO
 All Classes Namespaces Files Functions Variables
LPGasMeter.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 LPGasMeter extends DeviceObject {
27 
28  public static final short ECHO_CLASS_CODE = (short)0x0283;
29 
30  public static final byte EPC_INTEGRAL_GAS_CONSUMPTION_OF_METERING_DATA1 = (byte)0xE0;
31  public static final byte EPC_INTEGRAL_GAS_CONSUMPTION_OF_METERING_DATA2 = (byte)0xE1;
32  public static final byte EPC_ERROR_DETECTION_STATUSOF_METERING_DATA = (byte)0xE2;
33  public static final byte EPC_SECURITY_DATA1 = (byte)0xE3;
34  public static final byte EPC_SECURITY_DATA2 = (byte)0xE4;
35  public static final byte EPC_CENTER_VALVE_SHUT_OFF_STATUS = (byte)0xE5;
36  public static final byte EPC_CENTER_VALVE_SHUT_OFF_RECOVERY_PERMISSION_SETTING_STATUS = (byte)0xE6;
37  public static final byte EPC_EMERGENCY_VALVE_SHUT_OFF_STATUS = (byte)0xE7;
38  public static final byte EPC_SHUT_OFF_VALVE_OPEN_CLOSE_STATUS = (byte)0xE8;
39  public static final byte EPC_RESIDUAL_VOLUME_CONTROL_WARNING = (byte)0xE9;
40  public static final byte EPC_SET_VALUE_OF_RESIDUAL_VOLUME_CONTROL_WARNING_LEVEL1 = (byte)0xEA;
41  public static final byte EPC_SET_VALUE_OF_RESIDUAL_VOLUME_CONTROL_WARNING_LEVEL2 = (byte)0xEB;
42  public static final byte EPC_SET_VALUE_OF_RESIDUAL_VOLUME_CONTROL_WARNING_LEVEL3 = (byte)0xEC;
43  public static final byte EPC_SLIGHT_LEAK_TIMER_VALUE_GAS_FLOW_RATE_CONTINUATION = (byte)0xED;
44  public static final byte EPC_SLIGHT_LEAK_TIMER_VALUE_WITHOUT_PRESSURE_INCREASE = (byte)0xEE;
45  public static final byte EPC_SHUT_OFF_REASON_LOG = (byte)0xEF;
46  public static final byte EPC_MAXIMUM_VALUE_OF_SUPPLY_PRESSURE_DATA = (byte)0xD0;
47  public static final byte EPC_MINIMUM_VALUE_OF_SUPPLY_PRESSURE_DATA = (byte)0xD1;
48  public static final byte EPC_CURRENT_VALUE_OF_SUPPLY_PRESSURE_DATA = (byte)0xD2;
49  public static final byte EPC_MAXIMUM_VALUE_OF_BLOCK_PRESSURE_DATA = (byte)0xD3;
50  public static final byte EPC_MINIMUM_VALUE_OF_BLOCK_PRESSURE_DATA = (byte)0xD4;
51  public static final byte EPC_CURRENT_VALUE_OF_BLOCK_PRESSURE_DATA = (byte)0xD5;
52  public static final byte EPC_NUMBER_OF_BLOCK_PRESSURE_SUPPLY_PRESSURE_ERROR_DAYS_TIME = (byte)0xD6;
53  public static final byte EPC_TEST_CALL_SETTING = (byte)0xD7;
54 
55  @Override
56  protected void setupPropertyMaps() {
57  super.setupPropertyMaps();
58 
67  }
68 
69  @Override
70  public void onNew() {
71  super.onNew();
72  Echo.getEventListener().onNewLPGasMeter(this);
73  }
74 
75  @Override
76  public short getEchoClassCode() {
77  return ECHO_CLASS_CODE;
78  }
79 
104  protected boolean setOperationStatus(byte[] edt) {return false;}
129  protected abstract byte[] getOperationStatus();
153  protected abstract byte[] getIntegralGasConsumptionOfMeteringData1();
177  protected boolean isValidIntegralGasConsumptionOfMeteringData1(byte[] edt) {
178  if(edt == null || !(edt.length == 4)) return false;
179  return true;
180  }
204  protected abstract byte[] getIntegralGasConsumptionOfMeteringData2();
228  protected boolean isValidIntegralGasConsumptionOfMeteringData2(byte[] edt) {
229  if(edt == null || !(edt.length == 4)) return false;
230  return true;
231  }
257  protected byte[] getErrorDetectionStatusofMeteringData() {return null;}
283  protected boolean isValidErrorDetectionStatusofMeteringData(byte[] edt) {
284  if(edt == null || !(edt.length == 1)) return false;
285  return true;
286  }
309  protected byte[] getSecurityData1() {return null;}
332  protected boolean isValidSecurityData1(byte[] edt) {
333  if(edt == null || !(edt.length == 4)) return false;
334  return true;
335  }
358  protected byte[] getSecurityData2() {return null;}
381  protected boolean isValidSecurityData2(byte[] edt) {
382  if(edt == null || !(edt.length == 4)) return false;
383  return true;
384  }
412  protected byte[] getCenterValveShutOffStatus() {return null;}
440  protected boolean isValidCenterValveShutOffStatus(byte[] edt) {
441  if(edt == null || !(edt.length == 1)) return false;
442  return true;
443  }
494  if(edt == null || !(edt.length == 1)) return false;
495  return true;
496  }
521  protected byte[] getEmergencyValveShutOffStatus() {return null;}
546  protected boolean isValidEmergencyValveShutOffStatus(byte[] edt) {
547  if(edt == null || !(edt.length == 1)) return false;
548  return true;
549  }
572  protected byte[] getShutOffValveOpenCloseStatus() {return null;}
595  protected boolean isValidShutOffValveOpenCloseStatus(byte[] edt) {
596  if(edt == null || !(edt.length == 1)) return false;
597  return true;
598  }
626  protected byte[] getResidualVolumeControlWarning() {return null;}
654  protected boolean isValidResidualVolumeControlWarning(byte[] edt) {
655  if(edt == null || !(edt.length == 1)) return false;
656  return true;
657  }
680  protected boolean setSetValueOfResidualVolumeControlWarningLevel1(byte[] edt) {return false;}
703  protected byte[] getSetValueOfResidualVolumeControlWarningLevel1() {return null;}
727  if(edt == null || !(edt.length == 3)) return false;
728  return true;
729  }
752  protected boolean setSetValueOfResidualVolumeControlWarningLevel2(byte[] edt) {return false;}
775  protected byte[] getSetValueOfResidualVolumeControlWarningLevel2() {return null;}
799  if(edt == null || !(edt.length == 3)) return false;
800  return true;
801  }
824  protected boolean setSetValueOfResidualVolumeControlWarningLevel3(byte[] edt) {return false;}
847  protected byte[] getSetValueOfResidualVolumeControlWarningLevel3() {return null;}
871  if(edt == null || !(edt.length == 3)) return false;
872  return true;
873  }
897  protected byte[] getSlightLeakTimerValueGasFlowRateContinuation() {return null;}
922  if(edt == null || !(edt.length == 1)) return false;
923  return true;
924  }
948  protected byte[] getSlightLeakTimerValueWithoutPressureIncrease() {return null;}
973  if(edt == null || !(edt.length == 1)) return false;
974  return true;
975  }
999  protected byte[] getShutOffReasonLog() {return null;}
1023  protected boolean isValidShutOffReasonLog(byte[] edt) {
1024  if(edt == null || !(edt.length == 3)) return false;
1025  return true;
1026  }
1051  protected byte[] getMaximumValueOfSupplyPressureData() {return null;}
1076  protected boolean isValidMaximumValueOfSupplyPressureData(byte[] edt) {
1077  if(edt == null || !(edt.length == 2)) return false;
1078  return true;
1079  }
1104  protected byte[] getMinimumValueOfSupplyPressureData() {return null;}
1129  protected boolean isValidMinimumValueOfSupplyPressureData(byte[] edt) {
1130  if(edt == null || !(edt.length == 2)) return false;
1131  return true;
1132  }
1157  protected byte[] getCurrentValueOfSupplyPressureData() {return null;}
1182  protected boolean isValidCurrentValueOfSupplyPressureData(byte[] edt) {
1183  if(edt == null || !(edt.length == 2)) return false;
1184  return true;
1185  }
1210  protected byte[] getMaximumValueOfBlockPressureData() {return null;}
1235  protected boolean isValidMaximumValueOfBlockPressureData(byte[] edt) {
1236  if(edt == null || !(edt.length == 2)) return false;
1237  return true;
1238  }
1263  protected byte[] getMinimumValueOfBlockPressureData() {return null;}
1288  protected boolean isValidMinimumValueOfBlockPressureData(byte[] edt) {
1289  if(edt == null || !(edt.length == 2)) return false;
1290  return true;
1291  }
1316  protected byte[] getCurrentValueOfBlockPressureData() {return null;}
1341  protected boolean isValidCurrentValueOfBlockPressureData(byte[] edt) {
1342  if(edt == null || !(edt.length == 2)) return false;
1343  return true;
1344  }
1391  if(edt == null || !(edt.length == 4)) return false;
1392  return true;
1393  }
1416  protected boolean setTestCallSetting(byte[] edt) {return false;}
1439  protected byte[] getTestCallSetting() {return null;}
1462  protected boolean isValidTestCallSetting(byte[] edt) {
1463  if(edt == null || !(edt.length == 1)) return false;
1464  return true;
1465  }
1466 
1467  @Override
1468  protected synchronized boolean setProperty(EchoProperty property) {
1469  boolean success = super.setProperty(property);
1470  if(success) return success;
1471 
1472  switch(property.epc) {
1476  case EPC_TEST_CALL_SETTING : return setTestCallSetting(property.edt);
1477  default : return false;
1478  }
1479  }
1480 
1481  @Override
1482  protected synchronized byte[] getProperty(byte epc) {
1483  byte[] edt = super.getProperty(epc);
1484  if(edt != null) return edt;
1485 
1486  switch(epc) {
1490  case EPC_SECURITY_DATA1 : return getSecurityData1();
1491  case EPC_SECURITY_DATA2 : return getSecurityData2();
1510  case EPC_TEST_CALL_SETTING : return getTestCallSetting();
1511  default : return null;
1512  }
1513  }
1514 
1515  @Override
1516  protected synchronized boolean isValidProperty(EchoProperty property) {
1517  boolean valid = super.isValidProperty(property);
1518  if(valid) return valid;
1519 
1520  switch(property.epc) {
1524  case EPC_SECURITY_DATA1 : return isValidSecurityData1(property.edt);
1525  case EPC_SECURITY_DATA2 : return isValidSecurityData2(property.edt);
1536  case EPC_SHUT_OFF_REASON_LOG : return isValidShutOffReasonLog(property.edt);
1544  case EPC_TEST_CALL_SETTING : return isValidTestCallSetting(property.edt);
1545  default : return false;
1546  }
1547  }
1548 
1549  @Override
1550  public Setter set() {
1551  return set(true);
1552  }
1553 
1554  @Override
1555  public Setter set(boolean responseRequired) {
1556  return new Setter(getEchoClassCode(), getInstanceCode()
1557  , getNode().getAddressStr(), responseRequired);
1558  }
1559 
1560  @Override
1561  public Getter get() {
1562  return new Getter(getEchoClassCode(), getInstanceCode()
1563  , getNode().getAddressStr());
1564  }
1565 
1566  @Override
1567  public Informer inform() {
1568  return inform(isSelfObject());
1569  }
1570 
1571  @Override
1572  protected Informer inform(boolean multicast) {
1573  String address;
1574  if(multicast) {
1575  address = EchoSocket.MULTICAST_ADDRESS;
1576  } else {
1577  address = getNode().getAddressStr();
1578  }
1579  return new Informer(getEchoClassCode(), getInstanceCode()
1580  , address, isSelfObject());
1581  }
1582 
1583  public static class Receiver extends DeviceObject.Receiver {
1584 
1585  @Override
1586  protected boolean onSetProperty(EchoObject eoj, short tid, byte esv,
1587  EchoProperty property, boolean success) {
1588  boolean ret = super.onSetProperty(eoj, tid, esv, property, success);
1589  if(ret) return true;
1590 
1591  switch(property.epc) {
1593  onSetSetValueOfResidualVolumeControlWarningLevel1(eoj, tid, esv, property, success);
1594  return true;
1596  onSetSetValueOfResidualVolumeControlWarningLevel2(eoj, tid, esv, property, success);
1597  return true;
1599  onSetSetValueOfResidualVolumeControlWarningLevel3(eoj, tid, esv, property, success);
1600  return true;
1601  case EPC_TEST_CALL_SETTING :
1602  onSetTestCallSetting(eoj, tid, esv, property, success);
1603  return true;
1604  default :
1605  return false;
1606  }
1607  }
1608 
1609  @Override
1610  protected boolean onGetProperty(EchoObject eoj, short tid, byte esv,
1611  EchoProperty property, boolean success) {
1612  boolean ret = super.onGetProperty(eoj, tid, esv, property, success);
1613  if(ret) return true;
1614 
1615  switch(property.epc) {
1617  onGetIntegralGasConsumptionOfMeteringData1(eoj, tid, esv, property, success);
1618  return true;
1620  onGetIntegralGasConsumptionOfMeteringData2(eoj, tid, esv, property, success);
1621  return true;
1623  onGetErrorDetectionStatusofMeteringData(eoj, tid, esv, property, success);
1624  return true;
1625  case EPC_SECURITY_DATA1 :
1626  onGetSecurityData1(eoj, tid, esv, property, success);
1627  return true;
1628  case EPC_SECURITY_DATA2 :
1629  onGetSecurityData2(eoj, tid, esv, property, success);
1630  return true;
1632  onGetCenterValveShutOffStatus(eoj, tid, esv, property, success);
1633  return true;
1635  onGetCenterValveShutOffRecoveryPermissionSettingStatus(eoj, tid, esv, property, success);
1636  return true;
1638  onGetEmergencyValveShutOffStatus(eoj, tid, esv, property, success);
1639  return true;
1641  onGetShutOffValveOpenCloseStatus(eoj, tid, esv, property, success);
1642  return true;
1644  onGetResidualVolumeControlWarning(eoj, tid, esv, property, success);
1645  return true;
1647  onGetSetValueOfResidualVolumeControlWarningLevel1(eoj, tid, esv, property, success);
1648  return true;
1650  onGetSetValueOfResidualVolumeControlWarningLevel2(eoj, tid, esv, property, success);
1651  return true;
1653  onGetSetValueOfResidualVolumeControlWarningLevel3(eoj, tid, esv, property, success);
1654  return true;
1656  onGetSlightLeakTimerValueGasFlowRateContinuation(eoj, tid, esv, property, success);
1657  return true;
1659  onGetSlightLeakTimerValueWithoutPressureIncrease(eoj, tid, esv, property, success);
1660  return true;
1661  case EPC_SHUT_OFF_REASON_LOG :
1662  onGetShutOffReasonLog(eoj, tid, esv, property, success);
1663  return true;
1665  onGetMaximumValueOfSupplyPressureData(eoj, tid, esv, property, success);
1666  return true;
1668  onGetMinimumValueOfSupplyPressureData(eoj, tid, esv, property, success);
1669  return true;
1671  onGetCurrentValueOfSupplyPressureData(eoj, tid, esv, property, success);
1672  return true;
1674  onGetMaximumValueOfBlockPressureData(eoj, tid, esv, property, success);
1675  return true;
1677  onGetMinimumValueOfBlockPressureData(eoj, tid, esv, property, success);
1678  return true;
1680  onGetCurrentValueOfBlockPressureData(eoj, tid, esv, property, success);
1681  return true;
1683  onGetNumberOfBlockPressureSupplyPressureErrorDaysTime(eoj, tid, esv, property, success);
1684  return true;
1685  case EPC_TEST_CALL_SETTING :
1686  onGetTestCallSetting(eoj, tid, esv, property, success);
1687  return true;
1688  default :
1689  return false;
1690  }
1691  }
1692 
1716  protected void onGetIntegralGasConsumptionOfMeteringData1(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
1740  protected void onGetIntegralGasConsumptionOfMeteringData2(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
1766  protected void onGetErrorDetectionStatusofMeteringData(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
1789  protected void onGetSecurityData1(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
1812  protected void onGetSecurityData2(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
1840  protected void onGetCenterValveShutOffStatus(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
1865  protected void onGetCenterValveShutOffRecoveryPermissionSettingStatus(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
1890  protected void onGetEmergencyValveShutOffStatus(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
1913  protected void onGetShutOffValveOpenCloseStatus(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
1941  protected void onGetResidualVolumeControlWarning(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
1964  protected void onSetSetValueOfResidualVolumeControlWarningLevel1(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
1987  protected void onGetSetValueOfResidualVolumeControlWarningLevel1(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2010  protected void onSetSetValueOfResidualVolumeControlWarningLevel2(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2033  protected void onGetSetValueOfResidualVolumeControlWarningLevel2(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2056  protected void onSetSetValueOfResidualVolumeControlWarningLevel3(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2079  protected void onGetSetValueOfResidualVolumeControlWarningLevel3(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2103  protected void onGetSlightLeakTimerValueGasFlowRateContinuation(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2127  protected void onGetSlightLeakTimerValueWithoutPressureIncrease(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2151  protected void onGetShutOffReasonLog(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2176  protected void onGetMaximumValueOfSupplyPressureData(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2201  protected void onGetMinimumValueOfSupplyPressureData(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2226  protected void onGetCurrentValueOfSupplyPressureData(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2251  protected void onGetMaximumValueOfBlockPressureData(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2276  protected void onGetMinimumValueOfBlockPressureData(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2301  protected void onGetCurrentValueOfBlockPressureData(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2324  protected void onGetNumberOfBlockPressureSupplyPressureErrorDaysTime(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2347  protected void onSetTestCallSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2370  protected void onGetTestCallSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}
2371  }
2372 
2373  public static class Setter extends DeviceObject.Setter {
2374  public Setter(short dstEchoClassCode, byte dstEchoInstanceCode
2375  , String dstEchoAddress, boolean responseRequired) {
2376  super(dstEchoClassCode, dstEchoInstanceCode
2377  , dstEchoAddress, responseRequired);
2378  }
2379 
2380  @Override
2381  public Setter reqSetProperty(byte epc, byte[] edt) {
2382  return (Setter)super.reqSetProperty(epc, edt);
2383  }
2384 
2385  @Override
2386  public Setter reqSetOperationStatus(byte[] edt) {
2387  return (Setter)super.reqSetOperationStatus(edt);
2388  }
2389  @Override
2390  public Setter reqSetInstallationLocation(byte[] edt) {
2391  return (Setter)super.reqSetInstallationLocation(edt);
2392  }
2393  @Override
2394  public Setter reqSetCurrentLimitSetting(byte[] edt) {
2395  return (Setter)super.reqSetCurrentLimitSetting(edt);
2396  }
2397  @Override
2398  public Setter reqSetPowerSavingOperationSetting(byte[] edt) {
2399  return (Setter)super.reqSetPowerSavingOperationSetting(edt);
2400  }
2401  @Override
2402  public Setter reqSetRemoteControlSetting(byte[] edt) {
2403  return (Setter)super.reqSetRemoteControlSetting(edt);
2404  }
2405  @Override
2406  public Setter reqSetCurrentTimeSetting(byte[] edt) {
2407  return (Setter)super.reqSetCurrentTimeSetting(edt);
2408  }
2409  @Override
2410  public Setter reqSetCurrentDateSetting(byte[] edt) {
2411  return (Setter)super.reqSetCurrentDateSetting(edt);
2412  }
2413  @Override
2414  public Setter reqSetPowerLimitSetting(byte[] edt) {
2415  return (Setter)super.reqSetPowerLimitSetting(edt);
2416  }
2417 
2440  public Setter reqSetSetValueOfResidualVolumeControlWarningLevel1(byte[] edt) {
2442  return this;
2443  }
2466  public Setter reqSetSetValueOfResidualVolumeControlWarningLevel2(byte[] edt) {
2468  return this;
2469  }
2492  public Setter reqSetSetValueOfResidualVolumeControlWarningLevel3(byte[] edt) {
2494  return this;
2495  }
2518  public Setter reqSetTestCallSetting(byte[] edt) {
2519  reqSetProperty(EPC_TEST_CALL_SETTING, edt);
2520  return this;
2521  }
2522  }
2523 
2524  public static class Getter extends DeviceObject.Getter {
2525  public Getter(short dstEchoClassCode, byte dstEchoInstanceCode
2526  , String dstEchoAddress) {
2527  super(dstEchoClassCode, dstEchoInstanceCode
2528  , dstEchoAddress);
2529  }
2530 
2531  @Override
2532  public Getter reqGetProperty(byte epc) {
2533  return (Getter)super.reqGetProperty(epc);
2534  }
2535 
2536  @Override
2537  public Getter reqGetOperationStatus() {
2538  return (Getter)super.reqGetOperationStatus();
2539  }
2540  @Override
2541  public Getter reqGetInstallationLocation() {
2542  return (Getter)super.reqGetInstallationLocation();
2543  }
2544  @Override
2545  public Getter reqGetStandardVersionInformation() {
2546  return (Getter)super.reqGetStandardVersionInformation();
2547  }
2548  @Override
2549  public Getter reqGetIdentificationNumber() {
2550  return (Getter)super.reqGetIdentificationNumber();
2551  }
2552  @Override
2553  public Getter reqGetMeasuredInstantaneousPowerConsumption() {
2554  return (Getter)super.reqGetMeasuredInstantaneousPowerConsumption();
2555  }
2556  @Override
2557  public Getter reqGetMeasuredCumulativePowerConsumption() {
2558  return (Getter)super.reqGetMeasuredCumulativePowerConsumption();
2559  }
2560  @Override
2561  public Getter reqGetManufacturersFaultCode() {
2562  return (Getter)super.reqGetManufacturersFaultCode();
2563  }
2564  @Override
2565  public Getter reqGetCurrentLimitSetting() {
2566  return (Getter)super.reqGetCurrentLimitSetting();
2567  }
2568  @Override
2569  public Getter reqGetFaultStatus() {
2570  return (Getter)super.reqGetFaultStatus();
2571  }
2572  @Override
2573  public Getter reqGetFaultDescription() {
2574  return (Getter)super.reqGetFaultDescription();
2575  }
2576  @Override
2577  public Getter reqGetManufacturerCode() {
2578  return (Getter)super.reqGetManufacturerCode();
2579  }
2580  @Override
2581  public Getter reqGetBusinessFacilityCode() {
2582  return (Getter)super.reqGetBusinessFacilityCode();
2583  }
2584  @Override
2585  public Getter reqGetProductCode() {
2586  return (Getter)super.reqGetProductCode();
2587  }
2588  @Override
2589  public Getter reqGetProductionNumber() {
2590  return (Getter)super.reqGetProductionNumber();
2591  }
2592  @Override
2593  public Getter reqGetProductionDate() {
2594  return (Getter)super.reqGetProductionDate();
2595  }
2596  @Override
2597  public Getter reqGetPowerSavingOperationSetting() {
2598  return (Getter)super.reqGetPowerSavingOperationSetting();
2599  }
2600  @Override
2601  public Getter reqGetRemoteControlSetting() {
2602  return (Getter)super.reqGetRemoteControlSetting();
2603  }
2604  @Override
2605  public Getter reqGetCurrentTimeSetting() {
2606  return (Getter)super.reqGetCurrentTimeSetting();
2607  }
2608  @Override
2609  public Getter reqGetCurrentDateSetting() {
2610  return (Getter)super.reqGetCurrentDateSetting();
2611  }
2612  @Override
2613  public Getter reqGetPowerLimitSetting() {
2614  return (Getter)super.reqGetPowerLimitSetting();
2615  }
2616  @Override
2617  public Getter reqGetCumulativeOperatingTime() {
2618  return (Getter)super.reqGetCumulativeOperatingTime();
2619  }
2620  @Override
2621  public Getter reqGetStatusChangeAnnouncementPropertyMap() {
2622  return (Getter)super.reqGetStatusChangeAnnouncementPropertyMap();
2623  }
2624  @Override
2625  public Getter reqGetSetPropertyMap() {
2626  return (Getter)super.reqGetSetPropertyMap();
2627  }
2628  @Override
2629  public Getter reqGetGetPropertyMap() {
2630  return (Getter)super.reqGetGetPropertyMap();
2631  }
2632 
2656  public Getter reqGetIntegralGasConsumptionOfMeteringData1() {
2658  return this;
2659  }
2683  public Getter reqGetIntegralGasConsumptionOfMeteringData2() {
2685  return this;
2686  }
2712  public Getter reqGetErrorDetectionStatusofMeteringData() {
2714  return this;
2715  }
2738  public Getter reqGetSecurityData1() {
2739  reqGetProperty(EPC_SECURITY_DATA1);
2740  return this;
2741  }
2764  public Getter reqGetSecurityData2() {
2765  reqGetProperty(EPC_SECURITY_DATA2);
2766  return this;
2767  }
2795  public Getter reqGetCenterValveShutOffStatus() {
2796  reqGetProperty(EPC_CENTER_VALVE_SHUT_OFF_STATUS);
2797  return this;
2798  }
2823  public Getter reqGetCenterValveShutOffRecoveryPermissionSettingStatus() {
2825  return this;
2826  }
2851  public Getter reqGetEmergencyValveShutOffStatus() {
2852  reqGetProperty(EPC_EMERGENCY_VALVE_SHUT_OFF_STATUS);
2853  return this;
2854  }
2877  public Getter reqGetShutOffValveOpenCloseStatus() {
2878  reqGetProperty(EPC_SHUT_OFF_VALVE_OPEN_CLOSE_STATUS);
2879  return this;
2880  }
2908  public Getter reqGetResidualVolumeControlWarning() {
2909  reqGetProperty(EPC_RESIDUAL_VOLUME_CONTROL_WARNING);
2910  return this;
2911  }
2934  public Getter reqGetSetValueOfResidualVolumeControlWarningLevel1() {
2936  return this;
2937  }
2960  public Getter reqGetSetValueOfResidualVolumeControlWarningLevel2() {
2962  return this;
2963  }
2986  public Getter reqGetSetValueOfResidualVolumeControlWarningLevel3() {
2988  return this;
2989  }
3013  public Getter reqGetSlightLeakTimerValueGasFlowRateContinuation() {
3015  return this;
3016  }
3040  public Getter reqGetSlightLeakTimerValueWithoutPressureIncrease() {
3042  return this;
3043  }
3067  public Getter reqGetShutOffReasonLog() {
3068  reqGetProperty(EPC_SHUT_OFF_REASON_LOG);
3069  return this;
3070  }
3095  public Getter reqGetMaximumValueOfSupplyPressureData() {
3097  return this;
3098  }
3123  public Getter reqGetMinimumValueOfSupplyPressureData() {
3125  return this;
3126  }
3151  public Getter reqGetCurrentValueOfSupplyPressureData() {
3153  return this;
3154  }
3179  public Getter reqGetMaximumValueOfBlockPressureData() {
3181  return this;
3182  }
3207  public Getter reqGetMinimumValueOfBlockPressureData() {
3209  return this;
3210  }
3235  public Getter reqGetCurrentValueOfBlockPressureData() {
3237  return this;
3238  }
3261  public Getter reqGetNumberOfBlockPressureSupplyPressureErrorDaysTime() {
3263  return this;
3264  }
3287  public Getter reqGetTestCallSetting() {
3288  reqGetProperty(EPC_TEST_CALL_SETTING);
3289  return this;
3290  }
3291  }
3292 
3293  public static class Informer extends DeviceObject.Informer {
3294  public Informer(short echoClassCode, byte echoInstanceCode
3295  , String dstEchoAddress, boolean isSelfObject) {
3296  super(echoClassCode, echoInstanceCode
3297  , dstEchoAddress, isSelfObject);
3298  }
3299 
3300  @Override
3301  public Informer reqInformProperty(byte epc) {
3302  return (Informer)super.reqInformProperty(epc);
3303  }
3304  @Override
3305  public Informer reqInformOperationStatus() {
3306  return (Informer)super.reqInformOperationStatus();
3307  }
3308  @Override
3309  public Informer reqInformInstallationLocation() {
3310  return (Informer)super.reqInformInstallationLocation();
3311  }
3312  @Override
3313  public Informer reqInformStandardVersionInformation() {
3314  return (Informer)super.reqInformStandardVersionInformation();
3315  }
3316  @Override
3317  public Informer reqInformIdentificationNumber() {
3318  return (Informer)super.reqInformIdentificationNumber();
3319  }
3320  @Override
3321  public Informer reqInformMeasuredInstantaneousPowerConsumption() {
3322  return (Informer)super.reqInformMeasuredInstantaneousPowerConsumption();
3323  }
3324  @Override
3325  public Informer reqInformMeasuredCumulativePowerConsumption() {
3326  return (Informer)super.reqInformMeasuredCumulativePowerConsumption();
3327  }
3328  @Override
3329  public Informer reqInformManufacturersFaultCode() {
3330  return (Informer)super.reqInformManufacturersFaultCode();
3331  }
3332  @Override
3333  public Informer reqInformCurrentLimitSetting() {
3334  return (Informer)super.reqInformCurrentLimitSetting();
3335  }
3336  @Override
3337  public Informer reqInformFaultStatus() {
3338  return (Informer)super.reqInformFaultStatus();
3339  }
3340  @Override
3341  public Informer reqInformFaultDescription() {
3342  return (Informer)super.reqInformFaultDescription();
3343  }
3344  @Override
3345  public Informer reqInformManufacturerCode() {
3346  return (Informer)super.reqInformManufacturerCode();
3347  }
3348  @Override
3349  public Informer reqInformBusinessFacilityCode() {
3350  return (Informer)super.reqInformBusinessFacilityCode();
3351  }
3352  @Override
3353  public Informer reqInformProductCode() {
3354  return (Informer)super.reqInformProductCode();
3355  }
3356  @Override
3357  public Informer reqInformProductionNumber() {
3358  return (Informer)super.reqInformProductionNumber();
3359  }
3360  @Override
3361  public Informer reqInformProductionDate() {
3362  return (Informer)super.reqInformProductionDate();
3363  }
3364  @Override
3365  public Informer reqInformPowerSavingOperationSetting() {
3366  return (Informer)super.reqInformPowerSavingOperationSetting();
3367  }
3368  @Override
3369  public Informer reqInformRemoteControlSetting() {
3370  return (Informer)super.reqInformRemoteControlSetting();
3371  }
3372  @Override
3373  public Informer reqInformCurrentTimeSetting() {
3374  return (Informer)super.reqInformCurrentTimeSetting();
3375  }
3376  @Override
3377  public Informer reqInformCurrentDateSetting() {
3378  return (Informer)super.reqInformCurrentDateSetting();
3379  }
3380  @Override
3381  public Informer reqInformPowerLimitSetting() {
3382  return (Informer)super.reqInformPowerLimitSetting();
3383  }
3384  @Override
3385  public Informer reqInformCumulativeOperatingTime() {
3386  return (Informer)super.reqInformCumulativeOperatingTime();
3387  }
3388  @Override
3389  public Informer reqInformStatusChangeAnnouncementPropertyMap() {
3390  return (Informer)super.reqInformStatusChangeAnnouncementPropertyMap();
3391  }
3392  @Override
3393  public Informer reqInformSetPropertyMap() {
3394  return (Informer)super.reqInformSetPropertyMap();
3395  }
3396  @Override
3397  public Informer reqInformGetPropertyMap() {
3398  return (Informer)super.reqInformGetPropertyMap();
3399  }
3400 
3424  public Informer reqInformIntegralGasConsumptionOfMeteringData1() {
3426  return this;
3427  }
3451  public Informer reqInformIntegralGasConsumptionOfMeteringData2() {
3453  return this;
3454  }
3480  public Informer reqInformErrorDetectionStatusofMeteringData() {
3481  reqInformProperty(EPC_ERROR_DETECTION_STATUSOF_METERING_DATA);
3482  return this;
3483  }
3506  public Informer reqInformSecurityData1() {
3507  reqInformProperty(EPC_SECURITY_DATA1);
3508  return this;
3509  }
3532  public Informer reqInformSecurityData2() {
3533  reqInformProperty(EPC_SECURITY_DATA2);
3534  return this;
3535  }
3563  public Informer reqInformCenterValveShutOffStatus() {
3564  reqInformProperty(EPC_CENTER_VALVE_SHUT_OFF_STATUS);
3565  return this;
3566  }
3591  public Informer reqInformCenterValveShutOffRecoveryPermissionSettingStatus() {
3593  return this;
3594  }
3619  public Informer reqInformEmergencyValveShutOffStatus() {
3620  reqInformProperty(EPC_EMERGENCY_VALVE_SHUT_OFF_STATUS);
3621  return this;
3622  }
3645  public Informer reqInformShutOffValveOpenCloseStatus() {
3646  reqInformProperty(EPC_SHUT_OFF_VALVE_OPEN_CLOSE_STATUS);
3647  return this;
3648  }
3676  public Informer reqInformResidualVolumeControlWarning() {
3677  reqInformProperty(EPC_RESIDUAL_VOLUME_CONTROL_WARNING);
3678  return this;
3679  }
3702  public Informer reqInformSetValueOfResidualVolumeControlWarningLevel1() {
3704  return this;
3705  }
3728  public Informer reqInformSetValueOfResidualVolumeControlWarningLevel2() {
3730  return this;
3731  }
3754  public Informer reqInformSetValueOfResidualVolumeControlWarningLevel3() {
3756  return this;
3757  }
3781  public Informer reqInformSlightLeakTimerValueGasFlowRateContinuation() {
3783  return this;
3784  }
3808  public Informer reqInformSlightLeakTimerValueWithoutPressureIncrease() {
3810  return this;
3811  }
3835  public Informer reqInformShutOffReasonLog() {
3836  reqInformProperty(EPC_SHUT_OFF_REASON_LOG);
3837  return this;
3838  }
3863  public Informer reqInformMaximumValueOfSupplyPressureData() {
3864  reqInformProperty(EPC_MAXIMUM_VALUE_OF_SUPPLY_PRESSURE_DATA);
3865  return this;
3866  }
3891  public Informer reqInformMinimumValueOfSupplyPressureData() {
3892  reqInformProperty(EPC_MINIMUM_VALUE_OF_SUPPLY_PRESSURE_DATA);
3893  return this;
3894  }
3919  public Informer reqInformCurrentValueOfSupplyPressureData() {
3920  reqInformProperty(EPC_CURRENT_VALUE_OF_SUPPLY_PRESSURE_DATA);
3921  return this;
3922  }
3947  public Informer reqInformMaximumValueOfBlockPressureData() {
3948  reqInformProperty(EPC_MAXIMUM_VALUE_OF_BLOCK_PRESSURE_DATA);
3949  return this;
3950  }
3975  public Informer reqInformMinimumValueOfBlockPressureData() {
3976  reqInformProperty(EPC_MINIMUM_VALUE_OF_BLOCK_PRESSURE_DATA);
3977  return this;
3978  }
4003  public Informer reqInformCurrentValueOfBlockPressureData() {
4004  reqInformProperty(EPC_CURRENT_VALUE_OF_BLOCK_PRESSURE_DATA);
4005  return this;
4006  }
4029  public Informer reqInformNumberOfBlockPressureSupplyPressureErrorDaysTime() {
4031  return this;
4032  }
4055  public Informer reqInformTestCallSetting() {
4056  reqInformProperty(EPC_TEST_CALL_SETTING);
4057  return this;
4058  }
4059  }
4060 
4061  public static class Proxy extends LPGasMeter {
4062  public Proxy(byte instanceCode) {
4063  super();
4064  mEchoInstanceCode = instanceCode;
4065  }
4066  @Override
4067  public byte getInstanceCode() {
4068  return mEchoInstanceCode;
4069  }
4070  @Override
4071  protected byte[] getOperationStatus() {return null;}
4072  @Override
4073  protected boolean setInstallationLocation(byte[] edt) {return false;}
4074  @Override
4075  protected byte[] getInstallationLocation() {return null;}
4076  @Override
4077  protected byte[] getStandardVersionInformation() {return null;}
4078  @Override
4079  protected byte[] getFaultStatus() {return null;}
4080  @Override
4081  protected byte[] getManufacturerCode() {return null;}
4082  @Override
4083  protected byte[] getIntegralGasConsumptionOfMeteringData1() {return null;}
4084  @Override
4085  protected byte[] getIntegralGasConsumptionOfMeteringData2() {return null;}
4086  }
4087 
4088  public static Setter setG() {
4089  return setG((byte)0);
4090  }
4091 
4092  public static Setter setG(byte instanceCode) {
4093  return setG(instanceCode, true);
4094  }
4095 
4096  public static Setter setG(boolean responseRequired) {
4097  return setG((byte)0, responseRequired);
4098  }
4099 
4100  public static Setter setG(byte instanceCode, boolean responseRequired) {
4101  return new Setter(ECHO_CLASS_CODE, instanceCode
4102  , EchoSocket.MULTICAST_ADDRESS, responseRequired);
4103  }
4104 
4105  public static Getter getG() {
4106  return getG((byte)0);
4107  }
4108 
4109  public static Getter getG(byte instanceCode) {
4110  return new Getter(ECHO_CLASS_CODE, instanceCode
4112  }
4113 
4114  public static Informer informG() {
4115  return informG((byte)0);
4116  }
4117 
4118  public static Informer informG(byte instanceCode) {
4119  return new Informer(ECHO_CLASS_CODE, instanceCode
4120  , EchoSocket.MULTICAST_ADDRESS, false);
4121  }
4122 
4123 }
final void removeSetProperty(byte epc)
Definition: EchoObject.java:98
final void addStatusChangeAnnouncementProperty(byte epc)
Definition: EchoObject.java:71
final void addGetProperty(byte epc)
static final byte EPC_NUMBER_OF_BLOCK_PRESSURE_SUPPLY_PRESSURE_ERROR_DAYS_TIME
Definition: LPGasMeter.java:52
static Setter setG(boolean responseRequired)
synchronized boolean isValidProperty(EchoProperty property)
static Setter setG(byte instanceCode, boolean responseRequired)
synchronized boolean setProperty(EchoProperty property)
static final byte EPC_CENTER_VALVE_SHUT_OFF_RECOVERY_PERMISSION_SETTING_STATUS
Definition: LPGasMeter.java:36
boolean isValidCenterValveShutOffRecoveryPermissionSettingStatus(byte[] edt)
abstract boolean setInstallationLocation(byte[] edt)
static final String MULTICAST_ADDRESS
Definition: EchoSocket.java:53