Advertisement
mikemate88

CHeating - API.DLL

Jun 4th, 2019
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 22.16 KB | None | 0 0
  1. // Decompiled with JetBrains decompiler
  2. // Type: Rinnai.NetworkerSystem.API.NetworkerSystemAccess.Functional.Heating.CHeating
  3. // Assembly: API, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
  4. // MVID: 9E1B7773-F300-4632-970B-75E74F11BA63
  5. // Assembly location: C:\Users\User\Documents\rinnaitouchDecom\resources\assemblies\API.dll
  6.  
  7. using Rinnai.NetworkerSystem.API.NetworkerSystemAccess.DataTypes;
  8. using Rinnai.NetworkerSystem.API.NetworkerSystemAccess.Interface;
  9. using Rinnai.NetworkerSystem.API.NetworkerSystemAccess.TransferControl;
  10.  
  11. namespace Rinnai.NetworkerSystem.API.NetworkerSystemAccess.Functional.Heating
  12. {
  13.   public class CHeating
  14.   {
  15.     public const byte FAN_LEVEL_MINIMUM = 1;
  16.     public const byte FAN_LEVEL_MAXIMUM = 16;
  17.     public const byte SET_POINT_MINIMUM = 8;
  18.     public const byte SET_POINT_MAXIMUM = 30;
  19.     private const string _DSC_HGOM = "HGOM";
  20.     private const string _DSC_CFG = "CFG";
  21.     private CDataBool _CFG_ZUIS;
  22.     private CDataBool _CFG_ZAIS;
  23.     private CDataBool _CFG_ZBIS;
  24.     private CDataBool _CFG_ZCIS;
  25.     private CDataBool _CFG_ZDIS;
  26.     private CDataBool _CFG_CF;
  27.     private CDataBool _CFG_PS;
  28.     private CDataDayGrouping _CFG_DG;
  29.     private const string _DSC_OOP = "OOP";
  30.     private CDataOperatingState _OOP_ST;
  31.     private CDataBool _OOP_CF;
  32.     private CDataByte _OOP_FL;
  33.     private CDataBool _OOP_SN;
  34.     private const string _DSC_GSO = "GSO";
  35.     private const string _DSC_GSS = "GSS";
  36.     private const string _DSC_APS = "APS";
  37.     private const string _DSC_ZUO = "ZUO";
  38.     private const string _DSC_ZAO = "ZAO";
  39.     private const string _DSC_ZBO = "ZBO";
  40.     private const string _DSC_ZCO = "ZCO";
  41.     private const string _DSC_ZDO = "ZDO";
  42.     private const string _DSC_ZUS = "ZUS";
  43.     private const string _DSC_ZAS = "ZAS";
  44.     private const string _DSC_ZBS = "ZBS";
  45.     private const string _DSC_ZCS = "ZCS";
  46.     private const string _DSC_ZDS = "ZDS";
  47.     private const string _DSC_APZ = "APZ";
  48.     private CHeatingSystem _system;
  49.     private CHeatingZone _zoneU;
  50.     private CHeatingZone _zoneA;
  51.     private CHeatingZone _zoneB;
  52.     private CHeatingZone _zoneC;
  53.     private CHeatingZone _zoneD;
  54.     private CHeatingZoneAutoProgram _zoneAutoProgram;
  55.     private CNetworkerDataType.ZONE _currentlySelectedZone;
  56.     private CTransferControl _transferControl;
  57.     private CContainer _txContainer;
  58.     private CContainer _rxContainer;
  59.     private CCommandInterface _commandInterface;
  60.  
  61.     public CHeating(
  62.       CCommandInterface commandInterface,
  63.       CTransferControl transferControl,
  64.       CContainer rxContainer)
  65.     {
  66.       commandInterface.AddGroup1Item("HGOM", "Heating Operating Mode");
  67.       this._commandInterface = commandInterface;
  68.       this.CFG_ObjectsSetup(commandInterface);
  69.       this.OOP_ObjectsSetup(commandInterface);
  70.       this._system = new CHeatingSystem("HGOM", "GSO", "GSS", "APS", commandInterface, transferControl, rxContainer);
  71.       this._zoneU = new CHeatingZone("Zone U", "HGOM", "ZUO", "ZUS", commandInterface, transferControl, rxContainer);
  72.       this._zoneA = new CHeatingZone("Zone A", "HGOM", "ZAO", "ZAS", commandInterface, transferControl, rxContainer);
  73.       this._zoneB = new CHeatingZone("Zone B", "HGOM", "ZBO", "ZBS", commandInterface, transferControl, rxContainer);
  74.       this._zoneC = new CHeatingZone("Zone C", "HGOM", "ZCO", "ZCS", commandInterface, transferControl, rxContainer);
  75.       this._zoneD = new CHeatingZone("Zone D", "HGOM", "ZDO", "ZDS", commandInterface, transferControl, rxContainer);
  76.       this._zoneAutoProgram = new CHeatingZoneAutoProgram("HGOM", "APZ", commandInterface, transferControl, rxContainer);
  77.       this._currentlySelectedZone = CNetworkerDataType.ZONE.A;
  78.       this._transferControl = transferControl;
  79.       this._rxContainer = rxContainer;
  80.       this._txContainer = new CContainer(commandInterface);
  81.     }
  82.  
  83.     public CHeatingSystem System
  84.     {
  85.       get
  86.       {
  87.         return this._system;
  88.       }
  89.     }
  90.  
  91.     public CHeatingZoneAutoProgram ZoneAutoProgran
  92.     {
  93.       get
  94.       {
  95.         return this._zoneAutoProgram;
  96.       }
  97.     }
  98.  
  99.     public CHeatingZone CurrentlySelectedZone
  100.     {
  101.       get
  102.       {
  103.         switch (this._currentlySelectedZone)
  104.         {
  105.           case CNetworkerDataType.ZONE.U:
  106.             return this._zoneU;
  107.           case CNetworkerDataType.ZONE.A:
  108.             return this._zoneA;
  109.           case CNetworkerDataType.ZONE.B:
  110.             return this._zoneB;
  111.           case CNetworkerDataType.ZONE.C:
  112.             return this._zoneC;
  113.           case CNetworkerDataType.ZONE.D:
  114.             return this._zoneD;
  115.           default:
  116.             return (CHeatingZone) null;
  117.         }
  118.       }
  119.     }
  120.  
  121.     public CNetworkerDataType.ZONE CurrentlySelectedZoneID
  122.     {
  123.       get
  124.       {
  125.         return this._currentlySelectedZone;
  126.       }
  127.     }
  128.  
  129.     public void SetNextAvailableZoneAsCurrent()
  130.     {
  131.       switch (this._currentlySelectedZone)
  132.       {
  133.         case CNetworkerDataType.ZONE.A:
  134.           if (this.ZoneB_IsInstalled)
  135.           {
  136.             this._currentlySelectedZone = CNetworkerDataType.ZONE.B;
  137.             break;
  138.           }
  139.           this._currentlySelectedZone = CNetworkerDataType.ZONE.A;
  140.           break;
  141.         case CNetworkerDataType.ZONE.B:
  142.           if (this.ZoneC_IsInstalled)
  143.           {
  144.             this._currentlySelectedZone = CNetworkerDataType.ZONE.C;
  145.             break;
  146.           }
  147.           this._currentlySelectedZone = CNetworkerDataType.ZONE.A;
  148.           break;
  149.         case CNetworkerDataType.ZONE.C:
  150.           if (this.ZoneD_IsInstalled)
  151.           {
  152.             this._currentlySelectedZone = CNetworkerDataType.ZONE.D;
  153.             break;
  154.           }
  155.           this._currentlySelectedZone = CNetworkerDataType.ZONE.A;
  156.           break;
  157.         default:
  158.           this._currentlySelectedZone = CNetworkerDataType.ZONE.A;
  159.           break;
  160.       }
  161.     }
  162.  
  163.     public bool ZoningInstalled
  164.     {
  165.       get
  166.       {
  167.         return this.ZoneA_IsInstalled;
  168.       }
  169.     }
  170.  
  171.     public bool CurrentySelectedZoneIsUserEnabled
  172.     {
  173.       get
  174.       {
  175.         switch (this._currentlySelectedZone)
  176.         {
  177.           case CNetworkerDataType.ZONE.A:
  178.             return this.ZoneA_IsInstalled && this.ZoneA.IsUserEnabled;
  179.           case CNetworkerDataType.ZONE.B:
  180.             return this.ZoneB_IsInstalled && this.ZoneB.IsUserEnabled;
  181.           case CNetworkerDataType.ZONE.C:
  182.             return this.ZoneC_IsInstalled && this.ZoneC.IsUserEnabled;
  183.           default:
  184.             return this.ZoneD_IsInstalled && this.ZoneD.IsUserEnabled;
  185.         }
  186.       }
  187.     }
  188.  
  189.     public bool CurrentySelectedZoneIsEnabled
  190.     {
  191.       get
  192.       {
  193.         switch (this._currentlySelectedZone)
  194.         {
  195.           case CNetworkerDataType.ZONE.A:
  196.             return this.ZoneA_IsInstalled && this.ZoneA.IsAutoEnabled;
  197.           case CNetworkerDataType.ZONE.B:
  198.             return this.ZoneB_IsInstalled && this.ZoneB.IsAutoEnabled;
  199.           case CNetworkerDataType.ZONE.C:
  200.             return this.ZoneC_IsInstalled && this.ZoneC.IsAutoEnabled;
  201.           default:
  202.             return this.ZoneD_IsInstalled && this.ZoneD.IsAutoEnabled;
  203.         }
  204.       }
  205.     }
  206.  
  207.     public bool AllAvailableZonesDisabled
  208.     {
  209.       get
  210.       {
  211.         return (!this.ZoneU_IsInstalled || !this.ZoneU.IsAutoEnabled) && (!this.ZoneA_IsInstalled || !this.ZoneA.IsAutoEnabled) && ((!this.ZoneB_IsInstalled || !this.ZoneB.IsAutoEnabled) && (!this.ZoneC_IsInstalled || !this.ZoneC.IsAutoEnabled)) && (!this.ZoneD_IsInstalled || !this.ZoneD.IsAutoEnabled);
  212.       }
  213.     }
  214.  
  215.     public bool AtLeastOneZoneIsUserEnabled()
  216.     {
  217.       bool flag = false;
  218.       if (this._CFG_ZUIS.CurrentValue)
  219.         flag = true;
  220.       if (this._CFG_ZAIS.CurrentValue && this.ZoneA.IsUserEnabled)
  221.         flag = true;
  222.       if (this._CFG_ZBIS.CurrentValue && this.ZoneB.IsUserEnabled)
  223.         flag = true;
  224.       if (this._CFG_ZCIS.CurrentValue && this.ZoneC.IsUserEnabled)
  225.         flag = true;
  226.       if (this._CFG_ZDIS.CurrentValue && this.ZoneD.IsUserEnabled)
  227.         flag = true;
  228.       return flag;
  229.     }
  230.  
  231.     public bool AtLeastOneZoneIsEnabled()
  232.     {
  233.       bool flag = false;
  234.       if (this._CFG_ZUIS.CurrentValue && this.ZoneU.IsAutoEnabled)
  235.         flag = true;
  236.       if (this._CFG_ZAIS.CurrentValue && this.ZoneA.IsUserEnabled && this.ZoneA.IsAutoEnabled)
  237.         flag = true;
  238.       if (this._CFG_ZBIS.CurrentValue && this.ZoneB.IsUserEnabled && this.ZoneB.IsAutoEnabled)
  239.         flag = true;
  240.       if (this._CFG_ZCIS.CurrentValue && this.ZoneC.IsUserEnabled && this.ZoneC.IsAutoEnabled)
  241.         flag = true;
  242.       if (this._CFG_ZDIS.CurrentValue && this.ZoneD.IsUserEnabled && this.ZoneD.IsAutoEnabled)
  243.         flag = true;
  244.       return flag;
  245.     }
  246.  
  247.     public bool NoAvailableZonesEnabled(bool multiSetPointEnabled, bool fanOnly)
  248.     {
  249.       byte num = 0;
  250.       if (fanOnly)
  251.       {
  252.         if (this.ZoneU_IsInstalled && this.ZoneU.IsUserEnabled)
  253.           ++num;
  254.         if (this.ZoneA_IsInstalled && this.ZoneA.IsUserEnabled)
  255.           ++num;
  256.         if (this.ZoneB_IsInstalled && this.ZoneB.IsUserEnabled)
  257.           ++num;
  258.         if (this.ZoneC_IsInstalled && this.ZoneC.IsUserEnabled)
  259.           ++num;
  260.         if (this.ZoneD_IsInstalled && this.ZoneD.IsUserEnabled)
  261.           ++num;
  262.       }
  263.       else if (multiSetPointEnabled)
  264.       {
  265.         if (this.ZoneA_IsInstalled && this.ZoneA.IsAutoEnabled)
  266.           ++num;
  267.         if (this.ZoneB_IsInstalled && this.ZoneB.IsAutoEnabled)
  268.           ++num;
  269.         if (this.ZoneC_IsInstalled && this.ZoneC.IsAutoEnabled)
  270.           ++num;
  271.         if (this.ZoneD_IsInstalled && this.ZoneD.IsAutoEnabled)
  272.           ++num;
  273.       }
  274.       else
  275.       {
  276.         if (this.ZoneU_IsInstalled && this.ZoneU.IsUserEnabled && this.ZoneU.IsAutoEnabled)
  277.           ++num;
  278.         if (this.ZoneA_IsInstalled && this.ZoneA.IsUserEnabled && this.ZoneA.IsAutoEnabled)
  279.           ++num;
  280.         if (this.ZoneB_IsInstalled && this.ZoneB.IsUserEnabled && this.ZoneB.IsAutoEnabled)
  281.           ++num;
  282.         if (this.ZoneC_IsInstalled && this.ZoneC.IsUserEnabled && this.ZoneC.IsAutoEnabled)
  283.           ++num;
  284.         if (this.ZoneD_IsInstalled && this.ZoneD.IsUserEnabled && this.ZoneD.IsAutoEnabled)
  285.           ++num;
  286.       }
  287.       return num == (byte) 0;
  288.     }
  289.  
  290.     public CHeatingZone ZoneU
  291.     {
  292.       get
  293.       {
  294.         return this._zoneU;
  295.       }
  296.     }
  297.  
  298.     public bool ZoneU_CurrentlySelected
  299.     {
  300.       get
  301.       {
  302.         return this._currentlySelectedZone == CNetworkerDataType.ZONE.U;
  303.       }
  304.     }
  305.  
  306.     public void ZoneU_FlagItAsSelected()
  307.     {
  308.       this._currentlySelectedZone = CNetworkerDataType.ZONE.U;
  309.     }
  310.  
  311.     public CHeatingZone ZoneA
  312.     {
  313.       get
  314.       {
  315.         return this._zoneA;
  316.       }
  317.     }
  318.  
  319.     public bool ZoneA_CurrentlySelected
  320.     {
  321.       get
  322.       {
  323.         return this._currentlySelectedZone == CNetworkerDataType.ZONE.A;
  324.       }
  325.     }
  326.  
  327.     public void ZoneA_FlagItAsSelected()
  328.     {
  329.       this._currentlySelectedZone = CNetworkerDataType.ZONE.A;
  330.     }
  331.  
  332.     public CHeatingZone ZoneB
  333.     {
  334.       get
  335.       {
  336.         return this._zoneB;
  337.       }
  338.     }
  339.  
  340.     public bool ZoneB_CurrentlySelected
  341.     {
  342.       get
  343.       {
  344.         return this._currentlySelectedZone == CNetworkerDataType.ZONE.B;
  345.       }
  346.     }
  347.  
  348.     public void ZoneB_FlagItAsSelected()
  349.     {
  350.       this._currentlySelectedZone = CNetworkerDataType.ZONE.B;
  351.     }
  352.  
  353.     public CHeatingZone ZoneC
  354.     {
  355.       get
  356.       {
  357.         return this._zoneC;
  358.       }
  359.     }
  360.  
  361.     public bool ZoneC_CurrentlySelected
  362.     {
  363.       get
  364.       {
  365.         return this._currentlySelectedZone == CNetworkerDataType.ZONE.C;
  366.       }
  367.     }
  368.  
  369.     public void ZoneC_FlagItAsSelected()
  370.     {
  371.       this._currentlySelectedZone = CNetworkerDataType.ZONE.C;
  372.     }
  373.  
  374.     public CHeatingZone ZoneD
  375.     {
  376.       get
  377.       {
  378.         return this._zoneD;
  379.       }
  380.     }
  381.  
  382.     public bool ZoneD_CurrentlySelected
  383.     {
  384.       get
  385.       {
  386.         return this._currentlySelectedZone == CNetworkerDataType.ZONE.D;
  387.       }
  388.     }
  389.  
  390.     public void ZoneD_FlagItAsSelected()
  391.     {
  392.       this._currentlySelectedZone = CNetworkerDataType.ZONE.D;
  393.     }
  394.  
  395.     public bool ZoneU_IsInstalled
  396.     {
  397.       get
  398.       {
  399.         return this._CFG_ZUIS.CurrentValue;
  400.       }
  401.     }
  402.  
  403.     public bool ZoneA_IsInstalled
  404.     {
  405.       get
  406.       {
  407.         return this._CFG_ZAIS.CurrentValue;
  408.       }
  409.     }
  410.  
  411.     public bool ZoneB_IsInstalled
  412.     {
  413.       get
  414.       {
  415.         return this._CFG_ZBIS.CurrentValue;
  416.       }
  417.     }
  418.  
  419.     public bool ZoneC_IsInstalled
  420.     {
  421.       get
  422.       {
  423.         return this._CFG_ZCIS.CurrentValue;
  424.       }
  425.     }
  426.  
  427.     public bool ZoneD_IsInstalled
  428.     {
  429.       get
  430.       {
  431.         return this._CFG_ZDIS.CurrentValue;
  432.       }
  433.     }
  434.  
  435.     public bool CirculationFanOptionAvailable
  436.     {
  437.       get
  438.       {
  439.         return this._CFG_CF.CurrentValue;
  440.       }
  441.     }
  442.  
  443.     public bool AutoProgramPreSleepOptionAvailable
  444.     {
  445.       get
  446.       {
  447.         return this._CFG_PS.CurrentValue;
  448.       }
  449.     }
  450.  
  451.     public bool DayGroupingOptionIsIndividualDays
  452.     {
  453.       get
  454.       {
  455.         return this._CFG_DG.CurrentValue == CNetworkerDataType.DAY_GROUPING.INDIVIDUAL;
  456.       }
  457.     }
  458.  
  459.     public bool DayGroupingOptionIsWeekAndWeekendDays
  460.     {
  461.       get
  462.       {
  463.         return this._CFG_DG.CurrentValue == CNetworkerDataType.DAY_GROUPING.WEEKDAYS;
  464.       }
  465.     }
  466.  
  467.     public bool DayGroupingOptionIsAllDays
  468.     {
  469.       get
  470.       {
  471.         return this._CFG_DG.CurrentValue == CNetworkerDataType.DAY_GROUPING.ALLDAYS;
  472.       }
  473.     }
  474.  
  475.     public void ProcessDescriptorType_CFG()
  476.     {
  477.       this._rxContainer.CommandTextPosn = this._rxContainer.GroupStartPosition(CContainer.RMTAXS_COMMON_GROUP_TYPES.GROUP_2);
  478.       while (this._rxContainer.GotNextCommandWithinGroup(CContainer.RMTAXS_COMMON_GROUP_TYPES.GROUP_2))
  479.       {
  480.         CData cdata = (CData) null;
  481.         if (this._rxContainer.CommandDescriptor == this._CFG_ZUIS.CommandDescriptor)
  482.           cdata = (CData) this._CFG_ZUIS;
  483.         else if (this._rxContainer.CommandDescriptor == this._CFG_ZAIS.CommandDescriptor)
  484.           cdata = (CData) this._CFG_ZAIS;
  485.         else if (this._rxContainer.CommandDescriptor == this._CFG_ZBIS.CommandDescriptor)
  486.           cdata = (CData) this._CFG_ZBIS;
  487.         else if (this._rxContainer.CommandDescriptor == this._CFG_ZCIS.CommandDescriptor)
  488.           cdata = (CData) this._CFG_ZCIS;
  489.         else if (this._rxContainer.CommandDescriptor == this._CFG_ZDIS.CommandDescriptor)
  490.           cdata = (CData) this._CFG_ZDIS;
  491.         else if (this._rxContainer.CommandDescriptor == this._CFG_CF.CommandDescriptor)
  492.           cdata = (CData) this._CFG_CF;
  493.         else if (this._rxContainer.CommandDescriptor == this._CFG_PS.CommandDescriptor)
  494.           cdata = (CData) this._CFG_PS;
  495.         else if (this._rxContainer.CommandDescriptor == this._CFG_DG.CommandDescriptor)
  496.           cdata = (CData) this._CFG_DG;
  497.         if (cdata != null)
  498.           cdata.UpdateValueUsingStringDescriptor(this._rxContainer.CommandData);
  499.       }
  500.     }
  501.  
  502.     private void CFG_ObjectsSetup(CCommandInterface commandInterface)
  503.     {
  504.       commandInterface.AddGroup2Item("HGOM", "CFG", "Configuration");
  505.       this._CFG_ZUIS = new CDataBool("ZUIS", "YN");
  506.       this._CFG_ZAIS = new CDataBool("ZAIS", "YN");
  507.       this._CFG_ZBIS = new CDataBool("ZBIS", "YN");
  508.       this._CFG_ZCIS = new CDataBool("ZCIS", "YN");
  509.       this._CFG_ZDIS = new CDataBool("ZDIS", "YN");
  510.       this._CFG_CF = new CDataBool("CF", "YN");
  511.       this._CFG_PS = new CDataBool("PS", "YN");
  512.       this._CFG_DG = new CDataDayGrouping("DG", "DWA");
  513.     }
  514.  
  515.     public bool IsSwitchedOff
  516.     {
  517.       get
  518.       {
  519.         return this._OOP_ST.CurrentValue == CNetworkerDataType.OPERATING_STATE.OFF;
  520.       }
  521.     }
  522.  
  523.     public bool IsSwitchedOn
  524.     {
  525.       get
  526.       {
  527.         return this._OOP_ST.CurrentValue == CNetworkerDataType.OPERATING_STATE.ONN;
  528.       }
  529.     }
  530.  
  531.     public bool IsSwitchedOnForFanOnlyOperation
  532.     {
  533.       get
  534.       {
  535.         return this._OOP_ST.CurrentValue == CNetworkerDataType.OPERATING_STATE.FAN_ONLY;
  536.       }
  537.     }
  538.  
  539.     public void SwitchOn()
  540.     {
  541.       this._OOP_ST.RequestValue = CNetworkerDataType.OPERATING_STATE.ONN;
  542.       this._transferControl.SystemUpdateRequest_Initiate(this._txContainer.CommandTextCreated("HGOM", "OOP", (CData) this._OOP_ST), (CData) this._OOP_ST);
  543.     }
  544.  
  545.     public void SwitchOff()
  546.     {
  547.       this._OOP_ST.RequestValue = CNetworkerDataType.OPERATING_STATE.OFF;
  548.       this._transferControl.SystemUpdateRequest_Initiate(this._txContainer.CommandTextCreated("HGOM", "OOP", (CData) this._OOP_ST), (CData) this._OOP_ST);
  549.     }
  550.  
  551.     public void ToggleSwitchOnOff()
  552.     {
  553.       if (this.IsSwitchedOn)
  554.         this.SwitchOff();
  555.       else
  556.         this.SwitchOn();
  557.     }
  558.  
  559.     public void SwitchOnForFanOnlyOperation()
  560.     {
  561.       this._OOP_ST.RequestValue = CNetworkerDataType.OPERATING_STATE.FAN_ONLY;
  562.       this._transferControl.SystemUpdateRequest_Initiate(this._txContainer.CommandTextCreated("HGOM", "OOP", (CData) this._OOP_ST), (CData) this._OOP_ST);
  563.     }
  564.  
  565.     public bool CirculationFanIsSwitchedOn
  566.     {
  567.       get
  568.       {
  569.         return this._OOP_CF.CurrentValue;
  570.       }
  571.     }
  572.  
  573.     public void CirculationFanSwitchOn()
  574.     {
  575.       this._OOP_CF.RequestValue = true;
  576.       this._transferControl.SystemUpdateRequest_Initiate(this._txContainer.CommandTextCreated("HGOM", "OOP", (CData) this._OOP_CF), (CData) this._OOP_CF);
  577.     }
  578.  
  579.     public void CirculationFanSwitchOff()
  580.     {
  581.       this._OOP_CF.RequestValue = false;
  582.       this._transferControl.SystemUpdateRequest_Initiate(this._txContainer.CommandTextCreated("HGOM", "OOP", (CData) this._OOP_CF), (CData) this._OOP_CF);
  583.     }
  584.  
  585.     public void CirculationFanToggle()
  586.     {
  587.       if (this.CirculationFanIsSwitchedOn)
  588.         this.CirculationFanSwitchOff();
  589.       else
  590.         this.CirculationFanSwitchOn();
  591.     }
  592.  
  593.     public byte FanOnlyOperationFanSpeedLevel
  594.     {
  595.       get
  596.       {
  597.         return this._OOP_FL.CurrentValue;
  598.       }
  599.       set
  600.       {
  601.         if (value < (byte) 1)
  602.           value = (byte) 1;
  603.         else if (value > (byte) 16)
  604.           value = (byte) 16;
  605.         this._OOP_FL.RequestValue = value;
  606.         this._transferControl.SystemUpdateRequest_Initiate(this._txContainer.CommandTextCreated("HGOM", "OOP", (CData) this._OOP_FL), (CData) this._OOP_FL);
  607.       }
  608.     }
  609.  
  610.     public bool ServiceNotificationActive
  611.     {
  612.       get
  613.       {
  614.         return this._OOP_SN.CurrentValue;
  615.       }
  616.     }
  617.  
  618.     public void ProcessDescriptorType_OOP()
  619.     {
  620.       this._rxContainer.CommandTextPosn = this._rxContainer.GroupStartPosition(CContainer.RMTAXS_COMMON_GROUP_TYPES.GROUP_2);
  621.       while (this._rxContainer.GotNextCommandWithinGroup(CContainer.RMTAXS_COMMON_GROUP_TYPES.GROUP_2))
  622.       {
  623.         CData cdata = (CData) null;
  624.         if (this._rxContainer.CommandDescriptor == this._OOP_ST.CommandDescriptor)
  625.           cdata = (CData) this._OOP_ST;
  626.         else if (this._rxContainer.CommandDescriptor == this._OOP_CF.CommandDescriptor)
  627.           cdata = (CData) this._OOP_CF;
  628.         else if (this._rxContainer.CommandDescriptor == this._OOP_FL.CommandDescriptor)
  629.           cdata = (CData) this._OOP_FL;
  630.         else if (this._rxContainer.CommandDescriptor == this._OOP_SN.CommandDescriptor)
  631.           cdata = (CData) this._OOP_SN;
  632.         if (cdata != null)
  633.           cdata.UpdateValueUsingStringDescriptor(this._rxContainer.CommandData);
  634.       }
  635.     }
  636.  
  637.     private void OOP_ObjectsSetup(CCommandInterface commandInterface)
  638.     {
  639.       commandInterface.AddGroup2Item("HGOM", "OOP", "Overall Operation");
  640.       this._OOP_ST = new CDataOperatingState("ST", "FNZ");
  641.       this._OOP_CF = new CDataBool("CF", "YN");
  642.       this._OOP_FL = new CDataByte("FL", (byte) 2, (byte) 1, (byte) 16);
  643.       this._OOP_SN = new CDataBool("SN", "YN");
  644.     }
  645.  
  646.     public string Group1Descriptor
  647.     {
  648.       get
  649.       {
  650.         return "HGOM";
  651.       }
  652.     }
  653.  
  654.     public void UpdateUsingCommandTextReceived()
  655.     {
  656.       this._rxContainer.GroupStartPosition(CContainer.RMTAXS_COMMON_GROUP_TYPES.GROUP_2, this._rxContainer.GroupStartPosition(CContainer.RMTAXS_COMMON_GROUP_TYPES.GROUP_1));
  657.       this._rxContainer.GroupEndPosition(CContainer.RMTAXS_COMMON_GROUP_TYPES.GROUP_2, this._rxContainer.GroupStartPosition(CContainer.RMTAXS_COMMON_GROUP_TYPES.GROUP_1));
  658.       while (this._rxContainer.DefinedNextGroupDetails(CContainer.RMTAXS_COMMON_GROUP_TYPES.GROUP_2))
  659.       {
  660.         this._rxContainer.ParseCommandText(this._commandInterface);
  661.         switch (this._rxContainer.GroupDescriptor(CContainer.RMTAXS_COMMON_GROUP_TYPES.GROUP_2))
  662.         {
  663.           case "APS":
  664.             this._system.AutoProgram.ProcessDescriptorType_APS();
  665.             break;
  666.           case "APZ":
  667.             this._zoneAutoProgram.ProcessDescriptorType_APZ();
  668.             break;
  669.           case "CFG":
  670.             this.ProcessDescriptorType_CFG();
  671.             break;
  672.           case "GSO":
  673.             this._system.ProcessDescriptorType_GSO();
  674.             break;
  675.           case "GSS":
  676.             this._system.ProcessDescriptorType_GSS();
  677.             break;
  678.           case "OOP":
  679.             this.ProcessDescriptorType_OOP();
  680.             break;
  681.           case "ZAO":
  682.             this._zoneA.ProcessDescriptorType_ZXO();
  683.             break;
  684.           case "ZAS":
  685.             this._zoneA.ProcessDescriptorType_ZXS();
  686.             break;
  687.           case "ZBO":
  688.             this._zoneB.ProcessDescriptorType_ZXO();
  689.             break;
  690.           case "ZBS":
  691.             this._zoneB.ProcessDescriptorType_ZXS();
  692.             break;
  693.           case "ZCO":
  694.             this._zoneC.ProcessDescriptorType_ZXO();
  695.             break;
  696.           case "ZCS":
  697.             this._zoneC.ProcessDescriptorType_ZXS();
  698.             break;
  699.           case "ZDO":
  700.             this._zoneD.ProcessDescriptorType_ZXO();
  701.             break;
  702.           case "ZDS":
  703.             this._zoneD.ProcessDescriptorType_ZXS();
  704.             break;
  705.           case "ZUO":
  706.             this._zoneU.ProcessDescriptorType_ZXO();
  707.             break;
  708.           case "ZUS":
  709.             this._zoneU.ProcessDescriptorType_ZXS();
  710.             break;
  711.         }
  712.       }
  713.     }
  714.   }
  715. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement