//public void CreateXCellFuzzyMasters(string idPattern)
        //{
        //    var splittedIdPattern = idPattern.Split('|');
        //    if(splittedIdPattern?.Length>0)
        //    {
        //        foreach(var id in splittedIdPattern)
        //        {
        //            if(!ListOfXCellFuzzyMasters.ContainsKey(id))
        //            {
        //                ListOfXCellFuzzyMasters.Add(id, new XCellFuzzyMaster(id,_resolution));
        //            }
        //        }
        //    }
        //}

        public void CreateXCellFuzzyMasters(List <Pin> listOfPins)
        {
            foreach (var pin in listOfPins)
            {
                if (!ListOfXCellFuzzyMasters.ContainsKey(pin.Id))
                {
                    var xCellFuzzyMaster = new XCellFuzzyMaster(pin, _resolution, this);
                    xCellFuzzyMaster.CreateXCellsFuzzy(pin.Id, _resolution);
                    ListOfXCellFuzzyMasters.Add(pin.Id, xCellFuzzyMaster);
                }
            }
        }
 public void CreateXCellFuzzyMasters(List <Channel> listOfChannels)
 {
     foreach (var channel in listOfChannels)
     {
         if (!ListOfXCellFuzzyMasters.ContainsKey(channel.Pin.Id))
         {
             var xCellFuzzyMaster = new XCellFuzzyMaster(channel, _resolution, this);
             xCellFuzzyMaster.CreateXCellsFuzzy(channel.Pin.Id, _resolution);
             ListOfXCellFuzzyMasters.Add(channel.Pin.Id, xCellFuzzyMaster);
         }
     }
 }
예제 #3
0
        public override void GetInputDataSync() //Diastole
        {
            var listOfInputChannelsActive = ListOfInputChannels.Where(inputChannel => inputChannel.IsActive == true).ToList();

            if (listOfInputChannelsActive != null)
            {
                foreach (var inputChannelActive in listOfInputChannelsActive)
                {
                    if (inputChannelActive.XCellDestiny == null)
                    {
                        var xCellFuzzyMaster = new XCellFuzzyMaster(inputChannelActive.XCellOrigin.Id, this, ((XCellInput)(inputChannelActive.XCellOrigin)).R);
                        xCellFuzzyMaster.AssignLevel();
                        xCellFuzzyMaster.ListOfInputChannels.Add(inputChannelActive);
                        inputChannelActive.XCellDestiny = xCellFuzzyMaster;
                        ListOfXCellsFuzzyMaster.Add(xCellFuzzyMaster);
                        xCellFuzzyMaster.ORExplodeLayer.ConnectThisLayerWithOutputLayer(this);
                    }
                    inputChannelActive.XCellDestiny.GetInputData();
                }
            }
        }