C# Class Gor.Devices.Sensor

Afficher le fichier Open project: gamondue/GOR-4H-16

Méthodes publiques

Свойство Type Description
logger System.Logger

Protected Properties

Свойство Type Description
calibration Calibration_2Points
firstValue bool
isCalibrating bool
voltage double

Méthodes publiques

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

Private Methods

Méthode Description
SetFirstValue ( ) : List
SimulateSensor ( ) : Measurement

Method Details

CalibrationPoint() public méthode

public CalibrationPoint ( double value ) : double
value double
Résultat double

EndCalibration() public méthode

public EndCalibration ( ) : void
Résultat void

Initialization() public abstract méthode

public abstract Initialization ( ) : void
Résultat void

Measure() public abstract méthode

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

Read() public méthode

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

ReadDouble() public méthode

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

ReadInt() public méthode

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

Sensor() public méthode

public Sensor ( string Name, bool Simulation, System.Logger Logger ) : System
Name string
Simulation bool
Logger System.Logger
Résultat System

StandardDeviation() public méthode

public StandardDeviation ( int readNumber = 10 ) : double
readNumber int
Résultat double

StartCalibration() public méthode

public StartCalibration ( ) : void
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

calibration protected_oe property

protected Calibration_2Points calibration
Résultat Calibration_2Points

firstValue protected_oe property

protected bool firstValue
Résultat bool

isCalibrating protected_oe property

protected bool isCalibrating
Résultat bool

logger public_oe property

public Logger,System logger
Résultat System.Logger

voltage protected_oe property

protected double voltage
Résultat double