Пример #1
0
        protected override ErrorMessage CheckSpecifiedValueRange(ProcessVarDouble pv, double aValue)
        {
            ErrorMessage retValue = base.CheckSpecifiedValueRange(pv, aValue);

            if (retValue != null)
            {
                return(retValue);
            }

            if (retValue == null)
            {
                if (calculationType == UnitOpCalculationType.Balance)
                {
                    retValue = balanceModel.CheckSpecifiedValueRange(pv, aValue);
                }
            }

            return(retValue);
        }
Пример #2
0
        protected override ErrorMessage CheckSpecifiedValueRange(ProcessVarDouble pv, double aValue)
        {
            ErrorMessage retValue = base.CheckSpecifiedValueRange(pv, aValue);

            if (retValue != null)
            {
                return(retValue);
            }

            if (retValue == null)
            {
                if (calculationType == UnitOpCalculationType.Balance)
                {
                    retValue = balanceModel.CheckSpecifiedValueRange(pv, aValue);
                }
            }

            if (pv == driftVelocity && aValue <= 0.0)
            {
                retValue = CreateLessThanOrEqualToZeroErrorMessage(pv);
            }

            return(retValue);
        }