C# Class Quickstarts.HistoricalAccessServer.ArchiveItemState

Stores the metadata for a node representing an item in the archive.
Inheritance: Opc.Ua.DataItemState
Show file Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Methods

Method Description
ArchiveItemState ( ISystemContext context, ArchiveItem item, ushort namespaceIndex ) : System

Creates a new instance of a item.

ConstructId ( string filePath, ushort namespaceIndex ) : Opc.Ua.NodeId

Constructs a node identifier for a item object.

DeleteAnnotationHistory ( SystemContext context, Opc.Ua.QualifiedName propertyName, System.DateTime sourceTimestamp ) : uint

Deletes a property value from the history.

DeleteHistory ( SystemContext context, System.DateTime sourceTimestamp ) : uint

Deletes a value from the history.

DeleteHistory ( SystemContext context, System.DateTime startTime, System.DateTime endTime, bool isModified ) : uint

Deletes a value from the history.

FindValueAfter ( DataView view, int position, bool ignoreBad, bool &dataIgnored ) : int

Returns the next value after the current position.

FindValueAtOrBefore ( DataView view, System.DateTime timestamp, bool ignoreBad, bool &dataIgnored ) : int

Finds the value at or before the timestamp.

LoadConfiguration ( SystemContext context ) : void

Loads the configuration.

NewSamples ( SystemContext context ) : List

Creates a new sample.

ReadHistory ( System.DateTime startTime, System.DateTime endTime, bool isModified ) : DataView

Reads the history for the specified time range.

ReadHistory ( System.DateTime startTime, System.DateTime endTime, bool isModified, Opc.Ua.QualifiedName browseName ) : DataView

Reads the history for the specified time range.

ReloadFromSource ( SystemContext context ) : void

Loads the data.

UpdateAnnotations ( SystemContext context, Annotation annotation, Opc.Ua.DataValue value, PerformUpdateType performUpdateType ) : uint

Updates the history.

UpdateHistory ( SystemContext context, Opc.Ua.DataValue value, PerformUpdateType performUpdateType ) : uint

Updates the history.

Private Methods

Method Description
GetModificationInfo ( SystemContext context, HistoryUpdateType updateType ) : ModificationInfo

Creates a modification info record.

SelectTable ( Opc.Ua.QualifiedName propertyName ) : DataTable

Selects the table to use.

Method Details

ArchiveItemState() public method

Creates a new instance of a item.
public ArchiveItemState ( ISystemContext context, ArchiveItem item, ushort namespaceIndex ) : System
context ISystemContext
item ArchiveItem
namespaceIndex ushort
return System

ConstructId() public static method

Constructs a node identifier for a item object.
public static ConstructId ( string filePath, ushort namespaceIndex ) : Opc.Ua.NodeId
filePath string
namespaceIndex ushort
return Opc.Ua.NodeId

DeleteAnnotationHistory() public method

Deletes a property value from the history.
public DeleteAnnotationHistory ( SystemContext context, Opc.Ua.QualifiedName propertyName, System.DateTime sourceTimestamp ) : uint
context Opc.Ua.SystemContext
propertyName Opc.Ua.QualifiedName
sourceTimestamp System.DateTime
return uint

DeleteHistory() public method

Deletes a value from the history.
public DeleteHistory ( SystemContext context, System.DateTime sourceTimestamp ) : uint
context Opc.Ua.SystemContext
sourceTimestamp System.DateTime
return uint

DeleteHistory() public method

Deletes a value from the history.
public DeleteHistory ( SystemContext context, System.DateTime startTime, System.DateTime endTime, bool isModified ) : uint
context Opc.Ua.SystemContext
startTime System.DateTime
endTime System.DateTime
isModified bool
return uint

FindValueAfter() public method

Returns the next value after the current position.
public FindValueAfter ( DataView view, int position, bool ignoreBad, bool &dataIgnored ) : int
view System.Data.DataView
position int
ignoreBad bool
dataIgnored bool
return int

FindValueAtOrBefore() public method

Finds the value at or before the timestamp.
public FindValueAtOrBefore ( DataView view, System.DateTime timestamp, bool ignoreBad, bool &dataIgnored ) : int
view System.Data.DataView
timestamp System.DateTime
ignoreBad bool
dataIgnored bool
return int

LoadConfiguration() public method

Loads the configuration.
public LoadConfiguration ( SystemContext context ) : void
context Opc.Ua.SystemContext
return void

NewSamples() public method

Creates a new sample.
public NewSamples ( SystemContext context ) : List
context Opc.Ua.SystemContext
return List

ReadHistory() public method

Reads the history for the specified time range.
public ReadHistory ( System.DateTime startTime, System.DateTime endTime, bool isModified ) : DataView
startTime System.DateTime
endTime System.DateTime
isModified bool
return System.Data.DataView

ReadHistory() public method

Reads the history for the specified time range.
public ReadHistory ( System.DateTime startTime, System.DateTime endTime, bool isModified, Opc.Ua.QualifiedName browseName ) : DataView
startTime System.DateTime
endTime System.DateTime
isModified bool
browseName Opc.Ua.QualifiedName
return System.Data.DataView

ReloadFromSource() public method

Loads the data.
public ReloadFromSource ( SystemContext context ) : void
context Opc.Ua.SystemContext
return void

UpdateAnnotations() public method

Updates the history.
public UpdateAnnotations ( SystemContext context, Annotation annotation, Opc.Ua.DataValue value, PerformUpdateType performUpdateType ) : uint
context Opc.Ua.SystemContext
annotation Annotation
value Opc.Ua.DataValue
performUpdateType PerformUpdateType
return uint

UpdateHistory() public method

Updates the history.
public UpdateHistory ( SystemContext context, Opc.Ua.DataValue value, PerformUpdateType performUpdateType ) : uint
context Opc.Ua.SystemContext
value Opc.Ua.DataValue
performUpdateType PerformUpdateType
return uint