技術文件 - LVOOP Pattern - Hierarchy Composition Pattern

摘要



To represent a single object as a tree of smaller instances of that same object type. Useful for images (an image is made of a set of sub images), file systems (directory contains both files and other directories) and other systems where there is a common aspect to both the whole object and its parts.



文章來源:https://decibel.ni.com/content/docs/DOC-13723