
上QQ阅读APP看书,第一时间看更新
Root
There isn't much to say about the ROOT node. The tree needs to begin somewhere, so the Root node is just where the tree starts its execution. Here is what it looks like:

Please note that the Root node can have only one child, and this must be a Composite node. You cannot attach any Decorator or Service to the Root. If you select the Root node, it doesn't have any property, but you will be able to assign a Blackboard (which we will cover later in this chapter), as shown in the following screenshot:
