public static void PopulatePowerSystemResourceProperties(FTN.PowerSystemResource cimPowerSystemResource, ResourceDescription rd) { if ((cimPowerSystemResource != null) && (rd != null)) { IES1Converter.PopulateIdentifiedObjectProperties(cimPowerSystemResource, rd); } }
public static void PopulateDayTypeProperties(DayType dt, ResourceDescription rd) { if ((dt != null) && (rd != null)) { IES1Converter.PopulateIdentifiedObjectProperties(dt, rd); } }
public static void PopulateBasicIntervalScheduleProperties(FTN.BasicIntervalSchedule cimBasicIntervalSchedule, ResourceDescription rd) { if ((cimBasicIntervalSchedule != null) && rd != null) { IES1Converter.PopulateIdentifiedObjectProperties(cimBasicIntervalSchedule, rd); if (cimBasicIntervalSchedule.StartTimeHasValue) { rd.AddProperty(new Property(ModelCode.BASIC_INT_SCHED_STARTTIME, cimBasicIntervalSchedule.StartTime)); } if (cimBasicIntervalSchedule.Value1MultiplierHasValue) { rd.AddProperty(new Property(ModelCode.BASIC_INT_SCHED_VAL1MUL, (short)GetUnitMultiplier(cimBasicIntervalSchedule.Value1Multiplier))); } if (cimBasicIntervalSchedule.Value1UnitHasValue) { rd.AddProperty(new Property(ModelCode.BASIC_INT_SCHED_VAL1UNIT, (short)GetUnitSymbol(cimBasicIntervalSchedule.Value1Unit))); } if (cimBasicIntervalSchedule.Value2MultiplierHasValue) { rd.AddProperty(new Property(ModelCode.BASIC_INT_SCHED_VAL2MUL, (short)GetUnitMultiplier(cimBasicIntervalSchedule.Value2Multiplier))); } if (cimBasicIntervalSchedule.Value2UnitHasValue) { rd.AddProperty(new Property(ModelCode.BASIC_INT_SCHED_VAL2UNIT, (short)GetUnitSymbol(cimBasicIntervalSchedule.Value2Unit))); } } }
public static void PopulateTerminalProperties(Terminal t, ResourceDescription rd, ImportHelper importHelper, TransformAndLoadReport report) { if ((t != null) && (rd) != null) { IES1Converter.PopulateIdentifiedObjectProperties(t, rd); if (t.ConductingEquipmentHasValue) { long gid = importHelper.GetMappedGID(t.ConductingEquipment.ID); if (gid < 0) { report.Report.Append("WARNING: Convert ").Append(t.GetType().ToString()).Append(" rdfID = \"").Append(t.ID); report.Report.Append("\" - Failed to set reference to ConductingEquipment: rdfID \"").Append(t.ConductingEquipment.ID).AppendLine(" \" is not mapped to GID!"); } rd.AddProperty(new Property(ModelCode.TERMINAL_CONDEQ, gid)); } } }