Exemplo n.º 1
0
        public void ImportMeasurePoint(MeasurePoint mPoint)
        {
            if (MainCell.Cell != mPoint.Result.StrongestCell.Cell.Cell)
            {
                return;
            }
            MainCell.UpdateRsrpPower(mPoint.Result.StrongestCell);
            CoverPoints++;

            foreach (MeasurableCell mcell
                     in mPoint.CellRepository.CellList.Where(x => x != mPoint.Result.StrongestCell))
            {
                MeasurePlanCell mpCell = InterferenceCells.FirstOrDefault(
                    x => x.Cell == mcell.Cell.Cell);

                if (mpCell != null)
                {
                    mpCell.UpdateRsrpPower(mcell);
                }
                else
                {
                    InterferenceCells.Add(new MeasurePlanCell(mcell));
                }
            }
        }
Exemplo n.º 2
0
 public Creature(int x, int y, DNA dna)
 {
     mainCell = dna.dna.organ;
     brain    = new Brain(inputs.Sum(p => p.amount), outputs.Sum(p => p.amount), iq, mainCell.brainSpeed, mainCell.brainChange);
 }