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

背景:航空公司为了确保飞行路线不发生冲突,需要开发一款飞行路线管理软件。
过程:我们先去找这个领域的专家,自然是作为平时管理和维护机场飞行秩序的工作人员;我们第一个目标就是与他们沟通,也许我们并不能从中获取所有想要的知识,但至少可以筛选出主要的内容和元素。你可能会听到诸如“起飞”,“着陆”,“飞行冲突”,“延误”等领域名词。
建模:我们开始建模,从一个简单的模型示例开始:
起点->飞机->终点
这个模型很直接,我们可以继续优化,起点和终点 两个领域名词都是某个具体的地点。
优化后的模型:
飞机 -> 地点(含起点和终点)
飞机飞行的起点和终点 成对出现,起点和终点构成一条飞行路线。
继续优化模型:
飞机->路线->地点(含起点和终点)
这样我们就得到3个基本的领域对象:飞机 路线 地点。
我们可以看出领域建模就是通过与领域专家沟通,从中提炼必要的领域元素,不断优化领域模型,建立领域知识的过程。
边栏推荐
- 调用cmd 进程通信
- 每秒處理10萬高並發訂單的樂視集團支付系統架構分享
- 2022年中国重卡智能化升级专题研究
- How to add a "security lock" to the mobile office of government and enterprises?
- Summary of safari compatibility issues
- Learning about ABAP program tuning (IV) loop where key
- Interface (optimization type annotation)
- How to open an account in flush? Is it safe to open an account online?
- [pop up box 2 at the bottom of wechat applet package]
- JSP learning (2) -- JSP script elements and instructions
猜你喜欢
![[wechat applet custom bottom tabbar]](/img/04/2ea4ab3fd8571499190a9b3c9990b2.png)
[wechat applet custom bottom tabbar]

VHEDT业务发展框架
![[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!!!

华为云招募工业智能领域合作伙伴,强力扶持+商业变现

视频爆炸时代,谁在支撑视频生态网高速运行?

你管这破玩意儿叫高可用?

Windows8.1 64 installed by mysql5.7.27

Jsp Learning (2) - - jsp script Elements and instructions

Summary of JS methods for obtaining data types

Short video source code development, high-quality short video source code need to do what?
随机推荐
你管这破玩意儿叫高可用?
Unable to connect after win10 WiFi is disconnected
【进阶自动化测试第一步】1分钟带你了解自动化测试
Processing source code of spark executor execution results
Purchase guide - how to purchase a high-quality conference tablet, these aspects must be compared
spark Executor执行结果的处理源码
The world's "first" IEEE privacy computing "connectivity" international standard led by insight technology was officially launched
Test for API
Review the executor from the perspective of application submission
Spark's NaiveBayes Chinese text classification
Scala equality
企业级软件开发新模式:低代码
Special research on Intelligent upgrading of heavy trucks in China in 2022
Interview knowledge points
spark-shuffle的读数据源码分析
UI自动化定位利器-xpath实战
[C language] use of library function qsort
面试知识点
Qt笔记-QMap自定义键(key)
Interface (optimization type annotation)