示例#1
0
 public oWindow(DateTime start, int maxTickets, int duration)
 {
     StartTime = start;
     Duration  = new TimeSpan(0, duration, 0);
     MaxRiders = maxTickets;
     Queue     = new oTickets(maxTickets, StartTime);
 }
示例#2
0
 //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);
 }
示例#3
0
 private void ResetRiders()
 {
     Queue = new oTickets(MaxRiders, StartTime);
 }