/// <summary>
 /// 儲存已具備結果的Unit
 /// </summary>
 /// <param name="unit">The unit.</param>
 public void SaveEndUnit(MonitorUnitData unit)
 {
     lock (_monitorUnits)
     {
         _monitorUnits.Add(unit);
     }
 }
Beispiel #2
0
 /// <summary>
 /// 設置Unit的起跑點 (相當於設置賽跑選手在起跑線上,但還沒啟動)
 /// </summary>
 public void SetStartPoint()
 {
     // 初始化紀錄資料
     _monitorUnitData       = new MonitorUnitData();
     _monitorUnitData.isRun = false;
     _monitorManager.SaveEmptyUnit(_monitorUnitData);
 }
 /// <summary>
 /// 儲存空的Unit (用作輸出報告時,計算有初始化Unit,卻沒有等到反應結果的滯留Unit)
 /// </summary>
 /// <param name="unit">The unit.</param>
 public void SaveEmptyUnit(MonitorUnitData unit)
 {
     lock (_emptyMonitorUnits)
     {
         _emptyMonitorUnits.Add(unit);
     }
 }