uml

Create inheritance graphs/trees for Django templates

隐身守侯 提交于 2019-12-06 02:03:45
问题 Is there any tool out there that would take a directory with a Django application, scan it for templates and draw/print/list a hierarchy of inheritance between templates? Seeing which blocks are being overridden at every level would be an especially helpful feature in such a tool. 回答1: Old question but FWIW there is (or was) django-template-graph that should work with Django 1.7. It doesn't (yet) work with Django 1.8+ when the template logic changed a bit so it needs to be patched, I opened

How State machine diagram can be represented as a Behavior for an operation in UML?

余生长醉 提交于 2019-12-06 01:46:28
Behaviors (Method Body)can be state machines or activities - activities are easy to understand, as they are the equivalent of procedural code. I don't understand how a state machine can be used as the behavior for an operation? Could you Please provide a simple example for that? ---Note--- Operation is a specification-only element - imagine it as the method signature in OO programming languages. It has a name and a list of parameters. Behavior is (among other things) what an operation (or another behavioral feature such as a reception) does when invoked - imagine it as the body of the method.

UML Activity Diagram with variable number of concurrent flows

僤鯓⒐⒋嵵緔 提交于 2019-12-06 01:41:15
I'm struggling with modeling in UML a scenario where variable number of concurrent flows occurs. A good and simple real life scenario would be a POOL ride-sharing service. For first rider whole flow seems easy. However once first rider is in a car and driver picks up second rider, then it becomes difficult to show on diagram, as now rider 1 and rider 2 are concurrent flows, and number of these concurrent flows will always be variable, between 0 and number of maximum seats in a car. What's the best UML diagram type and technique to model such a behavior? How do I explain and depict variable

Converting a UML class diagram created using Papyrus into an .ecore file

蓝咒 提交于 2019-12-06 01:39:25
Here is what I do using eclipse : Create a new Papyrus project Create a class diagram in Papyrus Create a new EMF empty project Use the EMF Generator Model to convert my .uml file (created with Papyrus) into an .ecore file Now i would like to do that in Java. I found a post here where someone is doing it from XSD . I would like to do the same thing but from UML. User565300 is using something called Xsd2Ecore but I couldn't find a Uml2Ecore. Do you guys know what eclipse is using to convert UML file ? I happened to bump into this problem very recently and found an easy solution so thought I

OCL constraints checking on Eclipse Papyrus

∥☆過路亽.° 提交于 2019-12-06 01:37:38
Does anyone manage to check OCL constraints on a class diagram modeled in Eclipse Papyrus ? I have definied a simple test profile with only one constraint on a stereotype attribute : {OCL} self.property > 0 The stereotype extends the Property metaclass so I applied it on a class attribute and I set the property of the stereotype to 0. But I never got an error with the Validation > Validate Model command from the context menu. Any help would be much appreciate. Thanks by advance. I answer to myself for other people who might have the same problem. OCL constraints checking doesn't work for

UML state machine: How to exit orthogonal child regions?

浪子不回头ぞ 提交于 2019-12-05 23:48:41
Base on Wikipedia , I can have a hierarchical state decomposition, where I have multiple orthogonal regions, which can change state independently. The diagram shows how the orthogonal regions are entered. I assume that the entry happens in parallel in all regions. What I want to know is, how do you express the exit? If each region has an exit, does the global parent state exits when the first child region exit, or when they have all exited? I want to express that the exit happens when they have all exited. And how do you express that the global parent state transitions to the next global state

UML2: ports and interfaces in component diagrams

∥☆過路亽.° 提交于 2019-12-05 22:59:27
问题 Since I have not yet completely understood the correct usage of port and interface symbols in component diagrams, a few questions: I. Imagine a piece of software which wants to use a very special remote logger service over network (TCP). The messages may be some XML. So the logger exposes an interface which specifies things like handshake, XML structure, XML elements etc. so that the logger will accept a message. a) Am I right that this interface may be called "ILoggerProtocol", the port may

UML部署图

断了今生、忘了曾经 提交于 2019-12-05 22:34:29
部署图与组件图密切相关,部署图是用来描述软件组件部署的硬件组件;而组件图是用来描述组件和显示了它们是如何在硬件中部署。 部署图通常用来帮助理解分布式系统,一个系统模型只有一个部署图。 部署图用于可视化的软件组件部署的系统中的物理组件的拓扑结构。 部署图是用来描述一个系统的静态部署视图。 部署图的目的 : 可视化系统的硬件拓扑。 描述用于部署软件组件的硬件组件。 描述运行时处理节点。 部署图的用处 : 为了模拟一个系统的硬件拓扑。 嵌入式系统建模。 为了模拟一个客户机/服务器系统的硬件的详细信息。 为了模拟硬件的分布式应用程序的细节。 正向和逆向工程。 UML 部署图元素 名词 描述 图例 节点 代表计算机资源的物理元素或软件系统 结点实例 结点实例的命名格式:Node Instance : node 结点类型 结点类型有:cdrom、cd-rom、computer、disk array、pc、pc client、pc server、secure、server、storage、unix server、user pc,并在结点的右上角用不同的图标表示 物件 物件是软件开发过程中的产物,包括过程模型(比如用例图、设计图等等)、源代码、可执行程序、设计文档、测试报告、需求原型、用户手册等 连接 表示系统之间进行交互的通信路径,连接中有网络协议 结点容器 一个结点可以包括其他的结点

UML用例图

[亡魂溺海] 提交于 2019-12-05 22:33:52
用例图展示了一个外部用户能够观察到的系统功能模型图。 用例图是用来收集系统的要求,包括内部和外部的影响。 用例图目的 : 用例图用来收集系统的要求。 用例图用于获取系统的外观图。 用例图识别外部和内部因素影响系统。 用例图显示要求之间的相互作用是参与者。 用例图用处 : 需求分析和高水平的设计。 模拟系统的上下文。 逆向工程。 Forward engineering. 用例图示例 : 下图代表订单管理系统。有三个用例(订单,特殊订单和正常订单)和一个参与者:顾客。参与者是客户以外的系统,因为它是系统的外部用户。 来源: https://www.cnblogs.com/feichangnice/p/11947809.html

UML交互图

时间秒杀一切 提交于 2019-12-05 22:33:28
UML 交互图主要包括对象和消息两类元素,创建交互图的过程实际上就是向对象分配任务的过程,是可视化系统的交互行为。 UML 交互图包括两种:序列图和协作图。 序列图:显示对象之间的关系,强调对象之间消息的时间顺序,显示对象之间的交互。 协作图:描述对象之间的交互关系。 交互图的目的 : 交互图捕捉一个系统的动态行为; 交互图用来描述该系统中的消息流; 交互图用来描述对象的结构组织; 交互图是为了描述对象之间的互动。 交互图的用处 : 按时间顺序的控制流建模。 为了模拟流结构组织控制。 对于正向工程。 逆向工程。 交互图的实例 : 下面描述了两个交互图建模的订单管理系统:第一个图是序列图,第二个图是协作图。 序列图 协作图 来源: https://www.cnblogs.com/feichangnice/p/11948815.html