public bool IsNeedAdaptYBuffer(DataEntityInfo latestInfo) { bool notNeedDeepCopyYPlotBuffer = NotNeedDeepCopyYPlotBuffer(); return((notNeedDeepCopyYPlotBuffer ^ latestInfo.NotNeedDeepCopyYPlotBuffer()) || this.LineNum != latestInfo.LineNum); }
public DataEntity(DataCheckParameters dataCheckParams) { DataInfo = new DataEntityInfo(); PlotBuf = new PlotBuffer(this); _transBuf = null; _dataCheckParams = dataCheckParams; Parallel = new ParallelHandler(this, dataCheckParams); }
public void Copy(DataEntityInfo src) { this.Size = src.Size; this.IsDeepCopy = src.IsDeepCopy; this.XDataInputType = src.XDataInputType; this.LineNum = src.LineNum; // this.XDataType = src.XDataType; }
public PlotBuffer(DataEntity dataEntity) { this._dataEntity = dataEntity; _dataInfo = new DataEntityInfo(); _plotSize = 0; SparseRatio = int.MaxValue; _xPlotBuffer = null; _yPlotBuffer = new List <IList <double> >(Constants.DefaultLineCapacity); _yShallowBuffer = new List <IList <double> >(Constants.DefaultLineCapacity); this.PlotXStart = double.NaN; this.PlotXEnd = double.NaN; }
public bool IsNeedAdaptXBuffer(DataEntityInfo latestInfo) { // return NotNeedDeepCopyXPlotBuffer() ^ latestInfo.NotNeedDeepCopyXPlotBuffer(); // TODO 为了保证稳定性,暂时强制配置 return(true); }
public bool IsEqual(DataEntityInfo src) { return(this.IsDeepCopy == src.IsDeepCopy && this.XDataInputType == src.XDataInputType && this.LineNum == src.LineNum && !(this.Size <= Constants.MaxPointsInSingleSeries ^ src.Size <= Constants.MaxPointsInSingleSeries)); }