/// <summary> /// Inits the gates. /// </summary> private void InitGates() { ScoredTimeGates.Add(new TimeGate() { Ordinal = 0, Time = TimeSpan.FromMinutes(5) }); TaskFlightWindows.Add( new TimeWindow() { Ordinal = 0, DirectionOfCount = TimerDirection.CountDown, GateType = TimeGateType.Task, Time = TimeSpan.FromSeconds(10) }); }
/// <summary>Inits the gates. /// </summary> private void InitGates() { for (var i = 0; i < 4; ++i) { ScoredTimeGates.Add(new TimeGate() { Ordinal = i, Time = TimeSpan.FromMinutes(i + 1) }); } TaskFlightWindows.Add( new TimeWindow() { Ordinal = 0, DirectionOfCount = TimerDirection.CountDown, GateType = TimeGateType.Task, Time = TimeSpan.FromMinutes(10) }); }
/// <summary>Inits the gates. /// </summary> private void InitGates() { for (var i = 0; i < numberOfFlights; i++) { ScoredTimeGates.Add(new TimeGate() { Ordinal = i, Time = TimeSpan.FromMinutes(3) }); TaskFlightWindows.Add( new TimeWindow() { Ordinal = 0, DirectionOfCount = TimerDirection.CountDown, GateType = TimeGateType.Task, Time = TimeSpan.FromMinutes(3) }); // Add the landing windows and breaks for all but the last. if (i < numberOfFlights - 1) { TaskFlightWindows.Add( new TimeWindow() { Ordinal = 0, DirectionOfCount = TimerDirection.CountDown, GateType = TimeGateType.Landing, Time = TimeSpan.FromSeconds(30) }); TaskFlightWindows.Add( new TimeWindow() { Ordinal = 0, DirectionOfCount = TimerDirection.CountDown, GateType = TimeGateType.Break, Time = TimeSpan.FromMinutes(1) }); } } }
/// <summary> /// Initializes the gates. /// </summary> private void InitGates() { ScoredTimeGates.Add(new TimeGate() { Ordinal = 6, Time = TimeSpan.FromSeconds(120) }); ScoredTimeGates.Add(new TimeGate() { Ordinal = 5, Time = TimeSpan.FromSeconds(105) }); ScoredTimeGates.Add(new TimeGate() { Ordinal = 4, Time = TimeSpan.FromSeconds(90) }); ScoredTimeGates.Add(new TimeGate() { Ordinal = 3, Time = TimeSpan.FromSeconds(75) }); ScoredTimeGates.Add(new TimeGate() { Ordinal = 2, Time = TimeSpan.FromSeconds(60) }); ScoredTimeGates.Add(new TimeGate() { Ordinal = 1, Time = TimeSpan.FromSeconds(45) }); ScoredTimeGates.Add(new TimeGate() { Ordinal = 0, Time = TimeSpan.FromSeconds(30) }); TaskFlightWindows.Add( new TimeWindow() { Ordinal = 0, DirectionOfCount = TimerDirection.CountDown, GateType = TimeGateType.Task, Time = TimeSpan.FromMinutes(10) }); }