Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.SimSharp/3.0.7/SimSharp-3.0.7/Core/Events/AnyOf.cs @ 12657

Last change on this file since 12657 was 12657, checked in by abeham, 9 years ago

#2420: Added Sim# as an ExtLib plugin

File size: 417 bytes
Line 
1
2using System.Collections.Generic;
3
4namespace SimSharp {
5  public class AnyOf : Condition {
6    public AnyOf(Environment environment, params Event[] events) : base(environment, events) { }
7    public AnyOf(Environment environment, IEnumerable<Event> events) : base(environment, events) { }
8
9    protected override bool Evaluate() {
10      return FiredEvents.Count > 0 || Events.Count == 0;
11    }
12  }
13}
Note: See TracBrowser for help on using the repository browser.