예제 #1
0
 public HotWater(IStateService stateService, ISerialCommunicationService serialCommunicationService, OilBurner oilBurner)
 {
     StateService = stateService;
     SerialCommunicationService = serialCommunicationService;
     OilBurner = oilBurner;
     InitFsm();
 }
예제 #2
0
 public HeatingCircuit(IStateService stateService, ISerialCommunicationService serialCommunicationService, OilBurner oilBurner)
 {
     SerialCommunicationService = serialCommunicationService;
     OilBurner    = oilBurner;
     StateService = stateService;
     InitFsm();
 }
예제 #3
0
 private bool IsBoilerToHeatByBurner()
 {
     if (!OilBurner.IsReady())
     {
         return(false);
     }
     return(StateService.GetSensor(ItemEnum.BoilerTop).Value <= BOILER_COLD);
 }
예제 #4
0
파일: HotWater.cs 프로젝트: gkoe/Heating21
 private (bool, string) IsntBoilerToHeatByBurner()
 {
     if (OilBurner.IsHeatedToReady().Item1)
     {
         return(false, "OilBurner is ready");
     }
     return(true, "Oilburner is too cold");
 }
예제 #5
0
        private (bool, string) IsAllResidualHeatUsed()
        {
            if (OilBurner.IsBurnerNeededByHotWater)
            {
                return(true, "No use of residual heat, because burner is used by HotWater");
            }
            var(isOilBurnerCooled, message) = OilBurner.IsCooledToReady();
            var temperature = StateService.GetSensor(SensorName.HmoLivingroomFirstFloor).Value;

            return(isOilBurnerCooled, $"IsAllResidualHeatUsed: LivingRoom: {temperature}, {message}");
        }
예제 #6
0
파일: HotWater.cs 프로젝트: gkoe/Heating21
        private (bool, string) IsBoilerToHeatByBurner()
        {
            if (!OilBurner.IsHeatedToReady().Item1)
            {
                return(false, "OilBurner isn't ready");
            }
            var temperature = StateService.GetSensor(SensorName.BoilerTop).Value;

            if (temperature <= BOILER_COLD)
            {
                return(true, $"Boiler is to heat by burner: {temperature}");
            }
            return(false, "");
        }
예제 #7
0
 public bool IsCooledDown() => OilBurner.IsCooledDown();
예제 #8
0
 private bool IsBurnerTooHot() => OilBurner.IsTooHot();
예제 #9
0
 public bool IsBurnerCold() => OilBurner.IsCold();
예제 #10
0
 private bool IsBurnerReady() => OilBurner.IsReady();
예제 #11
0
 public bool IsntBurnerToCool() => OilBurner.IsCooledDown();
예제 #12
0
 private (bool, string) IsBurnerReady() => OilBurner.IsHeatedToReady();
예제 #13
0
 public (bool, string) IsCooledDown() => OilBurner.IsCooledToHot();
예제 #14
0
 private (bool, string) IsBurnerTooHot() => OilBurner.IsHeatedToTooHot();
예제 #15
0
 public (bool, string) IsBurnerCold() => OilBurner.IsCooledToCold();
예제 #16
0
파일: HotWater.cs 프로젝트: gkoe/Heating21
 public (bool, string) IsntBurnerToCool() => OilBurner.IsCooledToHot();