uml

Boost.MSM: Exit orthogonal regions via a join pseudo state

回眸只為那壹抹淺笑 提交于 2019-12-05 10:51:41
I intend to use boost.msm with the concept of composite containing orthogonal regions . I want to synchronize all orthogonal regions upon exit. In other words: the state following my composite shall be activated if and only if all regions have reached their last state. UML 2.4 "Superstructure" proposes join pseudo states (i.e. chapter 15.3.8). In boost, there is a fork but I cannot find any implementation of its counterpart join. Is there no join pseudo state in boost.msm? How would I apply the concept of join pseudo state with boost.msm? You could use a counter which will increment each time

When to use an attribute (property) instead of an association/aggregation/composition when drawing a UML

二次信任 提交于 2019-12-05 10:30:06
Okay so I'm a bit confused as to when I should add an attribute to a class vs drawing an association to a class when trying to show a relationship in a UML diagram. For example let's say I have a DFA class that contains 10 state objects each having a different set of paths to various states in the DFA. Should I draw the composition line from the DFA to the State class or just type all 10 states in the attribute section of the DFA class. Basically I'm trying to figure out if when a Class A contains (or is composed of) one or more Class Bs, should I draw a line (aggregation, composition

《基于UML的小区物业管理系统分析》论文笔记(十一)

这一生的挚爱 提交于 2019-12-05 10:09:39
一、 基本信息 标题:基于UML的小区物业管理系统分析 时间:2012 来源: 科技创新与应用 关键词:UMLL 语言;物业管理;面向对象 二、 研究内容 小区物业管理系统的任务是用计算机管理和维护小区居住人口管理与停车管理以及一些水费、电缆、气费、进出车量的管理,并提供各种查询功能。 1)用户管理模块:实现用户注册、登录、密码修改等功能,并对注册的用户权限进行控制,方便用户对自己的信息进行操作,主要为了保障系统的安全性。用户管理系统把用户身份分为系统管理员和普通用户两种权限,不同的权限对系统的操作不同,普通用户只能对系统进行一些基本的操作,如对小区信息、楼房信息等进行浏览与查询,可以提交报修信息、投诉信息和对密码进行重置等操作。系统管理员可以对系统进行全权操作。 2)住房管理模块:住房管理模块主要是对小区内部的楼房、小区设施等基本信息进行添加、删除、修改、查询的基本操作。住房管理模块包括(住房编号、小区地址、建筑面积、使用面积、价格、是否售出等)。小区设施管理包括(设施编号、设施名称、维修记录、购买日期、事故记录等) 3)住户管理模块:住户管理主要对业主信息进行记录包括(业主姓名、出生年月、籍贯、性别、工作单位及地址、邮编、身份证号码、联系电话、入住时间、迁出时间等)。 4)停车管理模块:主要是对小区内的车辆信息进行登记及停车场信息记录。 用户管理分析

What is the difference between 'includes', 'extends' and 'uses'?

情到浓时终转凉″ 提交于 2019-12-05 10:07:56
问题 In a use case diagram what is the difference between <<includes>> , <<extends>> and <<uses>> ? Are <<includes>> and <<uses>> are the same thing? 回答1: includes and uses are the same. From http://www.agilemodeling.com/essays/useCaseReuse.htm above An include dependency, formerly known as a uses relationship in UML v1.2 and earlier 回答2: Nice writeup here: http://www.agilemodeling.com/essays/useCaseReuse.htm Summary from that article: An extending use case continues the behavior of a base use

Understanding UML of DoFactory Design Pattern - Decorator

陌路散爱 提交于 2019-12-05 09:54:03
I am trying to understand UML diagram describing Decorator Pattern at link below http://www.dofactory.com/Patterns/PatternDecorator.aspx I don't understand why there is a "Aggregation" relation between Decorator and Component. I believe it should be composition as Decorator cannot exist without the base component. Composition is stronger that aggregation, it usually means that the object takes ownership of its components. This is not the case in this situation because a decorator doesn't own a decorated object. Moreover you could remove the decorator without a need to remove the decorated

第10组 Alpha事后诸葛亮

匆匆过客 提交于 2019-12-05 09:33:45
资源 我们有足够的资源来完成各项任务么? 我们的资源目前足够我们来完成现阶段的各项任务。 各项任务所需的时间和其他资源是如何估计的,精度如何? 开始时精度很粗略,后来因为任务的逐步加重,也因为大家这些日子一直忙着课程考试,抽出时间写任务已经是最大,所以没有再去想细化精度问题。 测试的时间,人力和软件/硬件资源是否足够? 对于那些不需要编程的资源 (美工设计/文案)是否低估难度? 人力资源是足够的,硬件资源在现阶段也是足够的,而对于美工和文案我们最开始的确都低估了难度,真正上手才发现并不简单。 你有没有感到你做的事情可以让别人来做(更有效率)? 我们现阶段的事情都是可以自主完成的,而且一些设计如果交给别人来做反而会没有办法事后沟通修改,反而会加大工作量。 有什么经验教训? 如果历史重来一遍, 我们会做什么改进? 设计/实现 设计工作在什么时候,由谁来完成的?是合适的时间,合适的人么? 设计工作是在需求确定之后,有团队中擅长这一方面的同学来完成的,是合适的时间和合适的人。 设计工作有没有碰到模棱两可的情况,团队是如何解决的? 很多,大家都不知道如何解决,也有时候会出现一些小问题但是能个人解决也就没有影响团队。 团队是否运用单元测试(unit test),测试驱动的开发(TDD)、UML, 或者其他工具来帮助设计和实现?这些工具有效么? 我们暂时还没有用这些工具来测试

UML:类图关系总结

China☆狼群 提交于 2019-12-05 08:55:48
UML类图几种关系的总结,泛化 = 实现 > 组合 > 聚合 > 关联 > 依赖 在UML类图中,常见的有以下几种关系: 泛化(Generalization), 实现(Realization),关联(Association),聚合(Aggregation),组合(Composition),依赖(Dependency) 泛化(Generalization) 【泛化关系】:是一种继承关系,表示一般与特殊的关系,它指定了子类如何特化父类的所有特征和行为。例如:老虎是动物的一种,即有老虎的特性也有动物的共性。 【箭头指向】:带三角箭头的实线,箭头指向父类 2.实现(Realization) 【实现关系】:在这里插入图片描述是一种类与接口的关系,表示类是接口所有特征和行为的实现. 【箭头指向】:带三角箭头的虚线,箭头指向接口 3.关联(Association) 【关联关系】:是一种拥有的关系,它使一个类知道另一个类的属性和方法;如:老师与学生,丈夫与妻子关联可以是双向的,也可以是单向的。双向的关联可以有两个箭头或者没有箭头,单向的关联有一个箭头。 【代码体现】:成员变量 【箭头及指向】:带普通箭头的实心线,指向被拥有者 上图中,老师与学生是双向关联,老师有多名学生,学生也可能有多名老师。但学生与某课程间的关系为单向关联,一名学生可能要上多门课程,课程是个抽象的东西他不拥有学生。 4.聚合

Creating Aggregation and Composition in class diagram in Visual Studio 2017

假装没事ソ 提交于 2019-12-05 06:46:27
I am thinking about creating a class diagram in Visual Studio. I notice that the Toolbox only appears to allow Association relationships between classes. Is it possible to create stronger relationships in the class diagram, i.e. Aggregation and Composition relationships? Also, is it possible to automatically create the class diagram from the code? Great Question. First of all : Visual Studio (VS) Class Designer is not a CASE Tools (like Enterprise Architect and etc.). It is only a class representation of the source codes. Meaning that classes in class designer are always synchronized with the

关于UML类图的一点理解(转)

為{幸葍}努か 提交于 2019-12-05 06:08:14
首先我们定义一个非常简单的Person类,代码如下: public class Person { private String name; private int age =1; public String getName() { return name; } public int getAge() { return age; } public void setName(String name) { this.name=name; } public void setAge(int age) { this.age=age; } } 这个Person类很简单,定义了两个字段name和age其中age有一个初始化值1,另外定义name和age的set、get方法。很简单,然后我们来看下这个类在UML类图中是如何表示的:  可以看到我们画了一个矩形,然后从上到下分割成三格,第一格为类名,第二格为类中字段属性,这里属性的表达也是有一定格式的,如下: 权限 属性名:类型 [ = 默认值 ] 由于这里我们的name和age都是私有的,所以在前面加一个 - ,另外还有其他几种权限:public 、protected、default,它们分别对应 + 、 # 、 ~ 。由于我们这里的age有一个默认值1,所以在类型后面再加上‘=1’来表示。接下来来看下第三格,第三格为类的方法,其格式如下 权限

Keyboard friendly light weight UML modeling tool? [closed]

时间秒杀一切 提交于 2019-12-05 06:06:45
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm looking for a free UML tool that runs on Windows and lets me create simple diagrams very fast, with as little mouse fiddling as possible. I have no need for code generation or fancy stuff, just UML style boxes with arrows. What I would like is something that for example lets me add a new class with a keyboard shortcut and lets me enter the name without having to double click the added class or something like