当前位置:网站首页>以小见大:一个领域建模的简单示例,理解“领域驱动”。
以小见大:一个领域建模的简单示例,理解“领域驱动”。
2022-06-22 15:36:00 【dotNET跨平台】

背景:航空公司为了确保飞行路线不发生冲突,需要开发一款飞行路线管理软件。
过程:我们先去找这个领域的专家,自然是作为平时管理和维护机场飞行秩序的工作人员;我们第一个目标就是与他们沟通,也许我们并不能从中获取所有想要的知识,但至少可以筛选出主要的内容和元素。你可能会听到诸如“起飞”,“着陆”,“飞行冲突”,“延误”等领域名词。
建模:我们开始建模,从一个简单的模型示例开始:
起点->飞机->终点
这个模型很直接,我们可以继续优化,起点和终点 两个领域名词都是某个具体的地点。
优化后的模型:
飞机 -> 地点(含起点和终点)
飞机飞行的起点和终点 成对出现,起点和终点构成一条飞行路线。
继续优化模型:
飞机->路线->地点(含起点和终点)
这样我们就得到3个基本的领域对象:飞机 路线 地点。
我们可以看出领域建模就是通过与领域专家沟通,从中提炼必要的领域元素,不断优化领域模型,建立领域知识的过程。
边栏推荐
猜你喜欢
![[C language] deeply analyze the storage of integer and floating-point types in memory](/img/8b/12a4dc7a0c0e34e2add007592971dd.jpg)
[C language] deeply analyze the storage of integer and floating-point types in memory

LETV group payment system architecture sharing for processing 100000 high concurrent orders per second

【阿里云服务器-安装mysql的5.6版本安装,重装】

每秒处理10万高并发订单的乐视集团支付系统架构分享

jsp学习之(二)---------jsp脚本元素和指令
![Web technology sharing | [Gaode map] to realize customized track playback](/img/0b/25fc8967f5cc2cea626e0b3f2b7594.png)
Web technology sharing | [Gaode map] to realize customized track playback

web技术分享| 【高德地图】实现自定义的轨迹回放

图计算Hama-BSP模型的运行流程
![[pop up box 2 at the bottom of wechat applet package]](/img/31/266e6a1f4200347c9324ea37b78562.png)
[pop up box 2 at the bottom of wechat applet package]
![[wechat applet to obtain the height of custom tabbar] is absolutely available!!!](/img/ed/7ff70178f03b50cb7bec349c1be5e0.png)
[wechat applet to obtain the height of custom tabbar] is absolutely available!!!
随机推荐
Test for API
Scala for derivation: the ability to define a value in the first part of a for expression and use it in subsequent (outer) expressions
The world's "first" IEEE privacy computing "connectivity" international standard led by insight technology was officially launched
win10的wifi断线后无法连接
hydra安装及使用
Jsp Learning (2) - - jsp script Elements and instructions
System throughput, TPS (QPS), user concurrency, performance test concepts and formulas
[deep anatomy of C language] keywords if & else & bool type
Analysis of the writer source code of spark shuffle
[C language] deeply analyze the storage of integer and floating-point types in memory
网传学习通1.7亿密码泄露!有什么补救措施?
spark-shuffle的写入器源码分析
UI自动化定位利器-xpath实战
同花顺怎么开户?网上开户安全么?
2022年中国重卡智能化升级专题研究
What should I do if I can't hear a sound during a video conference?
Huawei cloud recruits partners in the field of industrial intelligence to provide strong support + commercial realization
LETV group payment system architecture sharing for processing 100000 high concurrent orders per second
Hydra installation and use
社会担当 广汽本田“梦想童行”倡导儿童道路交通安全