C# Класс Quickstarts.AlarmConditionServer.UnderlyingSystem

An object that provides access to the underlying system.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

Приватные методы

Метод Описание
DoSimulation ( object state ) : void

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

Описание методов

CreateSource() публичный Метод

Creates a source.
public CreateSource ( string sourcePath, AlarmChangedEventHandler alarmChangeCallback ) : UnderlyingSystemSource
sourcePath string The source path.
alarmChangeCallback AlarmChangedEventHandler The callback invoked when an alarm changes.
Результат UnderlyingSystemSource

Dispose() публичный Метод

Frees any unmanaged resources.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

StartSimulation() публичный Метод

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
Результат void

StopSimulation() публичный Метод

Stops the simulation.
public StopSimulation ( ) : void
Результат void

UnderlyingSystem() публичный Метод

Initializes a new instance of the UnderlyingSystem class.
public UnderlyingSystem ( ) : System
Результат System