Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/12/19 13:45:11 (5 years ago)
Author:
abeham
Message:

#2975: Updated Sim# to 3.1.1

Location:
trunk/HeuristicLab.ExtLibs/HeuristicLab.SimSharp/3.1.1
Files:
1 edited
1 copied
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.ExtLibs/HeuristicLab.SimSharp/3.1.1/SimSharp-3.1.1/Core/Events/Event.cs

    r15972 r16779  
    11#region License Information
    22/* SimSharp - A .NET port of SimPy, discrete event simulation framework
    3 Copyright (C) 2016  Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3Copyright (C) 2019  Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44
    55This program is free software: you can redistribute it and/or modify
     
    3636  /// </summary>
    3737  public class Event {
    38     protected internal Environment Environment { get; private set; }
     38    protected internal Simulation Environment { get; private set; }
    3939    protected List<Action<Event>> CallbackList { get; set; }
    4040
     
    7373    public bool IsTriggered { get; protected set; }
    7474
    75     public Event(Environment environment) {
     75    public Event(Simulation environment) {
    7676      Environment = environment;
    7777      CallbackList = new List<Action<Event>>();
     
    186186      if (IsProcessed) throw new InvalidOperationException("Event has already been processed.");
    187187      IsProcessed = true;
    188       foreach (var callback in CallbackList)
    189         callback(this);
     188      for (var i = 0; i < CallbackList.Count; i++)
     189        CallbackList[i](this);
    190190      CallbackList = null;
    191191    }
Note: See TracChangeset for help on using the changeset viewer.