123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace Aitex.UI.Charting.Model
- {
- public class RecipeSyncPoint
- {
- public DateTime StepTime { get; set; }
- public string StepName { get; set; }
- public override string ToString()
- {
- return string.Format("{0} {1}", StepTime.ToString("yyyy/MM/dd HH:mm:ss"), StepName);
- }
- }
- public interface IDataSource : IDisposable
- {
- #if false
- /// <summary>
- /// Open data source object
- /// </summary>
- /// <param name="timeBegin"></param>
- /// <param name="timeEnd"></param>
- /// <param name="sourceName"></param>
- /// <returns></returns>
- bool Open(DateTime timeBegin, DateTime timeEnd, string sourceName);
- /// <summary>
- /// Get all data names
- /// </summary>
- IEnumerable<string> DataNames { get; set; }
- #endif
- /// <summary>
- /// 数据实体
- /// </summary>
- Dictionary<string, DataItem> Datas { get; set; }
- /// <summary>
- /// Get name of this data source
- /// </summary>
- string Title { get; set; }
- /// <summary>
- /// Get chamber name
- /// </summary>
- string ChamberName { get; set; }
- /// <summary>
- /// Get wafer display
- /// </summary>
- string WaferDisplayIndex { get; set; }
- /// <summary>
- /// Get description of this data object
- /// </summary>
- string Description { get; set; }
- /// <summary>
- /// Get actual data begin time
- /// </summary>
- DateTime BeginTime { get; set; }
- /// <summary>
- /// Get actual data end time
- /// </summary>
- DateTime EndTime { get; set; }
- /// <summary>
- /// 时间位移
- /// </summary>
- TimeSpan TimeMove { get; set; }
- /// <summary>
- /// 同步时间点
- /// </summary>
- RecipeSyncPoint SyncPoint { get; set; }
- /// <summary>
- /// Get recipe related step information
- /// </summary>
- List<RecipeSyncPoint> RecipeSteps { get; set; }
- /// <summary>
- /// Get specific datas from the data source object
- /// </summary>
- /// <param name="dataName"></param>
- /// <param name="beginTime"></param>
- /// <param name="endTime"></param>
- /// <param name="returnDataItem"></param>
- /// <returns></returns>
- bool GetData(string dataName, DateTime beginTime, DateTime endTime, out DataItem returnDataItem);
- /// <summary>
- /// Get specific datas from the data source object
- /// </summary>
- /// <param name="dataNames"></param>
- /// <param name="beginTime"></param>
- /// <param name="endTime"></param>
- /// <param name="returnDataItem"></param>
- /// <returns></returns>
- bool GetData(List<string> dataNames, DateTime beginTime, DateTime endTime, out List<DataItem> returnDataItems);
- }
- #if false
- /// <summary>
- /// Data object definitions
- /// </summary>
- [Serializable]
- public class DataItem
- {
- /// <summary>
- /// data name
- /// </summary>
- public string DataName { get; set; }
- /// <summary>
- /// time stamp array
- /// </summary>
- public List<DateTime> TimeStamp { get; set; }
- /// <summary>
- /// raw data array
- /// </summary>
- public List<float> RawData { get; set; }
- }
- #endif
- }
|