Ejemplo n.º 1
0
        public ParallelHandler(DataCheckParameters dataCheckParams)
        {
            this._option          = new ParallelOptions();
            this._indexOffset     = 0;
            this._dataCheckParams = dataCheckParams;
            // 计算限制型配置并行度为内核个数
            _option.MaxDegreeOfParallelism = Environment.ProcessorCount;

            this._maxDatas = new double[_option.MaxDegreeOfParallelism];
            this._minDatas = new double[_option.MaxDegreeOfParallelism];
        }
Ejemplo n.º 2
0
        internal PlotManager(StripChartX parentChart, SeriesCollection plotSeries)
        {
            // LineSeries只是一个用于维护对外接口的属性
            this._fitType = StripChartX.FitType.Range;

            this.IsPlotting       = false;
            this._parentChart     = parentChart;
            this._plotSeriesCount = 1;

            this.PlotSeries       = plotSeries;
            this._plotSeriesCount = PlotSeries.Count;

            this.DataEntity = null;

            this._series    = new StripChartXSeriesCollection(plotSeries, parentChart);
            this.LineSeries = new StripChartXLineSeries(_series);

            this.DataCheckParams = new DataCheckParameters();

            this.DisplayPoints = Constants.DefaultDisplaySamples;

            this.MaxSeriesCount = Constants.DefaultMaxSeriesCount;
        }