uml-modeling

Book Store Model

I am developing a solution. I want to model following structure Collection 1 Category 1 Sub Category 1.1 Book 1 Book 2 Book 3 Sub Category 1.2 Book 1 Category 2 Sub Category 2.1 Book 2 Sub Category 2.2...

Resources for learning how to better read code

Hi, I recently inherited a large codebase and am having to read it. The thing is, I've usually been the dev starting a project. As a result, I don't have a lot of experience reading code. My reaction to having to read a lot of code is, well, umm to rewrite it. But I need to bring myself up to speed quickly and build on top of an exi...

Are UML semantic variances necessary?

I am asking if it is necessary or useful to have semantic variances in UML. Would it not be more useful when it was more formal and therefore verifiable or even used for rapid prototyping. What is the benefit of the variance? Can you give some examples? ...

Modeling related objects and their templates

Hello everybody! I am having trouble correctly modeling related objects that can use templates. This is not homework, but part of a small project in the university. In this application the user can add several elements, which can either be passive or active. Each concrete element has different attributes, these must be set by the user....

When a system should be included as an actor in use case diagram?

Hi. I'm making a use case diagram for a new system. I'm wondering when a system should be included as an actor in use case diagram? Thanks. ...

can an email address be used for a UML package namespace

is there a standard for naming packages in UML ...

Class diagram: how to write down classes that belong to a library?

I am reverse engineering some Java code into a class diagram. Now I'm wondering how to model classes that are from a library that I didn't design. If I'm writing them down as classes, I should maybe also know what interfaces they implement, etc, and put that in the diagram. How far do I go with this? Is it better to write them down as at...

Collaboration Diagrams: how to represent setting a variable's and attribute's value to a specified value

Let's assume I have a class called MyClass with an attribute called MyAttribute and a method called MyMethod(). Inside that method I'd like to have a variable called MyVariable. I'd like to set the value of MyVariable to "MyVariable" and MyAttribute to "MyAttribute" inside the call to MyMethod(). How can I do this in a Collaboration Diag...

Specialization hierarchy in a domain-model

I'm trying to make the domain model of a management system. I have the following kind of people in this system: employee manager top mananger I decided to define an User, from where Employee, Manager and Top Manager will specialize from. Now, I don't know what kind of specialization hierarchy I should choose from. I can't decide betw...

Are UI choices functional or non-functional requirements?

Today we had a discussion at the office about UI elements in the required document. the question is of a UI requirement is functional of non-functional. "the background must be blue" is this a functional or non-functional requirement? ...

What are the most practical Object-oriented software modeling methods in real world projects?

I want to develope and big project but I really don't know what is the best way to model my project. do I even need to model my project? What are the most practical OOP software modeling methods in real world projects? what are the bests one and most useful ones? please guide on this. ...

Sequence Diagram return a new constructed Object

I am drawing a Sequence Diagram where the scenario is. 1. an Actor calls :Table::query(query:String) :Table::query Calls :Connection::execute(query) :Connection::execute <> a new :Row Object :Connection::execute calls :Row::fillData(result) :Connection::execute returns :Row ...... There are More But I am Stuck in Step 5 I cant Under...

NetBeans 6.8/6.7 UML Class Diagrams

i have tried to generate Class Diagrams in NetBeans 6.7 and 6.8 but all i get is: i figured out installing UML for 6.8 here: NetBeans 6.8 UML i have followed the instructions here: UML Class diagrams i so far i failed to generate anything meaningful. i have followed the tips: Open your project, then create a new UML project (choo...

UML interface: URL iframe integration

I have two applications, A and B, both with a web-based user interface. Both applications are integrated via an URL iframe mechanism. A user can click on a link in application A and then gets the UI of application B as am iframe in application A. Now, since both applications have an interface between each other (do they?): Who provide...

Use case modelling for calculator

hi, i need help modelling a use case diagram from a topic, it will be in java GUI Design a Calculator that 1.Allow user to key in a legitimate arithmetic statement that involves number, operator +, - and bracket '(' and ')' ; 2.When user press “Calculate” button, display result; 3.Some legitimate statement would be ((3+2)-4+2) (equa...

What UML diagram should I use for simple application features..?

I'm really confused about this, tried to read a lot about diagrams but I just can't understand what is most suitable for this case. I need just TO SHOW that I have 10 modules, which have 10 features. One of that feature can call other module feature.. something like this. very simple. it's better just to be some kind of blocks with de...

Question about use of Controllers

I was given a Use Case for a Quizz Application. The Use Case is only for creating new Quizzes. I am having trouble deciding which design is better: a) b) Although this might look like a Domain Model, it is in fact a Class Diagram (I was lazy to put the methods/attribtues in the diagrams :( ). The idea behind all this is that I ha...

Visual Studio code generation - how to deal with developers editing class files

So thanks to the Visualization and Modeling Feature Pack , I can build a uml model diagram and generate a bunch of classes. But what now? Presumably, my developers will add code to those classes. Useful code, valuable code, and as the templates themselves indicate: // Changes to this file will be lost if the code is regenerat...

How do I view UML in XML format in a diagrammatical format?

I am running UBUNTU. Linux and have tried BOUML, which can show the project in a tree structure, but I am unable to get a diagrammatical over view of the whole system. I think this is not a direct programming question, but hopefully it can be answered here anyway. :) Also, would appreciate a good place to start to learn more about UM...

Has anyone used UML with OCL? Do programmers use it or only analysts who don't code?

I am trying to wrap my head around why we first approach the problem of design and decide upon a visual method (UML), instead of starting with formal specifications that happen to also be executable (RAD prototyping), we start with diagrams that can't be easily proven to work. So when it comes time to prove properties of a model, we fin...