uml

Does Visual Studio 2010 Professional support UML modeling?

偶尔善良 提交于 2019-12-12 15:02:45
问题 Does Visual Studio 2010 Professional support UML modeling? I see a blog tutorial showing it in an online template, but online template browsing is not available. I even enabled the following trick to add it: <defaultProxy useDefaultCredentials="true" enabled="true"> <proxy usesystemdefault="True" /> </defaultProxy> This doesn't work. How do I do it? 回答1: No, it is supported within Ultimate. The Architecture Explorer in Visual Studio 2010 Ultimate helps you understand your existing code assets

How to set sequence relationship between classes?

久未见 提交于 2019-12-12 14:07:41
问题 I am newbie in UML modeling, and this might seem to be a silly question to some but I will give a try. Please consider the following picture: How to specify the order in which they will appear into the calendar. The fact that Monday is after Sunday and before Tuesday, matters in this model. But how to transfer that information to the reader of the model? Thank you. 回答1: Perhaps Monday is one of seven instances of a day of the week, not a kind of day of the week. Think of the class Day Of Week

Show dependencies on UML use case diagrams other than “<<extend>>” or “<<include>>”

安稳与你 提交于 2019-12-12 14:02:34
问题 How can we show simple dependencies between use cases other than "extend" or "include". For example we want to say use case1 depends on use case2 which are done by user1. Can a simple arrow be used for this? For which direction? 回答1: Yes. There are other dependencies. The full list of classes directly connected to Use Case is (fig. 18.1 of UML 2.5 standard) : Use Case Constraint Actor Include Extend Extension point But that doesn't mean you can't use other UML elements in the diagram with Use

How to model python properties in UML diagram

僤鯓⒐⒋嵵緔 提交于 2019-12-12 11:09:22
问题 What is a good practice to model python properties in a UML class diagram? Properties themselves are class objects, their getter and setter are class functions. From Outside the class they look like instance attributes. So, how would you suggest to present that in my class diagram? Thanks 回答1: I recommend you read UML Best Practice: Attribute or Association, by another Stack Overflow user named Geert Bellekens. It states simply: Use Associations for Classes and Attributes for DataTypes. You

is this a case of association or aggregation?

风流意气都作罢 提交于 2019-12-12 10:26:44
问题 I have found a Java example about how students register in a set of courses: Student-----takes------Courses and in the example is defined as Association, but why it cannot be Aggregation? for what I see each class could exist independently. How do differentiate both? In the above example I am dealing with the schema that a Student has an array of Courses as attribute, and Course has an array of Students within it also; so in that case is association because both of them are related, and

state transition with different guard condition

给你一囗甜甜゛ 提交于 2019-12-12 09:08:56
问题 In the state pattern how is this modeled ? state A to state B on trigger X and conditon C1 when current state is A state A to state C on trigger X and condition C2 when current state is A how is this usually accomplished ? I have a lot of guard conditions that I may need to implement. 回答1: That's pretty standard see e.g. this example. [Edited on basis it's not homework!] Assuming I understand right: You have one event ( X ) which can trigger one of two possible transitions Selecting which

Use the C++ STL in Enterprise Architect

痞子三分冷 提交于 2019-12-12 08:01:50
问题 How is it possible to use parts of the C++ STL in Enterprise Architect? It would be nice to be able to specify certain class attributes as std::string or use std::auto_ptr (or even std::tr1::shared_ptr ) as types. Another interesting thing would be how one is able to integrate container-types like std::vector and std::map into EA. 回答1: I have taught how STL containers look like to EA, I guess it can be extended to stl pointers too: Forward engineering: You can define collection classes for

UML into JSON Schema and XSD

≯℡__Kan透↙ 提交于 2019-12-12 06:07:21
问题 I created simple UML diagram which is part of bigger diagram of cinema. Image Based on this diagram I created Json Schema and XSD files Json Schema: -> movieSchema.json { "type": "object", "required": true, "properties": { "idOfMovie": { "type": "integer", "required": true }, "title": { "type": "string", "required": true }, "is3D": { "type": "boolean", "required": true }, "yearOfProduction": { "type": "integer", "required": true }, "ageCategory": { "type": "integer", "required": true },

Question about UML extend/include from Book Example

非 Y 不嫁゛ 提交于 2019-12-12 05:12:16
问题 Reading the book about UML, I do not understand following: --------include---> Add new manufacturer Servoce Assistant---Add new product <--------extend----Add new product type I just do not understand it. If there is yet uknown manufacturer, it uses included case Add manufacturer. But if it is yet uknown type, there is extend? That does not make any sense to me. It would make sense if only Add manufacturer could be called from different places but Add new product type exists only for that

Represent UML diagram in OWL

夙愿已清 提交于 2019-12-12 04:59:14
问题 I have two classes Person and Vehicle having owns as relation between them. There is 1 to many relation between them like one person can own many vehicles. Person has attribute 'name' (person name) and vehicle also has attribute 'name' (brand name). Question is how to model this in OWL using protege editor? If there is an attribute on ' owns ' relation saying ' DateOfPurchase ' how to represents this in OWL ? 回答1: Object properties in OWL describe relation between individuals, not between