// WortCopper Commands public void StartWortCopperHeating(string brewNumber, string fieldName, string fieldValue) { Brew brew = GetBrew(brewNumber); wortCopper.InitBrew(brew); wortCopper.StartHeating(fieldName, fieldValue); Notify(); }
// Whirlpool Commands public void StartWhirlpoolCasting(string brewNumber, string fieldName, string fieldValue) { Brew brew = GetBrew(brewNumber); whirlpool.InitBrew(brew); whirlpool.StartCasting(fieldName, fieldValue); Notify(); }
//HoldingVessel Commands public void StartHoldingVesselFilling(string startTime, string brewNumber, string fieldName, string fieldValue) { Brew brew = GetBrew(brewNumber); holdingVessel.InitBrew(brew); holdingVessel.StartFilling(fieldName, fieldValue); Notify(); }
//MashFilter Commands public void StartMashFilterPrefilling(string startTime, string brewNumber, string fieldName, string fieldValue) { Brew brew = GetBrew(brewNumber); mashFilter.InitBrew(brew); mashFilter.StartPrefilling(fieldName, fieldValue); Notify(); }
//MashTun Commands public void StartMashTunMashingIn(string startTime, string brewNumber, string fieldName, string fieldValue) { Brew brew = GetBrew(brewNumber); mashTun.InitBrew(brew); mashTun.StartMashingIn(fieldName, fieldValue); Notify(); }
//LiveBrewMonitor Commands //MashCopper Commands public void StartMashCopperMashingIn(string startTime, string brewNumber, string fieldName, string fieldValue) { Brew brew = GetBrew(brewNumber); // mashCopper.InitBrew(brew); mashCopper.StartMashingIn(brew, fieldName, fieldValue); Notify(); }
public void StartMashTunMashingIn(string startTime, Brew brew) { string parameterName = MashCopperProcessParameters.MashingInStartTime.ToString(); string parameterValue = brew.GetProcessParameterValue(ProcessEquipment.MashCopper, parameterName); if (parameterValue.Length == 0) { string paramToSetName = MashTunProcessParameters.MashingInStartTime.ToString(); brew.SetProcessParameterValue(ProcessEquipment.MashTun, paramToSetName, startTime); } }
//User Methods public void StartNewBrew(string startDate, string brandName, string brewNumber) { if (!_brews.ContainsKey(brewNumber)) // if (!_brews.ContainsKey(brewNumber)) { Brew brew = new Brew(startDate, brandName, brewNumber); if (liveBrewMonitor.BrewFileExists(brew)) { _brews.Add(brewNumber, brew); string filePath = liveBrewMonitor.GetBrewFilePath(brew); liveBrewMonitor.StartMonitoring(filePath, brew.BrandName, brew.BrewNumber); Notify(); } } }
public void CompleteWhirlpoolReady(string endTime, Brew brew) { }
public void StartMashTunMashingIn(string startTime, Brew brew) { throw new NotImplementedException(); }
//Methods public Brew GetBrew(string brewNumber) { Brew brew = new Brew(); return(_brews.ContainsKey(brewNumber) ? _brews[brewNumber] : brew); }
public BrewProxy(string startDate, string brandName, string brewNumber) { _brew = new Brew(startDate, brandName, brewNumber); }