Ejemplo n.º 1
0
 public void SetEndTime(string paramText, string endTime, HoldingVessel holdingVessel, Brew brew)
 {
     if (paramText.Equals("Holding Vessle empty at - Finish"))
     {
         HoldingVesselProcessParameters paramToCheck  = HoldingVesselProcessParameters.TransferToWcEndTime;
         HoldingVesselProcessParameters paramToChange = HoldingVesselProcessParameters.EmptyAtTime;
         IHoldingVesselState            newState      = holdingVessel.IdleState;
         SetProcessStepEndTime(endTime, holdingVessel, brew, paramToCheck, paramToChange, newState);
     }
 }
 public void SetEndTime(string paramText, string endTime, HoldingVessel holdingVessel, Brew brew)
 {
     if (paramText.Equals("Transfer Time (WC) - Finish"))
     {
         HoldingVesselProcessParameters paramToCheck  = HoldingVesselProcessParameters.FillingStartTime;
         HoldingVesselProcessParameters paramToChange = HoldingVesselProcessParameters.TransferToWcEndTime;
         IHoldingVesselState            newState      = holdingVessel.RinsingState;
         SetProcessStepEndTime(endTime, holdingVessel, brew, paramToCheck, paramToChange, newState);
     }
 }
Ejemplo n.º 3
0
        public void InitBrew(HoldingVessel holdingVessel, Brew brew)
        {
            string brewNumber = holdingVessel.Brew.BrewNumber;

            if (brew != null)
            {
                if (brewNumber.Length == 0)
                {
                    holdingVessel.InitBrew(brew);
                }
            }
        }
Ejemplo n.º 4
0
        public void StartFilling(string paramText, string startTime, HoldingVessel holdingVessel, Brew brew)
        {
            string brewNumber = brew.BrewNumber;
            string brandName  = brew.BrandName;
            string holdingVesselBrewNumber       = holdingVessel.Brew.BrewNumber;
            HoldingVesselProcessParameters param = HoldingVesselProcessParameters.FillingStartTime;
            string paramName = param.ToString();

            //Start Mashing In
            if (brandName.Length > 0 &&
                brewNumber.Length > 0 &&
                brewNumber == holdingVesselBrewNumber &&
                paramText.Equals("Start Filling - Finish"))
            {
                holdingVessel.Brew.SetProcessParameterValue(ProcessEquipment.HoldingVessel, paramName, startTime);

                //Set new state
                holdingVessel.SetState(holdingVessel.FillingState);
            }
        }
Ejemplo n.º 5
0
        protected void SetProcessStepEndTime(string endTime, HoldingVessel holdingVessel, Brew brew,
                                             HoldingVesselProcessParameters paramToCheck,
                                             HoldingVesselProcessParameters paramToChange,
                                             IHoldingVesselState newState)
        {
            string brandName         = brew.BrandName;
            string paramToCheckValue = brew.GetProcessParameterValue(ProcessEquipment.HoldingVessel,
                                                                     paramToCheck.ToString());

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

                //Set new state
                //string newStateString =
                holdingVessel.SetState(newState);
                //Console.WriteLine("New state is: " + newStateString);
            }
        }
Ejemplo n.º 6
0
 public void SetEndTime(string paramText, string endTime, HoldingVessel holdingVessel, Brew brew)
 {
 }
Ejemplo n.º 7
0
 public void OnEntry(HoldingVessel holdingVessel, Brew brew)
 {
 }
Ejemplo n.º 8
0
 public void StartFilling(string paramText, string startTime, HoldingVessel holdingVessel, Brew brew)
 {
 }
Ejemplo n.º 9
0
 public void InitBrew(HoldingVessel holdingVessel, Brew brew)
 {
 }