Ejemplo n.º 1
0
        /// <summary>
        /// Creates and instance of the <see cref="DataHandlerFacade"/> class.
        /// </summary>
        /// <param name="context">Gives <paramref name="uncertaintyEvaluator"/> and <paramref name="valuesAggregator"/> access to data schema and values.</param>
        /// <param name="uncertaintyEvaluator">Uses <paramref name="context"/> to compute uncertainties.</param>
        /// <param name="valuesAggregator">Uses <paramref name="context"/> and a boolean mask to compute values.</param>
        public DataHandlerFacade(IStorageContext context, IUncertaintyEvaluator uncertaintyEvaluator, IValuesAggregator valuesAggregator) : base(context)
        {
            string typeString = this.GetType().ToString();

            traceSwitch = new AutoRegistratingTraceSource(string.Format("DataHandler_{0}", typeString));
            this.uncertaintyEvaluator = uncertaintyEvaluator;
            this.valuesAggregator     = valuesAggregator;
        }