C# Class GSF.PhasorProtocols.UI.DataModels.OutputStreamDevice

Represents a record of OutputStreamDevice information as defined in the database.
Inheritance: DataModelBase
Exibir arquivo Open project: GridProtectionAlliance/gsf Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
AddDevices ( AdoDataConnection database, int outputStreamID, ObservableCollection devices, bool addDigitals, bool addAnalogs ) : string

Adds multiple devices to output steam.

Delete ( AdoDataConnection database, int outputStreamID, string outputStreamDeviceAcronym ) : string

Deletes specified OutputStreamDevice record from database.

GetLookupList ( AdoDataConnection database, int outputStreamID, bool isOptional = false ) : string>.Dictionary

Gets a Dictionary{T1,T2} style list of OutputStreamDevice information.

GetOutputStreamDevice ( AdoDataConnection database, string whereClause ) : OutputStreamDevice

Gets output stream device from the database based on where condition provided.

GetOutputStreamDevices ( AdoDataConnection database, string whereClause ) : ObservableCollection

Gets collection of output stream devices.

Load ( AdoDataConnection database, IList keys ) : ObservableCollection

Loads OutputStreamDevice information as an ObservableCollection{T} style list.

LoadKeys ( AdoDataConnection database, int outputStreamID, string sortMember = "", string sortDirection = "" ) : IList

LoadKeys OutputStreamDevice information as an ObservableCollection{T} style list.

Save ( AdoDataConnection database, OutputStreamDevice outputStreamDevice ) : string

Saves OutputStreamDevice information to database.

Method Details

AddDevices() public static method

Adds multiple devices to output steam.
public static AddDevices ( AdoDataConnection database, int outputStreamID, ObservableCollection devices, bool addDigitals, bool addAnalogs ) : string
database AdoDataConnection to connection to database.
outputStreamID int ID of the output stream to which devices needs to be added.
devices ObservableCollection Collection of devices to be added.
addDigitals bool Boolean flag indicating if analogs should be added.
addAnalogs bool Boolean flag indicating if digirals should be added.
return string

Delete() public static method

Deletes specified OutputStreamDevice record from database.
public static Delete ( AdoDataConnection database, int outputStreamID, string outputStreamDeviceAcronym ) : string
database AdoDataConnection to connection to database.
outputStreamID int ID of the output stream to filter data.
outputStreamDeviceAcronym string ID of the record to be deleted.
return string

GetLookupList() public static method

Gets a Dictionary{T1,T2} style list of OutputStreamDevice information.
public static GetLookupList ( AdoDataConnection database, int outputStreamID, bool isOptional = false ) : string>.Dictionary
database AdoDataConnection to connection to database.
outputStreamID int ID of the output stream to filter data.
isOptional bool Indicates if selection on UI is optional for this collection.
return string>.Dictionary

GetOutputStreamDevice() public static method

Gets output stream device from the database based on where condition provided.
public static GetOutputStreamDevice ( AdoDataConnection database, string whereClause ) : OutputStreamDevice
database AdoDataConnection to connection to database.
whereClause string query string to filter data.
return OutputStreamDevice

GetOutputStreamDevices() public static method

Gets collection of output stream devices.
public static GetOutputStreamDevices ( AdoDataConnection database, string whereClause ) : ObservableCollection
database AdoDataConnection Source database connection.
whereClause string Where filter clause.
return ObservableCollection

Load() public static method

Loads OutputStreamDevice information as an ObservableCollection{T} style list.
public static Load ( AdoDataConnection database, IList keys ) : ObservableCollection
database AdoDataConnection to connection to database.
keys IList Keys of the measurement to be loaded from the datbase
return ObservableCollection

LoadKeys() public static method

LoadKeys OutputStreamDevice information as an ObservableCollection{T} style list.
public static LoadKeys ( AdoDataConnection database, int outputStreamID, string sortMember = "", string sortDirection = "" ) : IList
database AdoDataConnection to connection to database.
outputStreamID int ID of the OutputStream to filter data.
sortMember string The field to sort by.
sortDirection string ASC or DESC for ascending or descending respectively.
return IList

Save() public static method

Saves OutputStreamDevice information to database.
public static Save ( AdoDataConnection database, OutputStreamDevice outputStreamDevice ) : string
database AdoDataConnection to connection to database.
outputStreamDevice OutputStreamDevice Information about .
return string