uml

OCL constraints checking on Eclipse Papyrus

不羁的心 提交于 2019-12-22 10:57:34
问题 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. 回答1: I answer

How to represent calling base class method in overridden method?

不想你离开。 提交于 2019-12-22 09:56:40
问题 I have a child class which wants to add more functionality to a base class function, how can I represent that it also does the base class function not just the newly added functionality? 回答1: Interesting question. I tried that with Enterprise Architect. It did let me select the parent's operation but the display in the diagram did not change. It seems like you need to use notes for that: As you can see Class2 inherits from Class1 . The SD shows a call to Class2 's operation a() . The call to

UML class diagram web service

北城余情 提交于 2019-12-22 08:38:25
问题 How do I draw a class in UML that uses a web service? 回答1: You could also use WSDL (Web Services Description Language) UML profile with the appropriate WSDL stereotypes. That would give for example: -------------------- | <<wsdl:service>> | -------------------- | MyWebService | -------------------- | | -------------------- | | -------------------- {URI="/MyWebService"} A full UML example involving many components of a web service would be: (source: xml.com) 回答2: Sounds like a sequence diagram

What do the vertical rectangles convey in a UML sequence diagram?

£可爱£侵袭症+ 提交于 2019-12-22 08:24:17
问题 What do the vertical rectangles signify in a UML sequence diagram? For example I want to know the meaning of the rectangle pointed to by the green arrow. Do the height of these rectangles mean anything? 回答1: The vertical rectangles denote execution specification . Execution specification is a part of object's interaction which represents period of object's lifetime when it is either doing some activity or simply waiting for the reply from other object. By some activity I mean sending messages

Formal language for UML sequence diagrams

给你一囗甜甜゛ 提交于 2019-12-22 06:47:03
问题 Is there a formal language which can be used to capture the information present in an UML sequence diagram in to a text format, which is easy understandable by humans? In our place, often times software requirements are specified in terms of complex sequence diagrams which are difficult to review, verify for correctness and make changes. Also IMHO, programmers would prefer to implement from an unambiguous text representation of the requirements, rather than from sprawling multi page diagrams.

Creating Aggregation and Composition in class diagram in Visual Studio 2017

ε祈祈猫儿з 提交于 2019-12-22 05:24:15
问题 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? 回答1: 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

Use Cases - Help [closed]

*爱你&永不变心* 提交于 2019-12-21 20:47:08
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago . I am new to writing use cases.I heard that Use cases are non-technical expressions . I have the following task for which i have to write Use case. ( I reduced the requirement for your understanding ) Registered Customer of ABC company logged in to the system with credentials

Representing swing components in UML class diagrams

元气小坏坏 提交于 2019-12-21 17:52:15
问题 I have some questions regarding the representation of the gui objects in uml class diagrams. For example if a have a class which extends the JFrame, then i will design the UML class diagram with the inheritance symbol, but in the JFrame, i do not need to write down all of it's class variables and methods, but only those whose my class will use right?? Second how will i represent that my class will use a specific layout manager? With the association symbol, i quess but i am not sure. Say for

Get all methods and/or properties in a given Perl class or module

一世执手 提交于 2019-12-21 17:37:23
问题 I'm dealing with an apparent simple issue. I'm writing a module similar to UML::Class::Simple but with some improvements. Summarizing, the idea is to retrieve a record card for each module in a given source, containing information about the Methods, Properties, Dependencies and Children. My current problem is getting Methods and Properties for each module. Let's see the code I've already written: use Class::Inspector; use Data::Dumper; sub _load_methods{ my $pkg = shift; my $methods = Class:

Swift code to class diagram

牧云@^-^@ 提交于 2019-12-21 17:00:01
问题 Is there a way to generate UML Class diagram for swift programming language? I found that the Mac A&D tool claims to be able to scan the swift code and create a class diagram. And there is a video to introduce it. https://wn.com/swift_code_to_class_diagram Unfortunately, it is not free. I wonder if there is another free tool to generate class diagram automatically. Could you guys help me? Thanks in advance. UML class diagrams for Xcode (swift programming) 回答1: I recently found a free tool,