public void SetEndTime(string paramText, string endTime, MashFilter mashFilter, Brew brew)
 {
     if (paramText.Equals("WeakWort Transfer to WWT - Finish"))
     {
         MashFilterProcessParameters paramToCheck  = MashFilterProcessParameters.PrefillingEndTime;
         MashFilterProcessParameters paramToChange = MashFilterProcessParameters.WeakWortTransferEndTime;
         IMashFilterState            newState      = mashFilter.MainMashFiltrationState;
         SetProcessStepEndTime(endTime, mashFilter, brew, paramToCheck, paramToChange, newState);
     }
 }
 public void SetEndTime(string paramText, string endTime, MashFilter mashFilter, Brew brew)
 {
     if (paramText.Equals("Sparging Time - Finish"))
     {
         MashFilterProcessParameters paramToCheck  = MashFilterProcessParameters.MainMashFiltrationEndTime;
         MashFilterProcessParameters paramToChange = MashFilterProcessParameters.SpargingEndTime;
         IMashFilterState            newState      = mashFilter.SpargingToWwtState;
         SetProcessStepEndTime(endTime, mashFilter, brew, paramToCheck, paramToChange, newState);
     }
 }
 public void SetEndTime(string paramText, string endTime, MashFilter mashFilter, Brew brew)
 {
     if (paramText.Equals("Spent Grain Discharge - Finish"))
     {
         MashFilterProcessParameters paramToCheck  = MashFilterProcessParameters.DrippingEndTime;
         MashFilterProcessParameters paramToChange = MashFilterProcessParameters.SpentGrainDischargeEndTime;
         IMashFilterState            newState      = mashFilter.CleaningState;
         SetProcessStepEndTime(endTime, mashFilter, brew, paramToCheck, paramToChange, newState);
     }
 }
        public void InitBrew(MashFilter mashFilter, Brew brew)
        {
            string brewNumber = mashFilter.Brew.BrewNumber;

            if (brew != null)
            {
                if (brewNumber.Length == 0)
                {
                    mashFilter.InitBrew(brew);
                }
            }
        }
        public void StartPrefilling(string paramText, string startTime, MashFilter mashFilter, Brew brew)
        {
            string brewNumber                 = brew.BrewNumber;
            string brandName                  = brew.BrandName;
            string mashFilterBrewNumber       = mashFilter.Brew.BrewNumber;
            MashFilterProcessParameters param = MashFilterProcessParameters.PrefillingStartTime;
            string paramName                  = param.ToString();

            //Start Mashing In9
            if (brandName.Length > 0 &&
                brewNumber.Length > 0 &&
                brewNumber == mashFilterBrewNumber &&
                paramText.Equals("Start Prefilling - Finish"))
            {
                mashFilter.Brew.SetProcessParameterValue(ProcessEquipment.MashFilter, paramName, startTime);

                //Set new state
                mashFilter.SetState(mashFilter.PrefillingState);
            }
        }
예제 #6
0
        protected void SetProcessStepEndTime(string endTime, MashFilter mashFilter, Brew brew,
                                             MashFilterProcessParameters paramToCheck,
                                             MashFilterProcessParameters paramToChange,
                                             IMashFilterState newState)
        {
            string brandName         = brew.BrandName;
            string paramToCheckValue = brew.GetProcessParameterValue(ProcessEquipment.MashFilter,
                                                                     paramToCheck.ToString());

            //Complete process step
            if (brandName.Length > 0 &&
                paramToCheckValue.Length > 0)
            {
                Brew   nBrew     = mashFilter.Brew;
                string paramName = paramToChange.ToString();
                nBrew.SetProcessParameterValue(ProcessEquipment.MashFilter, paramName, endTime);

                //Set new state
                //string newStateString =
                mashFilter.SetState(newState);
                //Console.WriteLine("New state is: " + newStateString);
            }
        }
 public void StartPrefilling(string paramText, string startTime, MashFilter mashFilter, Brew brew)
 {
 }
 public void OnEntry(MashFilter mashFilter, Brew brew)
 {
 }
 public void InitBrew(MashFilter mashFilter, Brew brew)
 {
 }
 public void SetEndTime(string paramText, string endTime, MashFilter mashFilter, Brew brew)
 {
 }