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 |
|
---|
8 | using System.Collections.Generic;
|
---|
9 |
|
---|
10 | namespace 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.