public static BreachType classifyTemperatureBreach(CoolingType coolingType, double temperatureInC) { ICoolingLimits coolingLimits = FetchInstance(coolingType.ToString()) as ICoolingLimits; return(inferBreach(temperatureInC, coolingLimits.getLowerLimit, coolingLimits.getUpperLimit)); }
public static BreachType ClassifyTemperatureBreach(CoolingType coolingType, double temperatureInC) { ICoolingType cooling = BMSInstanceCreator.GetInstance(coolingType.ToString()) as ICoolingType; return(CheckBreachType(temperatureInC, cooling.LowerLimit, cooling.UpperLimit)); }