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); } }
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); } }