public BlackboardTreeBuilder(ITreeBuilder main, ITreeDictionary dictionary) { this.TreeBuilder = main; this.NodeResolver = dictionary; this.mDependencies = new List <Type> (); this.mDependencies.Add(typeof(T)); }
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); }