Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以通过依赖加入一个系统和第二个子系统的组件吗?
我的意图是表明在我的系统(系统 2)中是称为子系统 1 的模块/组件,外部系统使用该子系统。
这个对吗?现在还没有定义接口,所以我只能展示这种依赖关系。
让我解释一下这张图,答案自然就来了。:)
“系统 1”以某种方式依赖于“子系统 1”。“系统 1”对包含“子系统 1”的“系统 2”一无所知。这意味着“系统 1”以某种方式可以直接访问“子系统 1”,而与“系统 2”没有任何联系。
这个对吗?这就是你的问题的答案。:)