using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IStation.Calculation { /// /// 调度分析计算器工厂 /// public class DispatchAnalyCalculatorFactory { /// /// 计算工具 /// public enum eCalcTool { /// /// /// General = 0, /// /// /// EPT = 1 } /// /// 创建计算器 /// 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; } } }