Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/HeuristicLab.ExtLibs/HeuristicLab.SimSharp/3.3.1/SimSharp-3.3.1/Core/Events/AnyOf.cs @ 17487

Last change on this file since 17487 was 17487, checked in by abeham, 4 years ago

#3065: update Sim# to 3.3.1

File size: 607 bytes
Line 
1#region License Information
2/*
3 * This file is part of SimSharp which is licensed under the MIT license.
4 * See the LICENSE file in the project root for more information.
5 */
6#endregion
7
8using System.Collections.Generic;
9
10namespace SimSharp {
11  public class AnyOf : Condition {
12    public AnyOf(Simulation environment, params Event[] events) : base(environment, events) { }
13    public AnyOf(Simulation environment, IEnumerable<Event> events) : base(environment, events) { }
14
15    protected override bool Evaluate() {
16      return FiredEvents.Count > 0 || Events.Count == 0;
17    }
18  }
19}
Note: See TracBrowser for help on using the repository browser.