C# 클래스 Gor.Devices.Sensor

파일 보기 프로젝트 열기: gamondue/GOR-4H-16

공개 프로퍼티들

프로퍼티 타입 설명
logger System.Logger

보호된 프로퍼티들

프로퍼티 타입 설명
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