UML基本架构建模--类的通用建模技术(三)



Modeling Nonsoftware Things

构建非软件事物模型

Sometimes, the things you model may never have an analog in software. For example, the people who send invoices and the robots that automatically package orders for shipping from a warehouse might be a part of the workflow you model in a retail system. Your application might not have any software that represents them (unlike customers in the example above, since your system will probably want to maintain information about them).

有时,你构建的事物模型可能从来没有软件模拟.举个例子,发送发票的人和自动从仓库打包并运送订购商品的机器,它们可能是零售系统模型中工作流的一部分.你的应用可能不需要任何软件来表述它们(不像上面例子中的客户,你的系统可能会想要维护他们的信息).

To model nonsoftware things,

给非软件事物建模,

1.Model the thing you are abstracting as a class.

将抽象的事物以类的形式建模

2.If you want to distinguish these things from the UML’s defined building blocks,create a new  building  block by using stereotypes to specify these new semantics and to give a distinctive visual cue.

如果你想将这些事物与UML已定义的构建模块区别开来,可以通过使用模式化,创建一个新的构建模块,用来描述这些新的语义和提供一个独特的形象化的记号.

3.If the thing you are modeling is some kind of hardware that itself contains software, consider modeling it as a kind of node as well, so that you can further expand on its structure.

如果你正在建的模型是某类自带有软件的硬件,也许应考虑做为某种节点进行建模,以便你能在它现有结构的基础上进一步扩展.

Note: The UML is mainly intended for modeling software-intensive systems, although,  in  conjunction with textual hardware  modeling
 languages,  such  as  VHDL,  the  UML  can  be  quite  expressive  for  modeling  hardware  systems.  The  OMG  has  also  produced  a  UML  extension  called  SysML  intended  for systems modeling.

备注:UML最主要的目的是为集成型软件系统进行建模,尽管在与文本型硬件建模语言结合时,如VHDL,UML可以非常富有表现力的建模硬件系统.OMG也产生了一个扩展自UML,被称为SysML,用于系统建模.

As Figure 4-11 shows, it’s perfectly normal to abstract humans  (like AccountsReceivableAgent ) and hardware (like Robot ) as classes, because each represents a set of objects with a common structure and a common behavior.

如图4-11显示的,它非常标准地以类的形式抽象出了人(如收账代理人)和硬件(如机器人),因为它们中的每一个都代表具有共同结构和共同行为的一组对象.

时间: 2024-08-25 14:16:51

UML基本架构建模--类的通用建模技术(三)的相关文章

UML基本架构建模--类的通用建模技术(一)

 Modeling the Vocabulary of a System 为系统的词汇表建模 You'll use classes most commonly to model abstractions that are drawn from the problem you are trying to solve or from the technology you are using to implement a solution to that problem. Each of thes

UML基本架构建模--类的通用建模技术(二)

 Modeling the Distribution of Responsibilities in a System 为系统的职责分配建模 Once you start modeling more than just a handful of classes, you will want to be sure that your abstractions provide a balanced set of responsibilities. What this means is that y

UML基本架构建模--类的通用建模技术(四)

 Modeling Primitive Types 构建原始类型模型 At the other extreme, the things you model may be drawn directly from the programming language you are using to implement a solution. Typically, these abstractions involve primitive types, such as integers, charac

UML基本架构建模--获取类

 Getting Started 开始 Modeling a system involves identifying the things that are important to your particular view. These things form the vocabulary of the system you are modeling. For example, if you are building a house, things like walls, doors, w

UML基本架构建模--类的辅助信息

 Organizing Attributes and Operations 组织属性和操作 When drawing a class, you don't have to show every attribute and every operation at once. In fact, in most cases, you can't (there are too many of them to put in one figure) and you probably should not

UML基本架构建模--通用机制的术语和概念(四)

 Constraints 约束 Everything in the UML has its own semantics. Generalization (usually, if you know what's good for you) implies the LisKov substitution principle, and multiple associations connected to one class denote distinct relationships. With c

对软件开发中uml建模的理解和图形整理(三)

今天接着上一节的内容,继续来了解uml剩下的几种的静态建模和动态建模. 三.对象图:主要用来表现对象的特征,展示多个对象的特征及对象之间的交互.就拿咱出行旅游使用交通工具为例,如图: 说明:对象图只在系统的某一段时间存在,可以被看作是类图在该时刻的实例,主要用来描述对象之间的行为. 四.组件图:也称为构件图,主要用来描述软件中组件之间的关系,同时也是系统设计的一个模块化元素.组件(构件)是系统中可替换的物理部分,它封装了类的实现以及对象提供一组接口,在软件开发过程中,满足相同接口的组件可以自由地

微服务架构下静态数据通用缓存机制

在分布式系统中,特别是最近很火的微服务架构下,有没有或者能不能总结出一个业务静态数据的通用缓存处理机制或方案,这篇文章将结合一些实际的研发经验,尝试理清其中存在的关键问题以及探寻通用的解决之道. 什么是静态数据 这里静态数据是指不经常发生变化或者变化频率比较低的数据,比如车型库.用户基本信息.车辆基本信息等,车型库这种可能每个月会更新一次,用户和车辆基本信息的变化来源于用户注册.修改,这个操作的频率相对也是比较低的. 另外这类数据的另一个特点是要求准确率和实时性都比较高,不能出现丢失.错误,以及

大气智能家居家具装修装饰类企业通用网站织梦模板【dedecms模板】

模板名称:大气智能家居家具装修装饰类企业通用网站织梦模板模板介绍:织梦最新内核开发的模板,适合智能家居家具企业,也可以通用装修行业等企业使用,页面简洁简单,容易管理,DEDE5.5内核以上都可以使用:附带测试数据! 模板特点:1:智能家居家具展示公司模板,代码简洁,风格大气简单,页面干净.2:首页带炫酷的幻灯片,产品展示,新闻展示.3:网站内容都能在后台修改,后台简单易学.4:后台直接修改联系方式.地址.版权信息,网站内容等,修改更加方便. 使用程序:织梦DEDECMS5.5以上版本都可以使用.