Exemple #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;
        }
Exemple #2
0
        public DataHandlerFacadeWithComputationalContext(IStorageContext context, IComputationalContextFactory <TComputationalContext> computationalContextFactory, IUncertaintyEvaluator <TComputationalContext> uncertaintyEvaluator, IValuesAggregator <TComputationalContext> valuesAggregator)
            : base(context)
        {
            string typeString = this.GetType().ToString();

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