Exemple #1
0
        public SignalEntity AddObserv(SignalDefenition defenition)
        {
            var entity = new SignalEntity(defenition);

            _routes.Add(defenition.Name, entity);
            return(entity);
        }
Exemple #2
0
        public void AddSignal(AssignmentSignal signal)
        {
            SignalEntity entity = null;

            if (!_routes.ContainsKey(signal.Name))
            {
                entity = AddObserv(signal.Defenition);
            }
            entity = entity ?? _routes[signal.Name];
            entity.AddSignal(signal);
        }