Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/HeuristicLab.ExtLibs/HeuristicLab.SimSharp/3.3.2/SimSharp-3.3.2/Core/Resources/Events/StorePut.cs @ 18023

Last change on this file since 18023 was 18023, checked in by jkarder, 3 years ago

#3065: update Sim# to 3.3.2

File size: 705 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;
9
10namespace SimSharp {
11  public class StorePut : Event {
12    public DateTime Time { get; private set; }
13    public Process Owner { get; set; }
14
15    public StorePut(Simulation environment, Action<Event> callback, object value)
16      : base(environment) {
17      if (value == null) throw new ArgumentNullException("value", "Value to put in a Store cannot be null.");
18      CallbackList.Add(callback);
19      Value = value;
20      Time = environment.Now;
21      Owner = environment.ActiveProcess;
22    }
23  }
24}
Note: See TracBrowser for help on using the repository browser.