C# Class TestData.TestDataSystem

Mostrar archivo Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Methods

Method Description
DoSample ( object state ) : void
EnableHistoryArchiving ( BaseVariableState variable ) : void

Creates an archive for the variable.

GetHistoryFile ( BaseVariableState variable ) : IHistoryDataSource

Returns the history file for the variable.

ReadValue ( BaseVariableState variable ) : object

Returns a new value for the variable.

SetSamplingInterval ( double samplingInterval ) : void
StartMonitoringValue ( uint monitoredItemId, double samplingInterval, BaseVariableState variable ) : void
StopMonitoringValue ( uint monitoredItemId ) : void
TestDataSystem ( ITestDataSystemCallback callback, Opc.Ua.NamespaceTable namespaceUris, StringTable serverUris ) : System

Private Methods

Method Description
GetRandomStructure ( ) : Opc.Ua.ExtensionObject

Returns a random structure.

Method Details

DoSample() public method

public DoSample ( object state ) : void
state object
return void

EnableHistoryArchiving() public method

Creates an archive for the variable.
public EnableHistoryArchiving ( BaseVariableState variable ) : void
variable BaseVariableState
return void

GetHistoryFile() public method

Returns the history file for the variable.
public GetHistoryFile ( BaseVariableState variable ) : IHistoryDataSource
variable BaseVariableState
return IHistoryDataSource

ReadValue() public method

Returns a new value for the variable.
public ReadValue ( BaseVariableState variable ) : object
variable BaseVariableState
return object

SetSamplingInterval() public method

public SetSamplingInterval ( double samplingInterval ) : void
samplingInterval double
return void

StartMonitoringValue() public method

public StartMonitoringValue ( uint monitoredItemId, double samplingInterval, BaseVariableState variable ) : void
monitoredItemId uint
samplingInterval double
variable BaseVariableState
return void

StopMonitoringValue() public method

public StopMonitoringValue ( uint monitoredItemId ) : void
monitoredItemId uint
return void

TestDataSystem() public method

public TestDataSystem ( ITestDataSystemCallback callback, Opc.Ua.NamespaceTable namespaceUris, StringTable serverUris ) : System
callback ITestDataSystemCallback
namespaceUris Opc.Ua.NamespaceTable
serverUris Opc.Ua.StringTable
return System