,也就是说,通过继承建立的关系总是脆弱地,如果基类改变,势必影响对象的内部,而通过组合(Decoator HAS A Component) 建立的关系只会影响被装饰对象的外部特征。
基于1个网页-相关网页
这样,服务组合几乎就是一个复制-粘贴过程,而服务调用也通过仅使用一个接口而得到了简化。
In this way, service composition is almost a copy-and-paste process and service invocation is simplified through one standardized interface.
而组合就是通过装配较小(通常也同样灵活)的构建块来构建较大的结构的过程。
Composition, then, is the process of building a larger structure through the assembly of smaller and, often, equally smart building blocks.
通过伪造一个交易组合来平衡他在真正进行的交易组合,他的净暴露就能保持在允许的范围内而不被发现。
By creating a fictitious portfolio of trades that appeared to balance those he was really making, his net exposure stayed within set ranges and he remained below the radar.
Now, underlying our theory is the idea that we measure the outcome of your investment in your portfolio by the mean of the return on the portfolio and the variance of the return on the portfolio.
而理论的基础是,我们通过计算,组合收益率的均值,和组合收益率的方差,来衡量一个投资组合的优劣。
应用推荐