public static void PopulateEquipmentProperties(FTN.Equipment cimEquipment, ResourceDescription rd, ImportHelper importHelper, TransformAndLoadReport report) { if ((cimEquipment != null) && (rd != null)) { PowerTransformerConverter.PopulatePowerSystemResourceProperties(cimEquipment, rd, importHelper, report); } }
public static void PopulateEquipmentProperties(FTN.Equipment cimEquipment, ResourceDescription rd) { if ((cimEquipment != null) && (rd != null)) { PowerTransformerConverter.PopulatePowerSystemResourceProperties(cimEquipment, rd); } }
public static void PopulateEquipmentProperties(FTN.Equipment cimEquipment, ResourceDescription rd, ImportHelper importHelper, TransformAndLoadReport report) { if ((cimEquipment != null) && (rd != null)) { PowerTransformerConverter.PopulatePowerSystemResourceProperties(cimEquipment, rd, importHelper, report); if (cimEquipment.AggregateHasValue) { rd.AddProperty(new Property(ModelCode.EQUIPMENT_AGGREGATE, cimEquipment.Aggregate)); } if (cimEquipment.NormallyInServiceHasValue) { rd.AddProperty(new Property(ModelCode.EQUIPMENT_NORMALLYSERVICE, cimEquipment.NormallyInService)); } if (cimEquipment.EquipmentContainerHasValue) { long gid = importHelper.GetMappedGID(cimEquipment.EquipmentContainer.ID); if (gid < 0) { report.Report.Append("WARNING: Convert ").Append(cimEquipment.GetType().ToString()).Append(" rdfID = \"").Append(cimEquipment.ID); report.Report.Append("\" - Failed to set reference to EquipmentContainer: rdfID \"").Append(cimEquipment.EquipmentContainer.ID).AppendLine(" \" is not mapped to GID!"); } rd.AddProperty(new Property(ModelCode.EQUIPMENT_EC, gid)); } } }
public static void PopulateEquipmentProperties(FTN.Equipment cimEquipment, ResourceDescription rd, ImportHelper importHelper, TransformAndLoadReport report) { if ((cimEquipment != null) && (rd != null)) { OMSConverter.PopulatePowerSystemResourceProperties(cimEquipment, rd, importHelper, report); if (cimEquipment.NormallyInServiceHasValue) { rd.AddProperty(new Property(ModelCode.EQUIPMENT_NORMINSERV, cimEquipment.NormallyInService)); } } }
public static void PopulateEquipmentProperties(FTN.Equipment cimEquipment, ResourceDescription rd) { if ((cimEquipment != null) && (rd != null)) { Converter.PopulatePowerSystemResourceProperties(cimEquipment, rd); if (cimEquipment.AggregateHasValue) { rd.AddProperty(new Property(ModelCode.EQUIPMENT_AGGREGATE, cimEquipment.Aggregate)); } if (cimEquipment.NormallyInServiceHasValue) { rd.AddProperty(new Property(ModelCode.EQUIPMENT_NORMALLYINSERVICE, cimEquipment.NormallyInService)); } } }
public static void PopulateEquipmentProperties(FTN.Equipment cimEquipment, ResourceDescription rd, ImportHelper importHelper, TransformAndLoadReport report) { if ((cimEquipment != null) && (rd != null)) { PowerTransformerConverter.PopulatePowerSystemResourceProperties(cimEquipment, rd, importHelper, report); if (cimEquipment.PrivateHasValue) { rd.AddProperty(new Property(ModelCode.EQUIPMENT_ISPRIVATE, cimEquipment.Private)); } if (cimEquipment.IsUndergroundHasValue) { rd.AddProperty(new Property(ModelCode.EQUIPMENT_ISUNDERGROUND, cimEquipment.IsUnderground)); } } }