示例#1
0
        public static Common.RegulatingControlModeKind GetRegulatingControlModeKind(FTN.RegulatingControlModeKind modeKind)
        {
            switch (modeKind)
            {
            case RegulatingControlModeKind.activePower:
                return(Common.RegulatingControlModeKind.ActivePower);

            case RegulatingControlModeKind.admittance:
                return(Common.RegulatingControlModeKind.Admittance);

            case RegulatingControlModeKind.currentFlow:
                return(Common.RegulatingControlModeKind.CurrentFlow);

            case RegulatingControlModeKind.@fixed:
                return(Common.RegulatingControlModeKind.Fixed);

            case RegulatingControlModeKind.powerFactor:
                return(Common.RegulatingControlModeKind.PowerFactor);

            case RegulatingControlModeKind.reactivePower:
                return(Common.RegulatingControlModeKind.ReactivePower);

            case RegulatingControlModeKind.temperature:
                return(Common.RegulatingControlModeKind.Temperature);

            case RegulatingControlModeKind.timeScheduled:
                return(Common.RegulatingControlModeKind.TimeScheduled);

            case RegulatingControlModeKind.voltage:
                return(Common.RegulatingControlModeKind.Voltage);

            default:
                throw new ArgumentOutOfRangeException(nameof(modeKind), modeKind, null);
            }
        }
示例#2
0
        public static RegulatingControlModeKind GetDMSRegulatingControlModeKind(FTN.RegulatingControlModeKind regulatingControlModeKind)
        {
            switch (regulatingControlModeKind)
            {
            case FTN.RegulatingControlModeKind.activePower:
                return(RegulatingControlModeKind.activePower);

            case FTN.RegulatingControlModeKind.admittance:
                return(RegulatingControlModeKind.admittance);

            case FTN.RegulatingControlModeKind.currentFlow:
                return(RegulatingControlModeKind.currentFlow);

            case FTN.RegulatingControlModeKind.@fixed:
                return(RegulatingControlModeKind.@fixed);

            case FTN.RegulatingControlModeKind.powerFactor:
                return(RegulatingControlModeKind.powerFactor);

            case FTN.RegulatingControlModeKind.reactivePower:
                return(RegulatingControlModeKind.reactivePower);

            case FTN.RegulatingControlModeKind.temperature:
                return(RegulatingControlModeKind.temperature);

            case FTN.RegulatingControlModeKind.timeScheduled:
                return(RegulatingControlModeKind.timeScheduled);

            case FTN.RegulatingControlModeKind.voltage:
                return(RegulatingControlModeKind.voltage);

            default: return(RegulatingControlModeKind.Unknown);
            }
        }