Exemplo n.º 1
0
 public void Link <TParent> (IBlackboardNode <TParent> node) where TParent : class
 {
     foreach (var param in mInstances)
     {
         param.Assign <TParent> (node);
     }
 }
Exemplo n.º 2
0
 public void Assign <S> (IBlackboardNode <S> node) where S : class
 {
     if (this is DependencyParameter <TParent, S> )
     {
         node.Board = this.mChildBoard as Blackboard <S>;
     }
 }
Exemplo n.º 3
0
        public void Assign <TParent> (IBlackboardNode <TParent> node) where TParent : class
        {
            var compatible = this as StaticParameter <TParent>;

            if (compatible != null)
            {
                node.Board = compatible.Board;
            }
        }
Exemplo n.º 4
0
        public void Assign(INode node)
        {
            var blackboardNode = node as IBlackboardNode <TChild>;

            if (blackboardNode != null)
            {
                mLinker.Link <TParent> (this);
                mChildBoard.Context = this.mInitFunc(this.Board.Context);

                IBlackboardNode <TChild> specificNode = blackboardNode;
                specificNode.Board = this.mChildBoard;
            }
        }