Example #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);
            }
        }
Example #2
0
 //State events
 public void StartHeating(string paramText, string startTime)
 {
     _currentState.StartHeating(paramText, startTime, this, _brew);
     _brew.SetState(new BrewInProcessState());
 }