Free cookie consent management tool by TermsFeed Policy Generator

source: stable/HeuristicLab.ExtLibs/HeuristicLab.SimSharp/3.1.1/SimSharp-3.1.1/Collections/EventQueueNode.cs @ 17181

Last change on this file since 17181 was 15972, checked in by abeham, 6 years ago

#2926: Replaced Sim# 3.0.9 with 3.0.11

File size: 1.4 KB
Line 
1using System;
2
3namespace SimSharp {
4  public class EventQueueNode {
5    /// <summary>
6    /// The Priority to insert this node at. Must be set BEFORE adding a node to the queue.
7    /// </summary>
8    public DateTime PrimaryPriority { get; set; }
9
10    /// <summary>
11    /// An integer priority that will be used to distinguish nodes with the same
12    /// <see cref="PrimaryPriority"/> and before the <see cref="InsertionIndex"/> is used.
13    /// Must be set BEFORE adding a node to the queue.
14    /// </summary>
15    /// <remarks>
16    /// A lower value means higher priority, thus int.MinValue has highest priority.
17    /// </remarks>
18    public int SecondaryPriority { get; set; }
19
20    /// <summary>
21    /// The event that is associated with this node.
22    /// </summary>
23    public Event Event { get; set; }
24
25    /// <summary>
26    /// <b>Used by the priority queue - do not edit this value.</b>
27    /// Represents the order the node was inserted in
28    /// </summary>
29    /// <remarks>
30    /// This is unique among all inserted nodes and thus represents the third and final priority.
31    /// </remarks>
32    public long InsertionIndex { get; set; }
33
34    /// <summary>
35    /// <b>Used by the priority queue - do not edit this value.</b>
36    /// Represents the current position in the queue
37    /// </summary>
38    public int QueueIndex { get; set; }
39  }
40}
Note: See TracBrowser for help on using the repository browser.