C# Class Quickstarts.AlarmConditionServer.UnderlyingSystem

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

Private Methods

Méthode Description
DoSimulation ( object state ) : void

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

Method Details

CreateSource() public méthode

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

Dispose() public méthode

Frees any unmanaged resources.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

StartSimulation() public méthode

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
Résultat void

StopSimulation() public méthode

Stops the simulation.
public StopSimulation ( ) : void
Résultat void

UnderlyingSystem() public méthode

Initializes a new instance of the UnderlyingSystem class.
public UnderlyingSystem ( ) : System
Résultat System