Interface ISession
Describes a session.
Namespace: MESL.SqlRace.Domain
Assembly: MESL.SqlRace.Domain.dll
Syntax
public interface ISession
Properties
ApplicationGroups
Gets the application groups.
Declaration
ReadOnlyCollection<ApplicationGroup> ApplicationGroups { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<ApplicationGroup> | The application groups. |
Constants
Gets the constants.
Declaration
SessionDataItemsCollection<Constant> Constants { get; }
Property Value
Type | Description |
---|---|
SessionDataItemsCollection<Constant> | The constants. |
CoverageCursor
Gets current coverage cursor value of the session.
Declaration
long CoverageCursor { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
EndTime
Gets the end time.
Declaration
long EndTime { get; }
Property Value
Type | Description |
---|---|
System.Int64 | The end time. |
EpochDate
Gets the epoch date.
Declaration
Nullable<DateTime> EpochDate { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | The epoch date. |
EventDefinitions
Gets the event definitions.
Declaration
ReadOnlyCollection<EventDefinition> EventDefinitions { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<EventDefinition> | The event definitions. |
Events
Gets the start time.
Declaration
EventCollection Events { get; }
Property Value
Type | Description |
---|---|
EventCollection | The start time. |
InstanceIdentifier
Gets the instance identifier.
Declaration
Guid InstanceIdentifier { get; }
Property Value
Type | Description |
---|---|
System.Guid | The instance identifier. |
Key
Gets the key.
Declaration
SessionKey Key { get; }
Property Value
Type | Description |
---|---|
SessionKey | The key. |
LapCollection
Gets the ILapCollection providing access to Laps for this session.
Declaration
ILapCollection LapCollection { get; }
Property Value
Type | Description |
---|---|
ILapCollection |
Laps
Gets the LapCollection providing access to Laps for this session.
Declaration
LapCollection Laps { get; }
Property Value
Type | Description |
---|---|
LapCollection |
StartTime
Gets the start time.
Declaration
long StartTime { get; }
Property Value
Type | Description |
---|---|
System.Int64 | The start time. |
State
Gets the session state.
Declaration
SessionState State { get; }
Property Value
Type | Description |
---|---|
SessionState | The session state. |
Methods
AddChannelData(UInt32, Int64, Int32, Byte[])
Adds channel data.
Declaration
void AddChannelData(uint channelId, long timestamp, int count, byte[] data)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | channelId | The channel identifier. |
System.Int64 | timestamp | The timestamp. |
System.Int32 | count | The count. |
System.Byte[] | data | The data. |
AddChannelData(UInt32, Int64, Int32, Byte[], Boolean)
Adds channel data.
Declaration
void AddChannelData(uint channelId, long timestamp, int count, byte[] data, bool notifyClient)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | channelId | The channel identifier. |
System.Int64 | timestamp | The timestamp. |
System.Int32 | count | The count. |
System.Byte[] | data | The data. |
System.Boolean | notifyClient |
AddRowData(Int64, IList<UInt32>, Byte[])
Adds row data.
Declaration
void AddRowData(long timestamp, IList<uint> channelIds, byte[] data)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | timestamp | The timestamp. |
System.Collections.Generic.IList<System.UInt32> | channelIds | The channel identifiers. |
System.Byte[] | data | The data. |
AddRowData(Int64, IList<UInt32>, Byte[], Boolean)
Adds row data.
Declaration
void AddRowData(long timestamp, IList<uint> channelIds, byte[] data, bool notifyClient)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | timestamp | The timestamp. |
System.Collections.Generic.IList<System.UInt32> | channelIds | The channel identifiers. |
System.Byte[] | data | The data. |
System.Boolean | notifyClient |
AddRowData(UInt32, Int64[], Byte[], Int32, Boolean)
Adds a set of row data samples to the specified channel.
Declaration
void AddRowData(uint channelId, long[] timestamps, byte[] data, int channelSizeInBytes, bool notifyClient)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | channelId | The channel identifier. |
System.Int64[] | timestamps | The timestamps. |
System.Byte[] | data | The data. Length must be at least the number of timestamps multiplied by channelSizeInBytes. |
System.Int32 | channelSizeInBytes | Size of the channel. |
System.Boolean | notifyClient | if set to |
CreateConfiguration()
Creates a configuration set that can be used to add configuration.
Declaration
ConfigurationSet CreateConfiguration()
Returns
Type | Description |
---|---|
ConfigurationSet | A configuration set. |
Remarks
TODO: Return type should be IConfigurationSet
CreateParameterDataAccess(String)
Creates the parameter data access.
Declaration
ParameterDataAccessBase CreateParameterDataAccess(string parameterId)
Parameters
Type | Name | Description |
---|---|---|
System.String | parameterId | The parameter identifier. |
Returns
Type | Description |
---|---|
ParameterDataAccessBase | A parameter data access object for the parameter. |
GetEventData(Int64, Int64)
Gets Event data for session along with associated session.
Declaration
IEnumerable<Event> GetEventData(long startTime, long endTime)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | startTime | Start time of requested time range |
System.Int64 | endTime | End time of requested time range |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Event> |
GetParameter(String)
Gets the parameter with the specified identifier.
Declaration
ParameterBase GetParameter(string parameterIdentifier)
Parameters
Type | Name | Description |
---|---|---|
System.String | parameterIdentifier | The parameter identifier. |
Returns
Type | Description |
---|---|
ParameterBase | The parameter with the identifier specified, or null if no parameter with that identifier exists. |
Remarks
TODO: Return type should be IParameter
GetParameterOrDefault(String)
Returns the parameter with the specified identifier.
Declaration
ParameterBase GetParameterOrDefault(string parameterIdentifier)
Parameters
Type | Name | Description |
---|---|---|
System.String | parameterIdentifier | Name of the parameter identifier. |
Returns
Type | Description |
---|---|
ParameterBase | ParameterBase with the specified identifier or null if no matching parameter is found. |
RecalculateParameters()
Recalculate parameters for session.
Declaration
void RecalculateParameters()
Events
FunctionParametersAdded
Occurs when function parameters are added.
Declaration
event EventHandler<SessionEventArgs> FunctionParametersAdded
Event Type
Type | Description |
---|---|
System.EventHandler<SessionEventArgs> |
FunctionParametersRemoved
Occurs when function parameters are removed.
Declaration
event EventHandler<SessionEventArgs> FunctionParametersRemoved
Event Type
Type | Description |
---|---|
System.EventHandler<SessionEventArgs> |
ParametersAdded
Occurs when parameters are added.
Declaration
event EventHandler<SessionEventArgs> ParametersAdded
Event Type
Type | Description |
---|---|
System.EventHandler<SessionEventArgs> |
RdaParametersChanged
Occurs when the RDA parameters have changed as a result of processing an unlock list checksum.
Declaration
event EventHandler<SessionEventArgs> RdaParametersChanged
Event Type
Type | Description |
---|---|
System.EventHandler<SessionEventArgs> |
SessionClosed
Event fired when session is closed.
Declaration
event EventHandler<SessionClosedArgs> SessionClosed
Event Type
Type | Description |
---|---|
System.EventHandler<SessionClosedArgs> |
SessionStatusChangedEventOccurred
Occurs when session status changes.
Declaration
event EventHandler<SessionStatusChangedEventArgs> SessionStatusChangedEventOccurred
Event Type
Type | Description |
---|---|
System.EventHandler<SessionStatusChangedEventArgs> |