Beispiel #1
0
        public static BreachType classifyTemperatureBreach(
            CoolingType coolingType, double temperatureInC)
        {
            int lowerLimit = 0;
            int upperLimit = 0;

            switch (coolingType)
            {
            case CoolingType.PASSIVE_COOLING:
                lowerLimit = 0;
                upperLimit = 35;
                break;

            case CoolingType.HI_ACTIVE_COOLING:
                lowerLimit = 0;
                upperLimit = 45;
                break;

            case CoolingType.MED_ACTIVE_COOLING:
                lowerLimit = 0;
                upperLimit = 40;
                break;
            }
            return(inferBreach(temperatureInC, lowerLimit, upperLimit));
        }
Beispiel #2
0
 public ExtremeLimit SetExtremeLimit(CoolingType coolingType)
 {
     return(new ExtremeLimit()
     {
         lowerLimit = 0,
         upperLimit = 40
     });
 }
Beispiel #3
0
        public static BreachType ClassifyTemperatureBreach(CoolingType coolingType, double temperatureInC)
        {
            ExtremeLimit _extremeLimit = new CoolingLimitDictionaryInitializer()._CoolingLimitType[coolingType]().SetExtremeLimit(coolingType);

            return(InferBreach(temperatureInC, _extremeLimit.lowerLimit, _extremeLimit.upperLimit));
        }
        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));
        }