C# Класс Gor.Devices.Sensor

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
logger System.Logger

Защищенные свойства (Protected)

Свойство Тип Описание
calibration Calibration_2Points
firstValue bool
isCalibrating bool
voltage double

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

Метод Описание
CalibrationPoint ( double value ) : double
EndCalibration ( ) : void
Initialization ( ) : void
Measure ( ) : List

Method that returns the "finished" measurement (or measurements), including calibration correction (if any) N.B. Measure has to set the LastMeasurement List before returning

Read ( ) : string

Raw reading from the sensor, when it is in string format If the sensor uses this method then it will override it. If not overridden the method signals error by returning a "Nope!" string

ReadDouble ( ) : double

Raw reading from the sensor, when it is a floating point number If the sensor uses this method then it will override it. If not overridden the method signals error by returning MaxValue

ReadInt ( ) : int

Raw reading from the sensor, when it is an integer number If the sensor uses this method then it will override it. If not overridden the method signals error by returning MaxValue

Sensor ( string Name, bool Simulation, System.Logger Logger ) : System
StandardDeviation ( int readNumber = 10 ) : double
StartCalibration ( ) : void
ToString ( ) : string

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

Метод Описание
SetFirstValue ( ) : List
SimulateSensor ( ) : Measurement

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

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

public CalibrationPoint ( double value ) : double
value double
Результат double

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

public EndCalibration ( ) : void
Результат void

Initialization() публичный абстрактный Метод

public abstract Initialization ( ) : void
Результат void

Measure() публичный абстрактный Метод

Method that returns the "finished" measurement (or measurements), including calibration correction (if any) N.B. Measure has to set the LastMeasurement List before returning
public abstract Measure ( ) : List
Результат List

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

Raw reading from the sensor, when it is in string format If the sensor uses this method then it will override it. If not overridden the method signals error by returning a "Nope!" string
public Read ( ) : string
Результат string

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

Raw reading from the sensor, when it is a floating point number If the sensor uses this method then it will override it. If not overridden the method signals error by returning MaxValue
public ReadDouble ( ) : double
Результат double

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

Raw reading from the sensor, when it is an integer number If the sensor uses this method then it will override it. If not overridden the method signals error by returning MaxValue
public ReadInt ( ) : int
Результат int

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

public Sensor ( string Name, bool Simulation, System.Logger Logger ) : System
Name string
Simulation bool
Logger System.Logger
Результат System

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

public StandardDeviation ( int readNumber = 10 ) : double
readNumber int
Результат double

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

public StartCalibration ( ) : void
Результат void

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

public ToString ( ) : string
Результат string

Описание свойств

calibration защищенное свойство

protected Calibration_2Points calibration
Результат Calibration_2Points

firstValue защищенное свойство

protected bool firstValue
Результат bool

isCalibrating защищенное свойство

protected bool isCalibrating
Результат bool

logger публичное свойство

public Logger,System logger
Результат System.Logger

voltage защищенное свойство

protected double voltage
Результат double