Ejemplo n.º 1
0
        /// <summary>
        /// Retrieves a value from the buffer that applies to the time passes as argument.
        /// During this process the buffer will do temporal operations,
        /// such as extrapolations, interpolations, or aggregation
        /// </summary>
        /// <param name="time">The time for which the values should apply</param>
        /// <returns>The values</returns>
        public virtual IValueSet GetValue(ITime time)
        {
            IValueSet values = this.SmartBuffer.GetValues(time);

            if (_linearDataOperation != null)
            {
                values = _linearDataOperation.PerformDataOperation(values);
            }

            return(ConvertUnit(values));
        }