Beispiel #1
0
        public void StartMashingIn(string paramText, string startTime, MashCopper mashCopper, Brew brew)
        {
            mashCopper.InitBrew(brew);
            string brewNumber           = brew.BrewNumber;
            string brandName            = brew.BrandName;
            string mashCopperBrewNumber = mashCopper.Brew.BrewNumber;

            //Start Mashing In
            if (brandName.Length > 0 &&
                brewNumber.Length > 0 &&
                brewNumber == mashCopperBrewNumber &&
                paramText.Equals("Transport Time RAW Sorguum to WB MC - Finish"))
            {
                string paramName = MashCopperProcessParameters.MashingInStartTime.ToString();
                mashCopper.Brew.SetProcessParameterValue(ProcessEquipment.MashCopper, paramName, startTime);

                //Set new state
                brew.SetState(new BrewInProcessState());
                mashCopper.SetState(mashCopper.MashingInState);
            }
        }
        protected void SetProcessStepEndTime(string endTime, MashCopper mashCopper, Brew brew,
                                             MashCopperProcessParameters paramToCheck,
                                             MashCopperProcessParameters paramToChange,
                                             IMashCopperState newState)
        {
            string brandName         = brew.BrandName;
            string paramToCheckValue = brew.GetProcessParameterValue(ProcessEquipment.MashCopper,
                                                                     paramToCheck.ToString());

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

                //Set new state
                //string newStateString =
                mashCopper.SetState(newState);
                //Console.WriteLine("New state is: " + newStateString);
            }
        }