C# Class Quickstarts.HistoricalEvents.Server.ReportGenerator

ファイルを表示 Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Methods

Method Description
DeleteEvent ( string eventId ) : bool

Deletes the event with the specified event id.

GenerateFluidLevelTestReport ( ) : DataRow
GenerateInjectionTestReport ( ) : DataRow
GetAreas ( ) : string[]
GetFluidLevelTestReport ( ISystemContext SystemContext, ushort namespaceIndex, DataRow row ) : BaseEventState
GetInjectionTestReport ( ISystemContext SystemContext, ushort namespaceIndex, DataRow row ) : BaseEventState
GetReport ( ISystemContext context, ushort namespaceIndex, ReportType reportType, DataRow row ) : BaseEventState

Converts the DB row to a UA event,

GetWells ( string areaName ) : WellInfo[]
Initialize ( ) : void
ReadHistoryForArea ( ReportType reportType, string areaName, System.DateTime startTime, System.DateTime endTime ) : DataView

Reads the report history for the specified time range.

ReadHistoryForWellId ( ReportType reportType, string uidWell, System.DateTime startTime, System.DateTime endTime ) : DataView

Reads the report history for the specified time range.

UpdateeInjectionTestReport ( DataRow row, IList fields, IList values ) : DataRow

Private Methods

Method Description
GetRandom ( int min, int max ) : int
GetRandom ( string values ) : string
ReadHistory ( ReportType reportType, StringBuilder filter, System.DateTime startTime, System.DateTime endTime ) : DataView

Reads the history for the specified time range.

Method Details

DeleteEvent() public method

Deletes the event with the specified event id.
public DeleteEvent ( string eventId ) : bool
eventId string
return bool

GenerateFluidLevelTestReport() public method

public GenerateFluidLevelTestReport ( ) : DataRow
return System.Data.DataRow

GenerateInjectionTestReport() public method

public GenerateInjectionTestReport ( ) : DataRow
return System.Data.DataRow

GetAreas() public method

public GetAreas ( ) : string[]
return string[]

GetFluidLevelTestReport() public method

public GetFluidLevelTestReport ( ISystemContext SystemContext, ushort namespaceIndex, DataRow row ) : BaseEventState
SystemContext ISystemContext
namespaceIndex ushort
row System.Data.DataRow
return Opc.Ua.BaseEventState

GetInjectionTestReport() public method

public GetInjectionTestReport ( ISystemContext SystemContext, ushort namespaceIndex, DataRow row ) : BaseEventState
SystemContext ISystemContext
namespaceIndex ushort
row System.Data.DataRow
return Opc.Ua.BaseEventState

GetReport() public method

Converts the DB row to a UA event,
public GetReport ( ISystemContext context, ushort namespaceIndex, ReportType reportType, DataRow row ) : BaseEventState
context ISystemContext The UA context to use for the conversion.
namespaceIndex ushort The index assigned to the type model namespace.
reportType ReportType The type of report.
row System.Data.DataRow The source for the report.
return Opc.Ua.BaseEventState

GetWells() public method

public GetWells ( string areaName ) : WellInfo[]
areaName string
return WellInfo[]

Initialize() public method

public Initialize ( ) : void
return void

ReadHistoryForArea() public method

Reads the report history for the specified time range.
public ReadHistoryForArea ( ReportType reportType, string areaName, System.DateTime startTime, System.DateTime endTime ) : DataView
reportType ReportType
areaName string
startTime System.DateTime
endTime System.DateTime
return System.Data.DataView

ReadHistoryForWellId() public method

Reads the report history for the specified time range.
public ReadHistoryForWellId ( ReportType reportType, string uidWell, System.DateTime startTime, System.DateTime endTime ) : DataView
reportType ReportType
uidWell string
startTime System.DateTime
endTime System.DateTime
return System.Data.DataView

UpdateeInjectionTestReport() public method

public UpdateeInjectionTestReport ( DataRow row, IList fields, IList values ) : DataRow
row System.Data.DataRow
fields IList
values IList
return System.Data.DataRow