Exemplo n.º 1
0
        public override void GetReferences(Dictionary <ModelCode, List <long> > references, TypeOfReference refType)
        {
            if (Terminals != null && Terminals.Count > 0 && (refType == TypeOfReference.Target || refType == TypeOfReference.Both))
            {
                references[ModelCode.CONDUCTEQUIP_TERMINALS] = Terminals.GetRange(0, Terminals.Count);
            }

            base.GetReferences(references, refType);
        }
Exemplo n.º 2
0
 public override void GetReferences(Dictionary <ModelCode, List <long> > references, TypeOfReference refType)
 {
     if (Terminals != null && Terminals.Count > 0 && (refType == TypeOfReference.Target || refType == TypeOfReference.Both))
     {
         references[ModelCode.CONNECTNODE_TERMINALS] = Terminals.GetRange(0, Terminals.Count);
     }
     if (Connectivitynodecontainer != 0 && (refType == TypeOfReference.Reference || refType == TypeOfReference.Both))
     {
         references[ModelCode.CONNECTNODE_CONNECTNODECONT] = new List <long>();
         references[ModelCode.CONNECTNODE_CONNECTNODECONT].Add(Connectivitynodecontainer);
     }
     base.GetReferences(references, refType);
 }
Exemplo n.º 3
0
        public override void GetReferences(Dictionary <ModelCode, List <long> > references, TypeOfReference refType) //SAMO OVA METODA ZA JEDNU
        {                                                                                                            //SUPROTNA KLASA
            //if (powerTransformer != 0 && (refType == TypeOfReference.Reference || refType == TypeOfReference.Both)) //za jednu
            //{                         //POLJE U UNUTRASNJOJ
            //    references[ModelCode.POWERTRWINDING_POWERTRW] = new List<long>();
            //    references[ModelCode.POWERTRWINDING_POWERTRW].Add(powerTransformer);
            //}
            //ZA LISTU
            //SUPROTNA KLASA
            if (Terminals != null && Terminals.Count != 0 && (refType == TypeOfReference.Target || refType == TypeOfReference.Both))
            {                          //UNUTRASNJA_DALJAKLASA
                references[ModelCode.CONDEQ_TERMINALS] = Terminals.GetRange(0, Terminals.Count);
            }

            base.GetReferences(references, refType);
        }