// Action when somebody from queue starts brewing coffe public void pushStartButton(int seconds) { if (!isServingMode && dict.Count > 0) { isServingMode = true; eventsTimeline.postEventToTimeline(seconds + coffeBrewingTime, pourTheCoffe); } }
// Action when user become regular busy mode. At the beginning of work or after superbusy mode public String doBecomeNotBusyMode(int seconds) { isSuperBusyMode = false; eventsTimeline.postEventToTimeline(seconds + inNotBusyModeTime(), doBecomeSuperBusyMode); return(String.Format("Employee {0} has entered to not busy mode at time {1}", employeeName, seconds)); }