UML Sequence Diagram Diagram UML Class and Sequence Diagrams
such companions for this entry now what we will see about class diagrams and sequence diagrams.
Wednesday, March 16, 2011
Watch Anime Yaoi Hard
A class diagram, as its name says, helps us learn visually, the relationships of the classes we have on our project or program, which they may be of use, community and heritage. We must take into account that such diagrams are static. Class diagrams are widely used for business projects generalmenta, development, among others. And used during the analyze and design systems.
Then I put the structure that should bring a class diagram.
Representation:
Relations between classes:
These help us to where we want to relate more classes and we see them represented as arrows, then mention a few:
- Inheritance: This is the type of aggregation most commonly found, and in this we mentioned that a class of a class (so a subclass) inherits methods and attributes that were in it.
- Aggregation, Association and Dependence (these are other types that we find here is the link if they want to know more of them.)
Here is an example of how it can be used (this is about a dictionary as an algorithm using a tree diagram):
UML Sequence:
UML sequencer is better known as sequence diagram, this type of diagram is widely used for modeling of operating in an object-oriented program. This shows the orientation rather THROUGH the time and that's what happens in each case (could include the functions that make it).
If I understood, to make concepts more easily imagine a timeline of a person who has the line of origin, several ways (as it can sleep, eat, walk, etc..) And an end.
Things to consider:
There really take, if we make a diagram good sequence is that it will not be long now, it can confuse us with other people who want to know hacerca it. This should be clear, indicating the objectives, functions and classes that are in it, if the program you are using an algorithm, it is not necessary indexes, only offer must specify the class belongs.
Elements:
main elements or components that are in it are:
Actor: This is taking the test paper or objects that we use to go through the diagram .
Purpose: This is being represented as a rectangle containing the name of the class and below is this is a vertical line, which is also known as lifeline
Activation: This is a rectangle that is the life line, indicating the time takes action.
Message: indicated in this message, conditions or iterations we have, either in a timeline, from one line to another or vice versa.
now and then I put an example of how it works, and integrated with all this, the example is about when we go to a restaurant:
To do this type of diagrams in our computer, there are several softwares which we can use, I recommend using Umbrello, since it is simple to use, free software and there are several tutorials on how to use it .
If you want to download is concerned to bring in the terminal:
- sudo apt-get install Umbrello
And ready to continue with normal password is to test the program.
also worth noting that there are several websites where you can generate charts one is http://www.websequencediagrams.com/ in which it can help us to sequence diagrams.
So far it all, if you have questions or comments feel free to post it and let me know and so poderselos answer.
Greetings.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment