コード例 #1
0
        /// <inheritdoc/>
        public void AppendDefaultOperator(FuzzyLogicOperator fuzzyLogicOperator)
        {
            AnnotatedItemHelper.CheckAndFillUpHolder(fuzzyLogicOperator, _commonNamesStorage);

            lock (_lockObj)
            {
                _defaultOperatorsDict[fuzzyLogicOperator.Name] = fuzzyLogicOperator;
            }
        }
コード例 #2
0
        private void RegFuzzyLogicOperators()
        {
            var globalStorage           = _context.Storage.GlobalStorage;
            var globalFuzzyLogicStorage = globalStorage.FuzzyLogicStorage;

            var very = new FuzzyLogicOperator();

            very.Name    = NameHelper.CreateName("very");
            very.Handler = new VeryFuzzyLogicOperatorHandler();

            globalFuzzyLogicStorage.AppendDefaultOperator(very);
        }