public static void PopulateEnergyConsumerProperties(FTN.EnergyConsumer cimEnergyConsumer, ResourceDescription rd, ImportHelper importHelper, TransformAndLoadReport report)
        {
            if ((cimEnergyConsumer != null) && (rd != null))
            {
                LoadFlowConverter.PopulateConductingEquipmentProperties(cimEnergyConsumer, rd, importHelper, report);

                if (cimEnergyConsumer.GroundedHasValue)
                {
                    rd.AddProperty(new Property(ModelCode.ENERGYCONSUMER_GROUNDED, (short)GetDMSWindingConnection(cimEnergyConsumer.Grounded)));
                }
                if (cimEnergyConsumer.PhaseConnectionHasValue)
                {
                    rd.AddProperty(new Property(ModelCode.ENERGYCONSUMER_PHASECONNECTION, (short)GetPhaseShuntConnectionKind(cimEnergyConsumer.PhaseConnection)));
                }
                if (cimEnergyConsumer.PfixedHasValue)
                {
                    rd.AddProperty(new Property(ModelCode.ENERGYCONSUMER_PFIXED, cimEnergyConsumer.Pfixed));
                }
                if (cimEnergyConsumer.PfixedPctHasValue)
                {
                    rd.AddProperty(new Property(ModelCode.ENERGYCONSUMER_PFIXEDPCT, cimEnergyConsumer.PfixedPct));
                }
                if (cimEnergyConsumer.QfixedHasValue)
                {
                    rd.AddProperty(new Property(ModelCode.ENERGYCONSUMER_QFIXED, cimEnergyConsumer.Qfixed));
                }
                if (cimEnergyConsumer.QfixedPctHasValue)
                {
                    rd.AddProperty(new Property(ModelCode.ENERGYCONSUMER_QFIXEDPCT, cimEnergyConsumer.QfixedPct));
                }
            }
        }
 public static void PopulatePowerTransformerProperties(FTN.PowerTransformer cimPowerTransformer, ResourceDescription rd, ImportHelper importHelper, TransformAndLoadReport report)
 {
     if ((cimPowerTransformer != null) && (rd != null))
     {
         LoadFlowConverter.PopulateConductingEquipmentProperties(cimPowerTransformer, rd, importHelper, report);
     }
 }
 public static void PopulateConductorProperties(FTN.Conductor cimConductor, ResourceDescription rd, ImportHelper importHelper, TransformAndLoadReport report)
 {
     if ((cimConductor != null) && (rd != null))
     {
         LoadFlowConverter.PopulateConductingEquipmentProperties(cimConductor, rd, importHelper, report);
         if (cimConductor.LengthHasValue)
         {
             rd.AddProperty(new Property(ModelCode.CONDUCTOR_LENGTH, cimConductor.Length));
         }
     }
 }
        public static void PopulateSwitchProperties(FTN.Switch cimSwitch, ResourceDescription rd, ImportHelper importHelper, TransformAndLoadReport report)
        {
            if ((cimSwitch != null) && (rd != null))
            {
                LoadFlowConverter.PopulateConductingEquipmentProperties(cimSwitch, rd, importHelper, report);

                if (cimSwitch.NormalOpenHasValue)
                {
                    rd.AddProperty(new Property(ModelCode.SWITCH_NORMALOPEN, cimSwitch.NormalOpen));
                }
            }
        }
        public static void PopulateEnergySourceProperties(FTN.EnergySource cimEnergySource, ResourceDescription rd, ImportHelper importHelper, TransformAndLoadReport report)
        {
            if ((cimEnergySource != null) && (rd != null))
            {
                LoadFlowConverter.PopulateConductingEquipmentProperties(cimEnergySource, rd, importHelper, report);

                if (cimEnergySource.RHasValue)
                {
                    rd.AddProperty(new Property(ModelCode.ENERGYSOURCE_R, cimEnergySource.R));
                }
                if (cimEnergySource.R0HasValue)
                {
                    rd.AddProperty(new Property(ModelCode.ENERGYSOURCE_R0, cimEnergySource.R0));
                }
                if (cimEnergySource.RnHasValue)
                {
                    rd.AddProperty(new Property(ModelCode.ENERGYSOURCE_RN, cimEnergySource.Rn));
                }
                if (cimEnergySource.XHasValue)
                {
                    rd.AddProperty(new Property(ModelCode.ENERGYSOURCE_X, cimEnergySource.X));
                }
                if (cimEnergySource.X0HasValue)
                {
                    rd.AddProperty(new Property(ModelCode.ENERGYSOURCE_X0, cimEnergySource.X0));
                }
                if (cimEnergySource.XnHasValue)
                {
                    rd.AddProperty(new Property(ModelCode.ENERGYSOURCE_XN, cimEnergySource.Xn));
                }
                if (cimEnergySource.ActivePowerHasValue)
                {
                    rd.AddProperty(new Property(ModelCode.ENERGYSOURCE_ACTIVEPOWER, cimEnergySource.ActivePower));
                }
                if (cimEnergySource.NominalVoltageHasValue)
                {
                    rd.AddProperty(new Property(ModelCode.ENERGYSOURCE_NOMINALVOLTAGE, cimEnergySource.NominalVoltage));
                }
                if (cimEnergySource.VoltageAngleHasValue)
                {
                    rd.AddProperty(new Property(ModelCode.ENERGYSOURCE_VOLTAGEANGLE, cimEnergySource.VoltageAngle));
                }
                if (cimEnergySource.VoltageMagnitudeHasValue)
                {
                    rd.AddProperty(new Property(ModelCode.ENERGYSOURCE_VOLTAGEMAGNITUDE, cimEnergySource.VoltageMagnitude));
                }
            }
        }