public oWindow(DateTime start, int maxTickets, int duration) { StartTime = start; Duration = new TimeSpan(0, duration, 0); MaxRiders = maxTickets; Queue = new oTickets(maxTickets, StartTime); }
//generates a defauld window with a starttime of // now, a MaxRiders of 5, and a duration of 5 minutes public oWindow() { StartTime = Now(); Duration = new TimeSpan(0, 5, 0); MaxRiders = 5; Queue = new oTickets(5, StartTime); }
private void ResetRiders() { Queue = new oTickets(MaxRiders, StartTime); }