コード例 #1
0
 public BlackboardTreeBuilder(ITreeBuilder main, ITreeDictionary dictionary)
 {
     this.TreeBuilder   = main;
     this.NodeResolver  = dictionary;
     this.mDependencies = new List <Type> ();
     this.mDependencies.Add(typeof(T));
 }
コード例 #2
0
        public MorphoModel(MorphoModelConfig config) : base(config)
        {
            switch (config.TreeDictionaryType)
            {
            case MorphoModelConfig.TreeDictionaryTypeEnum.Classic:
                _TreeDictionary = new TreeDictionaryClassic();
                break;

            case MorphoModelConfig.TreeDictionaryTypeEnum.FastMemPlenty:
                _TreeDictionary = new TreeDictionaryFastMemPlenty();
                break;

            default:
                throw (new ArgumentException(config.TreeDictionaryType.ToString()));
            }

            Initialization(config);
        }