uml

UML中的事务

半城伤御伤魂 提交于 2019-12-21 15:14:22
前言 什么是UML,它是如何定义的呢?   UML是一种面向对象的建模语言,它的作用是帮助用户对软件系统进行面向对象的描述和建模,它可以描述整个软件从需求分析直到实现和测试的开发全过程。 组成: UML中的事务: 事务分为四类:结构、行为、组织、辅助等事务。 结构事务:有以下七种。 一、类(Class)  类是具有相同属性、相同方法、相同语义和相同关系的一组对象集合。一个类可以实现一个或多个接口。UML图中类又包括类名、属性和方法的矩形来表示。如下图所示: 二、接口(Interface)  接口是指类或组件所提供的、可以完成特定功能的一组操作的集合。接口描述了类或组件的对外的、可见的动作。通常一个类实现一个或多个接口。在UML图中,接口通常用一个圆形来表示。 三、用例(Use Case)   用例定义了系统执行的一组操作,对特定的用户产生可以观察的结果。用例通常用一个实线椭圆表示。 四、协作(Collaboration)  协作定义了交互的操作,表示一些角色和其他元素一起工作,提供一些合作的动作。一个给定的类可能是几个协作的组成部分,这些协作代表构成系统的模式的实现。通常用一个虚线椭圆表示。 五、活动类(Active Class)  活动类是指类对象有一个或多个线程或进程的类。活动类的表示方法和普通类的表示方法相似,也是用一个矩形表示,只是最外面的边框使用的是粗线。 六、组件

Is there a Harel Statechart DSL tool for Java?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-21 12:19:01
问题 I'm looking for a tool that understands a DSL in which I can define my statechart that generates Java code or where the statechart in the DSL is runnable as is. The tool would ideally be written in Java and must support superstates and orthogonal regions by definition of Harel Statecharts (or equivalently UML 2 State Machines). Alternatively, what would be the best library or tool to write such a DSL with? 回答1: Yakindu looks good: http://www.statecharts.org Harel Statecharts Visual Language

Rational, EA, or something else?

前提是你 提交于 2019-12-21 09:27:07
问题 Does anyone have any thoughts on Rational Software Architect vs Sparx EA? Are there other tools I should be looking at? Specifically, I'm interested in the following; Adherance to some methodology (RUP, SOMF, etc.) -- we're not settled on one now, but need to pick one that suits a SoA architecture. Multi-modeling -- I need to model all the way from hardware (ideally with cost/spec tracking across physical and cloud) to deployment, classes/services, etc. Roundtrip -- reverse our code/data and

Is there any way to generate sequence diagram from android studio

白昼怎懂夜的黑 提交于 2019-12-21 09:14:09
问题 I have created sample android project. Now i have to create sequence diagram for that. Is there any way to automatically generate sequence diagram for android project from android studio. 回答1: Finally I got the solution. I have installed a plugin, previously called SequencePluginReload from Android Studio, now called SequenceDiagram It is very easy to use and works like charm. 回答2: I have downloaded SequenceDiagram suggested by @venkatesh in above answer, but didn't understand how to use it.

Learning how to analyse a project

假装没事ソ 提交于 2019-12-21 06:45:15
问题 I've just stumbled into the job of analysing a project for one of my company's clients (an SMB). I am a .Net developer (5 years) with little experience in analysing software (UML from school). We've just finished two weeks of talking with the users and got a nice big list of requirements. Obviously we've filtered out the most important requirements and had to mark a bunch as 'out of scope'. I have just started making some usecases, but feel I don't have the required expertise to bring this

SQL to UML diagram or graphic tool

∥☆過路亽.° 提交于 2019-12-21 05:34:12
问题 I have a database and want to output a UML Diagram. Is there software that does this? Ideally it will be UML, but a graphics representation of the database could work. 回答1: Boxes and arrows are all you need, but I'd recommend that you try E/R tools. They are similar to UML, but intended for relational databases. A good one can import and export SQL, which you won't get from a UML tool. If you use MySQL, the MySQL Workbench does a very nice job, indeed. 回答2: You can use Erwin Data Modeler,

Graphviz top to bottom AND left to right

拜拜、爱过 提交于 2019-12-21 04:39:10
问题 Hi there I want to have a uml sequence diagram with dot language, now I have the following problem I want to have the layout as follows with a, b, c and d in a straight line at top but with the lines going straight to the bottom. How can I achieve that? a b c d | | | | | | | | perhaps can I achieve that the a, b, c and d with its belonging edges are clusters where I set a different rankdir for the clusters? EDIT Just found a solution by adding invisible edges between a, b, c and d but any

UML sequence diagram: how do i draw cron job?

你离开我真会死。 提交于 2019-12-21 03:42:37
问题 I'm developing an application that takes advantages of restaurants' dataset. Each week my system will run a CRON job in order to synchronize the restaurants that are available on a public API to my database. However, how do I draw the sequence diagram for this CRON job? Who is the actor? 回答1: The actor would be some scheduler (or you can use the Cron object if you like). The target would be your Synchronizer object doing all that fancy web scanning. You can use a loop fragment to show the

How do I export as picture from Enterprise Architect without a frame or diagram name?

…衆ロ難τιáo~ 提交于 2019-12-21 03:39:12
问题 I have some diagrams in Enterprise Architect that I want to import to MS Word. How can I get rid of the border around the diagram and the diagram name when exporting it to picture? How can this be disabled? 回答1: Oh I just found it by accident. Just for reference, as I saw people searching for this from time to time on the net: Tools > Options > Diagram > Diagram Frames > deselect all checkboxes 来源: https://stackoverflow.com/questions/16913053/how-do-i-export-as-picture-from-enterprise

UML representation for C/C++ function pointers

大兔子大兔子 提交于 2019-12-21 03:37:25
问题 What would be the best representation of a C/C++ function pointer (fp) in an UML structural diagram? I'm thinking about using an interface element, may be even if 'degenerate' with the constraint of having at most a single operation declared. I found some proposal in this document: C and UML Synchronization User Guide, Section 5.7.4. But this sounds quite cumbersome and not very useful in practice. Even if right from a very low level of semantic view. Here's a diagram showing their concept