Пример #1
0
        public bool IsNeedAdaptYBuffer(DataEntityInfo latestInfo)
        {
            bool notNeedDeepCopyYPlotBuffer = NotNeedDeepCopyYPlotBuffer();

            return((notNeedDeepCopyYPlotBuffer ^ latestInfo.NotNeedDeepCopyYPlotBuffer()) ||
                   this.LineNum != latestInfo.LineNum);
        }
Пример #2
0
 public DataEntity(DataCheckParameters dataCheckParams)
 {
     DataInfo         = new DataEntityInfo();
     PlotBuf          = new PlotBuffer(this);
     _transBuf        = null;
     _dataCheckParams = dataCheckParams;
     Parallel         = new ParallelHandler(this, dataCheckParams);
 }
Пример #3
0
        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;
        }
Пример #4
0
 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;
 }
Пример #5
0
        public bool IsNeedAdaptXBuffer(DataEntityInfo latestInfo)
        {
//            return NotNeedDeepCopyXPlotBuffer() ^ latestInfo.NotNeedDeepCopyXPlotBuffer();
            // TODO 为了保证稳定性,暂时强制配置
            return(true);
        }
Пример #6
0
 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));
 }