Exemple #1
0
 private void CreateCells(ref LinkedListNode<Token> tokenNode)
 {
     tokenNode = tokenNode.Next;
     LinkedList<ICell> Cells = new LinkedList<ICell>();
     BasicCell cell = null;
     while (tokenNode.Value.Tag != Tag.CELLS_END)
     {
         Token token = tokenNode.Value;
         switch (tokenNode.Value.Tag)
         {
             case Tag.CELL_ID: cell = new BasicCell(((Num)token).Value.ToString());
                 break;
             case Tag.CELL_SITENAME: cell.SiteName = ((StringBlock)token).value;
                 break;
             case Tag.CELL_SECTOR: cell.Sector = ((Num)token).Value;
                 break;
             case Tag.CELL_TRAFFIC: cell.Traffic = ((Num)token).Value;
                 break;
             case Tag.CELL_LOCALLY_BLOCKED: cell.LocallyBlocked = ((NumArray)token).Value;
                 break;
             case Tag.CELL_LOCATION: cell.Location = CreateLocation(((StringBlock)token).value);
                 break;
             case Tag.CELL_INNER_END: Cells.AddLast(cell);
                 break;
         }
         tokenNode = tokenNode.Next;
     }
     this.Cells = new ICell[Cells.Count];
     Cells.CopyTo(this.Cells,0);
 }
Exemple #2
0
 private void CopyFrequenciesIfNotNull(BasicCell basicCell)
 {
     if (basicCell.Frequencies != null)
     {
         basicCell.frequencies.CopyTo(frequencies, 0);
         for (int i = 0; i < frequencies.Length; i++)
         {
             frequencies[i] = (TRX)basicCell.frequencies[i].Clone();
         }
     }
 }
Exemple #3
0
 private void InitializeFrequencyHandlerIfNotNullFromCell(BasicCell basicCell)
 {
     if (basicCell.frequencyHandler != null)
     {
         frequencyHandler = CreateFrequencyHandler();
     }
 }
 public FrequencyHandlerWithTabu(BasicCell parent)
     : base(parent)
 {
     TabuList = new Queue<TRXTabu>();
 }