C# Class Quickstarts.AlarmConditionServer.UnderlyingSystem

An object that provides access to the underlying system.
Inheritance: IDisposable
Datei anzeigen Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Methods

Method Description
CreateSource ( string sourcePath, AlarmChangedEventHandler alarmChangeCallback ) : UnderlyingSystemSource

Creates a source.

Dispose ( ) : void

Frees any unmanaged resources.

StartSimulation ( ) : void

Starts a simulation which causes the alarm states to change.

This simulation randomly activates the alarms that belong to the sources. Once an alarm is active it has to be acknowledged and confirmed. Once an alarm is confirmed it go to the inactive state. If the alarm stays active the severity will be gradually increased.

StopSimulation ( ) : void

Stops the simulation.

UnderlyingSystem ( ) : System

Initializes a new instance of the UnderlyingSystem class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

Private Methods

Method Description
DoSimulation ( object state ) : void

Simulates a source by updating the state of the alarms belonging to the condition.

Method Details

CreateSource() public method

Creates a source.
public CreateSource ( string sourcePath, AlarmChangedEventHandler alarmChangeCallback ) : UnderlyingSystemSource
sourcePath string The source path.
alarmChangeCallback AlarmChangedEventHandler The callback invoked when an alarm changes.
return UnderlyingSystemSource

Dispose() public method

Frees any unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
return void

StartSimulation() public method

Starts a simulation which causes the alarm states to change.
This simulation randomly activates the alarms that belong to the sources. Once an alarm is active it has to be acknowledged and confirmed. Once an alarm is confirmed it go to the inactive state. If the alarm stays active the severity will be gradually increased.
public StartSimulation ( ) : void
return void

StopSimulation() public method

Stops the simulation.
public StopSimulation ( ) : void
return void

UnderlyingSystem() public method

Initializes a new instance of the UnderlyingSystem class.
public UnderlyingSystem ( ) : System
return System