public override void GetReferences(Dictionary <ModelCode, List <long> > references, TypeOfReference refType) { if (Measurements != null && Measurements.Count != 0 && (refType == TypeOfReference.Target || refType == TypeOfReference.Both)) { references[ModelCode.PSR_MEASUREMENTS] = Measurements.GetRange(0, Measurements.Count); } base.GetReferences(references, refType); }
public override void GetReferences(Dictionary <ModelCode, List <long> > references, TypeOfReference refType) { if (ConductingEquipment != 0 && (refType == TypeOfReference.Reference || refType == TypeOfReference.Both)) { references[ModelCode.TERMINAL_CONDEQUIPMENT] = new List <long> { ConductingEquipment }; } if (ConnectivityNode != 0 && (refType == TypeOfReference.Reference || refType == TypeOfReference.Both)) { references[ModelCode.TERMINAL_CONNNODE] = new List <long> { ConnectivityNode }; } if (Measurements != null && Measurements.Count != 0 && (refType == TypeOfReference.Target || refType == TypeOfReference.Both)) { references[ModelCode.TERMINAL_MEASUREMENTS] = Measurements.GetRange(0, Measurements.Count); } base.GetReferences(references, refType); }