Пример #1
0
        public override void GetReferences(Dictionary <ModelCode, List <long> > references, TypeOfReference refType) //SAMO OVA METODA ZA JEDNU
        {
            //ZA LISTU
            //SUPROTNA KLASA
            if (ACLineSegments != null && ACLineSegments.Count != 0 && (refType == TypeOfReference.Target || refType == TypeOfReference.Both))
            {                          //UNUTRASNJA_DALJAKLASA
                references[ModelCode.ACLINESEGMENT_PERLENGTHIMP] = ACLineSegments.GetRange(0, ACLineSegments.Count);
            }

            base.GetReferences(references, refType);
        }
Пример #2
0
        public override void AddReference(ModelCode referenceId, long globalId)
        {
            switch (referenceId)
            {                       //DALJA KLASA_TRENUTNA
            case ModelCode.ACLINESEGMENT_PERLENGTHIMP:
                ACLineSegments.Add(globalId);
                break;

            default:
                base.AddReference(referenceId, globalId);
                break;
            }
        }
Пример #3
0
        //ACLineSegment
        public List <ACLineSegments> ListACLineSegments()
        {
            var            list = new List <ACLineSegments>();
            ACLineSegments obj;

            for (int i = 0; i <= 3; i++)
            {
                obj                  = new ACLineSegments();
                obj._LineID          = "0";
                obj._ACLineSegmentID = i.ToString();
                obj.Towers           = ListTowers();
                list.Add(obj);
            }
            return(list);
        }
Пример #4
0
        public override void RemoveReference(ModelCode referenceId, long globalId)
        {
            switch (referenceId)
            {
            case ModelCode.ACLINESEGMENT_PERLENGTHIMP:

                if (ACLineSegments.Contains(globalId))
                {
                    ACLineSegments.Remove(globalId);
                }
                else
                {
                    CommonTrace.WriteTrace(CommonTrace.TraceWarning, "Entity (GID = 0x{0:x16}) doesn't contain reference 0x{1:x16}.", this.GlobalId, globalId);
                }

                break;

            default:
                base.RemoveReference(referenceId, globalId);
                break;
            }
        }