source:
trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.SimSharp/3.0.7/SimSharp-3.0.7/Core/Events/AllOf.cs
@
12657
Last change on this file since 12657 was 12657, checked in by abeham, 9 years ago | |
---|---|
File size: 408 bytes |
Line | |
---|---|
1 | |
2 | using System.Collections.Generic; |
3 | |
4 | namespace SimSharp { |
5 | public class AllOf : Condition { |
6 | public AllOf(Environment environment, params Event[] events) : base(environment, events) { } |
7 | public AllOf(Environment environment, IEnumerable<Event> events) : base(environment, events) { } |
8 | |
9 | protected override bool Evaluate() { |
10 | return FiredEvents.Count == Events.Count; |
11 | } |
12 | } |
13 | } |
Note: See TracBrowser
for help on using the repository browser.