知识卡片
份额饼统一可分配值的表达
作者与专家发现 Investment 和 Loan Investment 都是更一般的“份额”特例,遂用 Share Pie 表达可分配值的各方占比或金额。图8.7–8.8让 Facility 与 Loan 各自持有可独立调整的份额分布,比例、转让及金额加减可由共同的份额运算表达。这样保留总量、费用分配等有效约束,同时移除“贷款份额必须跟随承诺份额”的错误约束。原书称这简化了其项目代码;这里是该项目的结果,不保证所有分配问题都适合同一抽象。参见[[实际放款份额可偏离承诺份额]]。
结构图:
classDiagram
class SharePie
class Share
class PercentPie
class AmountPie
class Facility
class Loan
SharePie "1" o-- "*" Share
SharePie <|-- PercentPie
SharePie <|-- AmountPie
Facility --> PercentPie : 承诺份额
Loan --> AmountPie : 实际贷款份额
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 原书第08章|What Is a "Facility"? · 查看原书依据
First was the realization that our "Investments" and "Loan Investments" were just two special cases of a general and fundamental concept: shares. Shares of a facility, shares of a loan, shares of a payment distribution. Shares, shares everywhere. Shares of any divisible value. A few tumultuous days later I had sketched a model of shares, drawing on the language used in the discussions with experts and the scenarios we had explored together.
参考来源
- 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第64章《原书第08章|What Is a Facility?》(源文件:_epub-src/0321125215_ch08lev1sec1_split_001.html;图8.7–8.8)
- 结论依据:原文将两类投资重识别为份额特例,采用 Share Pie 与份额运算,并说明它移除了不恰当的比例绑定。
- 原始内容:First was the realization that our "Investments" and "Loan Investments" were just two special cases of a general and fundamental concept: shares. Shares of a facility, shares of a loan, shares of a payment distribution . Shares, shares everywhere. Shares of any divisible value. A few tumultuous days later I had sketched a model of shares, drawing on the language used in the discussions with experts and the scenarios we had explored together.