知识卡片
探针模拟的对象协作
原书 PCB 探针模拟把[[模型按问题有意简化]]用于信号路径:Net 表示连接多个引脚的导线;Pin 属于一个元件实例,并连接一条 Net。元件内部不逐个模拟:ComponentType 提供同类元件共享的引脚推送规则,ComponentInstance 据此把信号送向其他引脚;经过一条 Net 计一跳,便能计算路径长度。拓扑信息虽属于更广的 PCB 领域,但当前探针模拟用不到,暂不纳入此计算。图中的类型和方法取自原书图 1.7,是早期模型示意,并非已验证的完整 PCB 实现。
结构图:
classDiagram
class ComponentType {
+getPushesFromPinNumber(int)
}
class ComponentInstance {
+signal(int)
}
class Pin {
+signal(int)
}
class Net {
+signal(int)
}
ComponentInstance "1" o-- "*" Pin : 拥有
Net "1" -- "*" Pin : 连接
ComponentInstance --> ComponentType : 按类型取得推送规则
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter One. Crunching Knowledge · 查看原书依据
Just a list of pushes through the component from certain Pins to certain others.
参考来源
- 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第10章《Chapter One. Crunching Knowledge》(源文件:_epub-src/0321125215_ch01.html;原书图 1.3–1.7:_epub-src/01fig03.gif 至 01fig07.gif)
- 结论依据:专家对话给出引脚归属、网线连接、按元件类型共享推送规则、网线计跳及拓扑暂不参与的限制;图 1.7 显示四类及方法签名和连接关系,已逐图核验。正文只解释这一原书早期探针模拟场景。
- 原始内容:a net connects a particular pin of one instance to a particular pin of another. ... Just a list of pushes through the component from certain Pins to certain others. ... Each time the signal goes over a Net ... The pushes would be the same for all the instances of a component.