public void SetEndTime(string paramText, string endTime, WortCopper wortCopper, Brew brew)
 {
     if (paramText.Equals("Casting Time - Finish"))
     {
         WortCopperProcessParameters paramToCheck  = WortCopperProcessParameters.CastingStartTime;
         WortCopperProcessParameters paramToChange = WortCopperProcessParameters.CastingEndTime;
         IWortCopperState            newState      = wortCopper.IdleState;
         SetProcessStepEndTime(endTime, wortCopper, brew, paramToCheck, paramToChange, newState);
     }
 }
 public void SetEndTime(string paramText, string endTime, WortCopper holdingVessel, Brew brew)
 {
     if (paramText.Equals("Wort Boiling - Finish"))
     {
         WortCopperProcessParameters paramToCheck  = WortCopperProcessParameters.HeatingEndTime;
         WortCopperProcessParameters paramToChange = WortCopperProcessParameters.BoilingEndTime;
         IWortCopperState            newState      = holdingVessel.ExtraBoilingState;
         SetProcessStepEndTime(endTime, holdingVessel, brew, paramToCheck, paramToChange, newState);
     }
 }
 public void StartCasting(string paramText, string startTime, WortCopper wortCopper, Brew brew)
 {
     if (paramText.Equals("Start Casting - Finish"))
     {
         WortCopperProcessParameters paramToCheck  = WortCopperProcessParameters.BoilingEndTime;
         WortCopperProcessParameters paramToChange = WortCopperProcessParameters.CastingStartTime;
         IWortCopperState            newState      = wortCopper.CastingState;
         SetCastingStartTime(startTime, wortCopper, brew, paramToCheck, paramToChange, newState);
     }
 }
示例#4
0
        public void InitBrew(WortCopper wortCopper, Brew brew)
        {
            string brewNumber = wortCopper.Brew.BrewNumber;

            if (brew != null)
            {
                if (brewNumber.Length == 0)
                {
                    wortCopper.InitBrew(brew);
                }
            }
        }
示例#5
0
        public void StartHeating(string paramText, string startTime, WortCopper wortCopper, Brew brew)
        {
            string brewNumber                 = brew.BrewNumber;
            string brandName                  = brew.BrandName;
            string wortCopperBrewNumber       = wortCopper.Brew.BrewNumber;
            WortCopperProcessParameters param = WortCopperProcessParameters.HeatingStartTime;
            string paramName                  = param.ToString();

            //Start Mashing In
            if (brandName.Length > 0 &&
                brewNumber.Length > 0 &&
                brewNumber == wortCopperBrewNumber &&
                paramText.Equals("Start Heating(Boiling) - Finish"))
            {
                wortCopper.Brew.SetProcessParameterValue(ProcessEquipment.WortCopper, paramName, startTime);

                //Set new state
                wortCopper.SetState(wortCopper.HeatingState);
            }
        }
        private void SetCastingStartTime(string endTime, WortCopper wortCopper, Brew brew,
                                         WortCopperProcessParameters paramToCheck,
                                         WortCopperProcessParameters paramToChange,
                                         IWortCopperState newState)
        {
            string brandName = brew.BrandName;
            string wortCopperParamToCheckValue = brew.GetProcessParameterValue(ProcessEquipment.WortCopper,
                                                                               paramToCheck.ToString());

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

                //Set new state
                wortCopper.SetState(newState);
                //Console.WriteLine("New state is: " + newStateString);
            }
        }
 public void StartHeating(string paramText, string startTime, WortCopper holdingVessel, Brew brew)
 {
 }
 public void StartCasting(string paramText, string startTime, WortCopper wortCopper, Brew brew)
 {
 }
 public void OnEntry(WortCopper holdingVessel, Brew brew)
 {
 }
 public void InitBrew(WortCopper holdingVessel, Brew brew)
 {
 }
示例#11
0
 public void SetEndTime(string paramText, string endTime, WortCopper wortCopper, Brew brew)
 {
 }
示例#12
0
 public void OnEntry(WortCopper wortCopper, Brew brew)
 {
 }
 public void InitBrew(WortCopper wortCopper, Brew brew)
 {
 }