コード例 #1
0
ファイル: oWindow.cs プロジェクト: Nappyd326648/GrpPro12-2
 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
ファイル: oWindow.cs プロジェクト: Nappyd326648/GrpPro12-2
 //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
ファイル: oWindow.cs プロジェクト: Nappyd326648/GrpPro12-2
 private void ResetRiders()
 {
     Queue = new oTickets(MaxRiders, StartTime);
 }