Class EventCollection
Class provides capability to read/write event data associated with a session.
Inheritance
Namespace: MESL.SqlRace.Domain.Collections
Assembly: MESL.SqlRace.Domain.dll
Syntax
public class EventCollection : Object
Properties
Conversions
Gets or sets the conversions.
Declaration
public Dictionary<string, ConversionBase> Conversions { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, ConversionBase> | The conversions. |
EventDefinitions
Gets or sets the event definitions.
Declaration
public Dictionary<string, EventDefinition> EventDefinitions { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, EventDefinition> | The event definitions. |
Methods
AddEventData(Int32, String, Int64, IList<Double>)
Adds event (instance) data to a session.
Declaration
public void AddEventData(int eventDefinitionKey, string groupName, long timeStamp, IList<double> rawData)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | eventDefinitionKey | The event definition key. |
System.String | groupName | Name of the group. |
System.Int64 | timeStamp | The time stamp. |
System.Collections.Generic.IList<System.Double> | rawData | The raw data. |
AddEventData(Int32, String, Int64, IList<Double>, Boolean)
Adds event (instance) data to a session.
Declaration
public void AddEventData(int eventDefinitionKey, string groupName, long timeStamp, IList<double> rawData, bool editable)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | eventDefinitionKey | The event definition key. |
System.String | groupName | Name of the group. |
System.Int64 | timeStamp | The time stamp. |
System.Collections.Generic.IList<System.Double> | rawData | The raw data. |
System.Boolean | editable | If set to |
AddEventData(Int32, String, Int64, IList<Double>, Boolean, String)
Adds event (instance) data to a session.
Declaration
public void AddEventData(int eventDefinitionKey, string groupName, long timeStamp, IList<double> rawData, bool editable, string statusText)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | eventDefinitionKey | The event definition key. |
System.String | groupName | Name of the group. |
System.Int64 | timeStamp | The time stamp. |
System.Collections.Generic.IList<System.Double> | rawData | The raw data. |
System.Boolean | editable | If set to |
System.String | statusText | The status text. |
GetDisplayText(Event)
Gets the display text for a specific event.
Declaration
public string GetDisplayText(Event eventData)
Parameters
Type | Name | Description |
---|---|---|
Event | eventData | The event. |
Returns
Type | Description |
---|---|
System.String | Display text for the event. |
GetEventData(Int64, Int64)
Gets the event data between the two timestamps.
Declaration
public IList<Event> GetEventData(long startTime, long endTime)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | startTime | The start time. |
System.Int64 | endTime | The end time. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<Event> | List of events |
GetEventDataByDefinition(Int64, Int64, Int32)
Gets the event data for a specific event definition between the two timestamps.
Declaration
public IList<Event> GetEventDataByDefinition(long startTime, long endTime, int eventDefinitionKey)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | startTime | The start time. |
System.Int64 | endTime | The end time. |
System.Int32 | eventDefinitionKey | The event definition key. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<Event> | List of events for the specified event definition. |
GetEventDataByPriority(Int64, Int64, EventPriorityType)
Gets the event data by priority between two timestamps.
Declaration
public IList<Event> GetEventDataByPriority(long startTime, long endTime, EventPriorityType priority)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | startTime | The start time. |
System.Int64 | endTime | The end time. |
EventPriorityType | priority | The event priority. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<Event> | List of events of the specified priority. |
Remove(Event)
Removes the specified event data.
Declaration
public void Remove(Event eventData)
Parameters
Type | Name | Description |
---|---|---|
Event | eventData | The event data. |
Events
ItemAdded
Event fired when an item is added to the collection
Declaration
public event EventHandler<ItemEventArgs> ItemAdded
Event Type
Type | Description |
---|---|
System.EventHandler<ItemEventArgs> |