using System; namespace SimSharp { public class EventQueueNode { /// /// The Priority to insert this node at. Must be set BEFORE adding a node to the queue. /// public DateTime PrimaryPriority { get; set; } /// /// An integer priority that will be used to distinguish nodes with the same /// and before the is used. /// Must be set BEFORE adding a node to the queue. /// /// /// A lower value means higher priority, thus int.MinValue has highest priority. /// public int SecondaryPriority { get; set; } /// /// The event that is associated with this node. /// public Event Event { get; set; } /// /// Used by the priority queue - do not edit this value. /// Represents the order the node was inserted in /// /// /// This is unique among all inserted nodes and thus represents the third and final priority. /// public long InsertionIndex { get; set; } /// /// Used by the priority queue - do not edit this value. /// Represents the current position in the queue /// public int QueueIndex { get; set; } } }