问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

UML是什么,包括哪些内容

发布网友 发布时间:2022-10-11 15:04

我来回答

1个回答

热心网友 时间:2023-10-13 10:33

  解释:
  1、 UML -----The Unified Modeling Language is a standard language for writing software blueprints.The UML may be used to visualize, specify, construct, and document the artifacts of a software-intensive system.
  2、 Stereotype-----A stereotype is an extension of the vocabulary of the UML, allowing you to create new kinds of building blocks similar to existing ones but specific to your problem.
  3、 Tagged value-------A taffed value is a property of a stereotype, allowing you to create new information in an element bearing that stereotype.
  4、 Component--------A component is a replaceable part of a system that conforms to and provides the realization of a set of interfaces.
  5、 Message-----A message is the specification of a communication among objects that conveys information with the expectation that activity will ensure
  6、 Note-----A note is a graphical symbol for rendering constraints or comments attached to an element or a collection of elements.
  7、 Constraints------A constraint is a textual specification of the semantics of a UML element, allowing you to add new rules or to midify existing ones.
  8、 Interaction-----An interaction is a behavior that comprises a set of messages exchanged among objects in a set of roles within a context to accomplish a purpose.
  9、 Action----An action is an executable computation that results in a change in state of the model or the return of a value.

  简答
  1, UML中描述软件体系结构的五种视图及其内容?architecture view
  @The use case view of a system encompasses the use cases that describe the behavior of the system as seen by its end users,analysts,and testers.
  @The design view of a system encompasses the classes,interfaces,and collaorations that from the vocabulary of the problem and its solution.
  @The interaction view of a system shows the flow of control among its various parts,including possible concurrency and synchronization mechanisems.
  @The implementation view of a system encompasses the artifacts that are used to assemble and release the physical system.
  @The deployment view of a system encompasses the nodes that form the system`s hardware topology on which the system executes.
  2, 建模的四项基本原则?principles of modeling
  *The choice of what models to create has a profound influence on how a problem is attached and how a solution is shaped.
  *Every model may be expressed at different levels of precision.
  *The best models are connected to reality.
  *No single model or view is sufficient.Every nontrivial system is best approached through a small set of nearly independent models with multipe viewpoints.
  3,如何建模系统的接缝?modeling the seams in a system
  To model the seams in a system:
  !!Within the collection of classes and components in your system,draw a line around those that tend to be tightly coupled relative to other sets of classes and components.
  !!Refine your grouping by considering the impact of change,
  . Classes or components that tend to change together should be grouped together as collaborations.
  !!Consider the operations and the signals that cross these boundaries, from instances of one set of classes or components to instances of other sets of classes and components.
  !!Package logically related sets of these poerations and signals as interfaces.
  !!For each such collabotation in your system,identify the interfaces it requires from(imports) and those it provides to others(exports).You model the importing of interfaces by dependency relationships,and you model the exporting of interfaces by realization relationships.
  !!For each such interface in your system,document its dynamics by using pre-and postcongitions for each operation, and use cases and state machines for the interfaces as a whole.
  4.如何建模系统的需求?modeling the requirements of a system
  To model the requirements of a system:
  //Establish the context of the system by identifying the actors that surround it;
  //For each actor,consider the behavior that each expects or requires the system to privide;
  //Name common behaviors as use cases.
  //Factor common behavior into new use cases that are used by others;factor variant behavior into new use cases that extend more main line flows.
  //Model these use cases,actors,and their relationships in a use case diagram;
  //Adorn these use cases with notes or constraints that assert nonfunctional;you may have to attach some of these to the whole system.
  5如何利用制品图建模物理数据库?modeling a physical database by artifact diagrams
  1. For simple CRUD(create, read, update,delete) operations,implement them with standard SQL or ODBC calls;
  2. For more-complex behavior(such as business rules), map them to triggers or stored proceres.
  Guidelines:
  &Identify the classes in your model that represent your logical database schema.
  &Select a strategy for mapping these classes to tables.You will also want to consider the physical distribution or your databases.Your mapping strategy will be affected by the location in which you want yout data to live on your deployed system.
  &To visualize,specify,construct,and document your mapping,create an artifact diagram that contains artifacts stereotyped as tables.
  &Where possible,use tools to help you transform your logical design into a physical design.
  6如何对注释建模?modeling comments
  *Put your comments as text in a note and place it adjacent to the element to which it refers. You can show a more explicit relationship by connecting a note to its elements using a dependency relationship.
  *Remember that you can hide or make visible the elements of your model as you see fit.This means that you don`t have to which it is attached are visible.Rather,expose your comments in your diagram only insofar as you need to communicate that information in that context.
  *If your comment is lengthy or involes something richer than plain text,consider putting your comment in an external document and linking or embedding that document in a note attached to your model.
  *As your model evolves,keep those comments that record significant decisions that cannot be inferred from the model itself,and-unless they are of historic interest-discardthe others.
  7,如何建模逻辑数据库模式?modeling a logical database schema
  The UML`s class diagrams are a superset of entity-relationship(E-R) diagrams, a common modeling tool for logical database design.
  To model a schema:
  $Identify those classes in your model whose state must transcend the lifetime of their applications.
  $Create a class diagram that contains these classes.You can difine your own set of stereotypes and tagged values to address database-specific details.
  $Expand the structural details of these classes.In general,this means spencifying the details of their attributes and focusing on the associations and their multiplicities that relate these classes.
  $Watch for common patterns that complicate physical database design,such as cyclic association and one-to-one associations.Where necessary,create intermediate abstractions to simplify your logical structure.
  $Consider also the behavior of these classes by expanding operations that are important for data access and data integrity.In general,to provide a better sepatration of concerns,business rules concerned with the manipulation of sets of these objects should be encapsulated in a layer above these persistent classes.
  $Where possible,use tools to help you transform your logical design into a physical design.
  8,给出顺序图的步骤?modeling flows of control by time ordering
  To model a flow of control by time dodering:
  +Set the context for the interaction,whether it is a system, subsystems,operations,or class,or one scenario of a use case or collabotation;
  +Set the stage for the interantion by identifying which objects play a role in the interaction.Lay then out on the sequence diagram from left to right,placing the more important objects to the left and their neighboring objects to the right;
  +Set the lifeline for each object.In most cases,objects will persist through the entire interaction. For those objects that are created and destroyed ring the interaction ,set their lifelines,as appropritate,and explicitly indicate their birth and death with appropriately stereotyped messages;
  +Starting with the message that initiates this interaction, lay out each subsequent message from top to bottom between the lifelines,showing each message`s properties, as necessary to explain the semantics of the interaction;
  +If you need to visualize the nesting of messages or the points in time when actual computation is taking place, adorn each object`s lifeline with its focus of control;
  +If you need to specify this flow of control more formally, attach pre-and postconditions to each message.
  9,如何利用制品图建模可执行程序的发布?modeling an executable release
  To model an executable release:
  #Identify the set of artifacts you`d like to model.Typically,this will involve some or all the artifacts that live on one node,or the distribution of these sets of artifacts across all the nodes in the system.
  #Consider the stereotype of each artifact in this set.For most systems you`ll find a small number of different kinds of artifacts.You can use the UNL`s extensibility mechanisms to provide visual cues for these stereotypes.
  #For each artifact in this set, consider its relationship to its neighbors.Most often,this will involve interfaces that are exported by certain artifacts and then imported by others.If you want to expose the seams in your system,model these interfaces explicity.If you want your model at a higher level of abstraction, elide these relationships by showing only dependencies among the artifacts.
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
“苏大强”的本意是什么?抹黑江苏吗? 伦敦奥运会入场式各个国家和地区的先后顺序 参加奥运会入场式的前后顺序 神马是费用性斜视?没听说过,斜视不就是斗鸡眼么 小儿斜视原因 为了不出现重影,右眼会被推到外斜视眼位,称为“废用性斜视” 在八岁时玩鞭炮炸伤左眼,而形成左眼斜视,现在能治好吗 ...后左眼斜视外斜 左眼下半部有光感 视觉模糊 请问左手术的话 能恢复... 两眼视力差距大会怎么样 关于耳洞的小问题~有经验的和懂行的进~ 京东双十二有活动吗 京东双十二活动优惠幅度大吗 美国人的审美观是什么样的? 美国人的审美观与中国的审美观有什么不同?和差异 老外的审美标准 美国人的审美观 美国审美喜好及禁忌 美国人的审美标准是怎样的? 你们知道欧美人对外貌有什么审美标准吗? 开启飞行模式qq显示的是什么?- 问一问 农行金e顺k宝是干什么用的? 金e顺和K宝一样吗 在昆山成立一家个人公司的条件 盾构机发展史 最少的文言文和翻译 成语寓意或主旨 鸡精与鸡粉的区别 如何区别鸡精与鸡粉 我要一些好看的校园言情小说(最好要带简介哦!) 我和他分了,他给我发了好多好多短信,大多都是说丫头,别闹好不好我错了,我真的错了我爱你,,,他的每 有句歌词 我一直走想你的手 你给我想不到的 他哪里都好,就是无缘到老 剑网三各区服的普遍金价是多少 剑网三网通三区的金价大概是多少?还有做一把橙武大概多少钱? 剑网三唯满侠现在的金价是多少,那些世界频道喊100:98000的是不是骗人的 剑网三点卡服现在做一把95大橙武多少钱,懂得来 剑网三100金合人民币多少钱 剑网三金价 剑网三一砖大概多少rmb 可以改吗,怎么搞 海螺水泥股吧分析,600585股吧分析 海螺水泥 淘股吧,600585 淘股吧 600585海螺水泥股吧同花顺圈子 海螺水泥未来10年估值?海螺水泥今天收盘价格?海螺水泥600585股吧? 可以改吗? 海螺水泥最新分析,600585最新分析 海螺水泥为什么那么好?海螺水泥中报2021?600585海螺水泥股讨论? office2010修复就重启 每次点office2010机器都会自动重启,而且office2010还无法卸载,怎么办 win7安装office2010老是出错,提醒一直重启....跪求高人解决 啊.呜呜呜uwuw 安装office就重启 现在可以改了吗