Ejemplo n.º 1
0
        private void StreamRead2Class()
        {
            StreamReader sr = new StreamReader(commonMethod.ba_filepath);

            //string line;
            while ((line = sr.ReadLine()) != null)
            {
                if (!line.StartsWith("CELL"))
                {
                    Regex r = new Regex(@"\s+");
                    linestring = r.Replace(line, @" ");
                    var    ln = linestring.Split(new Char[] { ' ' });
                    CellBA cb = new CellBA();
                    cb.cell = ln[0];
                    cb.mode = ln[1];
                    for (int i = 2; i < ln.Length; i++)
                    {
                        if (ln[i].Trim().Length > 0)
                        {
                            cb.ba.Add(ln[i].Trim());
                        }
                    }
                    //Console.WriteLine(cb.cell);
                    CellBaList.Add(cb);
                }
            }
        }
Ejemplo n.º 2
0
 private void StreamRead2Class()
 {
     StreamReader sr = new StreamReader(commonMethod.ba_filepath);
     //string line;
     while ((line = sr.ReadLine()) != null)
     {
         if (!line.StartsWith("CELL"))
         {
             Regex r = new Regex(@"\s+");
             linestring = r.Replace(line, @" ");
             var ln = linestring.Split(new Char[] { ' ' });
             CellBA cb = new CellBA();
             cb.cell = ln[0];
             cb.mode = ln[1];
             for (int i = 2; i < ln.Length; i++)
                 if (ln[i].Trim().Length > 0)
                     cb.ba.Add(ln[i].Trim());
             //Console.WriteLine(cb.cell);
             CellBaList.Add(cb);
         }
     }
 }
Ejemplo n.º 3
0
        //这个方法要要通过BA表获取到之后实现

        public string getNeighBCCH(string ServiceCell, int BaIndex)
        {
            if (BaIndex == -1)
            {
                return(null);
            }
            //int index = Int32.Parse(BaIndex);
            baIndex = BaIndex;
            baList  = tc.CellBaList.Where(e => e.cell == ServiceCell).Where(e => e.mode == "ACTIVE").FirstOrDefault();

            if (baList == null)
            {
                return(null);
            }
            if (baList.ba.Count() < BaIndex + 1)
            {
                return(null);
            }

            bcch = baList.ba.ElementAt(baIndex);
            //Console.WriteLine("bcch.....{0}...index....{1}", bcch, baIndex);
            return(bcch);
        }