//State actions in state classs //Other methods public void PrintCurrentState() { IStateDescription currentStateDescription = (BrewingModel.BrewingProcessEquipment.IStateDescription)_currentState; Console.WriteLine("------------------------------------------"); Console.WriteLine(currentStateDescription.GetStateDescription()); Console.WriteLine("------------------------------------------"); }
public string CurrentStateString() { IStateDescription currentStateDescription = (BrewingModel.BrewingProcessEquipment.IStateDescription)_currentState; return(currentStateDescription.GetShortState()); }