C# Class SqlServerTedWriter.SqlServerTedWriter

Writes the results of fault analysis to SQL Server Transient Event Database.
Inheritance: FaultResultsWriterBase
Mostrar archivo Open project: GridProtectionAlliance/openXDA

Public Methods

Method Description
LoadSettings ( ) : void

Loads saved FaultResultsWriterBase settings from the config file if the P:GSF.Adapters.Adapter.PersistSettings property is set to true.

SaveSettings ( ) : void

Saves FaultResultsWriterBase settings to the config file if the P:GSF.Adapters.Adapter.PersistSettings property is set to true.

WriteConfiguration ( ICollection deviceConfigurations ) : void

Writes configuration information to the output source.

WriteResults ( Device disturbanceRecorder, ICollection disturbanceFiles, FaultLocationDataSet>.ICollection lineDataSets ) : void

Writes the results to the output source.

Private Methods

Method Description
AddOrUpdate ( Device device, SqlCommand command ) : int
AddOrUpdate ( Line line, int deviceID, SqlCommand command ) : int
InsertCycleData ( FaultLocationDataSet faultDataSet, SqlCommand command, int lineDisturbanceID, int cycleIndex ) : void
InsertFaultData ( Line line, FaultLocationDataSet faultDataSet, SqlCommand command, int fileGroupID ) : void
InsertFaultDistances ( FaultLocationDataSet faultDataSet, SqlCommand command, int cycleIndex, int cycleID ) : void

Method Details

LoadSettings() public method

Loads saved FaultResultsWriterBase settings from the config file if the P:GSF.Adapters.Adapter.PersistSettings property is set to true.
has a value of null or empty string.
public LoadSettings ( ) : void
return void

SaveSettings() public method

Saves FaultResultsWriterBase settings to the config file if the P:GSF.Adapters.Adapter.PersistSettings property is set to true.
has a value of null or empty string.
public SaveSettings ( ) : void
return void

WriteConfiguration() public method

Writes configuration information to the output source.
public WriteConfiguration ( ICollection deviceConfigurations ) : void
deviceConfigurations ICollection Configuration information to be written to the output source.
return void

WriteResults() public method

Writes the results to the output source.
public WriteResults ( Device disturbanceRecorder, ICollection disturbanceFiles, FaultLocationDataSet>.ICollection lineDataSets ) : void
disturbanceRecorder FaultAlgorithms.Device The device that collected the disturbance data.
disturbanceFiles ICollection Information about the data files collected during the disturbance.
lineDataSets FaultLocationDataSet>.ICollection The data sets used for analysis to determine fault location.
return void