Ejemplo n.º 1
0
        public BaseNode GetNode(Guid treeID, Guid nodeID)
        {
            TreeMemory tree = this.GetTree(treeID);

            if (!tree.treeMemory.ContainsKey(nodeID))
            {
                tree.treeMemory.Add(nodeID, null);
            }
            return(tree.treeMemory[nodeID]);
        }
Ejemplo n.º 2
0
        public List <BaseNode> GetOpenNodes(Guid treeID)
        {
            TreeMemory tree = this.GetTree(treeID);

            return(tree.openNodes);
        }
Ejemplo n.º 3
0
 public Blackboard()
 {
     this._baseMemory = new BaseMemory(new Dictionary <Guid, TTBT.TreeMemory>());
     this._treeMemory = new TreeMemory(new Dictionary <Guid, BaseNode>(), new List <BaseNode>());
 }
Ejemplo n.º 4
0
        //set
        public void SetOpenNodes(Guid treeID, List <BaseNode> nodes)
        {
            TreeMemory tree = this.GetTree(treeID);

            tree.openNodes = nodes;
        }