Author: ygrego Date: 2015-04-20 10:46:42 +0000 (Mon, 20 Apr 2015) New Revision: 1233 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1233 Log: Implementation of class "SignalInfo" Added: oipf/js/impl/model/SignalInfo.js Added: oipf/js/impl/model/SignalInfo.js =================================================================== --- oipf/js/impl/model/SignalInfo.js (rev 0) +++ oipf/js/impl/model/SignalInfo.js 2015-04-20 10:46:42 UTC (rev 1233) @@ -0,0 +1,61 @@ +/* + * The SignalInfo object provides details on the signal strength of the tuner. + * If the tuner is not tuned to a transponder the all properties SHALL have + * the value undefined . + * + */ + +var SignalInfo = Class.extend({ + + /* + * Description: + * Signal strength measured in dBm, for example -31.5dBm. + * + * Type: readonly Number + */ + strength: null, + + /* + * Description: + * Signal quality with range from 0 to 100. Calculation of quality is a + * function of ber and snr . The specification remains silent as to + * how the calculation is made. + * + * Type: readonly Integer + */ + quality: null, + + /* + * Description: + * Bit error rate. + * + * Type: readonly Integer + */ + ber: null, + + /* + * Description: + * Signal to noise ratio (dB), for example 22.3dB. + * + * Type: readonly Number + */ + snr: null, + + /* + * Description: + * True if the tuner is locked to a transponder. + * + * Type: readonly Boolean + */ + lock: null, + + + init: function(strength, quality, quality, ber, snr, lock) { + this.strength = strength; + this.quality = quality; + this.ber = ber; + this.snr = snr; + this.lock = lock; + } +}); +
participants (1)
-
ygregoï¼ users.nuiton.org