Task #388

Document and refactor Channel

Added by Espen Solbu about 6 years ago.

Status:NewStart date:04/15/2012
Priority:NormalDue date:
Assignee:Espen Solbu% Done:

0%

Category:RefactorSpent time:-
Target version:2.5 Maintenance

Description

I need to document and refactor the Channel class.
There is confusion regardign what is used for what:

_raw incoming Raw value
_avg averaged Raw value
_val averaged value represented in Engineering Unit (and rounded)

convert - Used to convert raw value to value in engineering unit
toEng - Used to concatenate self or other value in engineering with unit
toString - Used to correctly format a value in engineering unit
toValueString - Used to correctly format a value in engineering unit (does not perform the rounding)
getValue() - Returns _avg or _raw (raw values)

Associated revisions

Revision 331
Added by Espen Solbu about 6 years ago

refs #388 Commented out toEng() as not used, and poor implementation

Revision 388
Added by Espen Solbu about 6 years ago

refs #388 Refactoring and documenting Channel class

Revision 389
Added by Espen Solbu about 6 years ago

refs #388 Refactoring and documenting Channel class

Revision 391
Added by Espen Solbu about 6 years ago

refs #388 Refactoring and documenting Channel class

Also available in: Atom PDF