lixiaojun
2022-08-22 cd280a9457eda95433896e3e9e3aa5164bdd64a0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace IStation.Calculation
{
    /// <summary>
    /// 调度分析计算器工厂
    /// </summary>
    public class DispatchAnalyCalculatorFactory
    {
        /// <summary>
        /// 计算工具
        /// </summary>
        public enum eCalcTool
        {
            /// <summary>
            /// 
            /// </summary>
            General = 0,
            /// <summary>
            /// 
            /// </summary>
            EPT = 1
        }
        /// <summary>
        /// 创建计算器
        /// </summary>
        public static IDispatchAnalyCalculator CreateCalculator(long CorpID, string ObjectType,long ObjectID, eCalcTool? CalcTool)  
        {
            if(ObjectType == IStation.ObjectType.Station)
            {
                if(CorpID == 4)
                {//上海 原水
                    if (ObjectID == 2)
                    {
                        return new IStation.Calculation.DispatchAna.Calculator4ShysCxbz();
                    }           
                }
                return new IStation.Calculation.DispatchAna.Calculator4StationGeneral();
            }
 
 
 
            return null;
        }
    }
}