예제 #1
0
 /// <summary>
 /// Fix up the data point collection from the given DTOs
 /// </summary>
 /// <param name="readings">Data point DTO collection</param>
 internal void FixupFromDto(DataPointCircularQueueDto dataPointQueueDto)
 {
     this.dao     = dataPointQueueDto.Dao;
     this.maxSize = dataPointQueueDto.MaxDataPoints;
     foreach (DataPointDto dataPointDto in dataPointQueueDto)
     {
         DataPoint newDataPoint = new DataPoint();
         newDataPoint.FixupFromDto(dataPointDto);
         this.dataPoints.Add(newDataPoint);
     }
 }
예제 #2
0
 /// <summary>
 /// Create the data point collection on disk
 /// </summary>
 public void Create()
 {
     this.dao = new BinaryFileDataPointCircularQueueDao((BinaryFileArchiveDao)this.archive.Dao);
     this.dao.Create(CreateDto());
 }