Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Diplommm.docx
Скачиваний:
35
Добавлен:
25.02.2016
Размер:
405.92 Кб
Скачать

2.5.1 The use case diagram

Use case diagrams describe the relationships and dependencies between groups of use cases and actors involved in the process. Use Case describes a point of view of the person in the group of actions that lead to a specific result. Use cases are descriptions of typical interactions between users of the system and the system itself. They represent the external interface of the system and indicate the form of what the system should do (that is, not how). When you work with use cases it is important to remember a few simple rules: each use refers to at least one character of the person, each use case is the initiator, each use case leads to the corresponding result. Use cases can also interact with other use cases. The three most common types of interactions between use cases are listed below. Turning indicates that embodiment use is embedded in another embodiment use. Actor is an external source (not part of the system) that interacts with the system through the use case. Characters can be as real people (for example, users of the system) and other computer systems or external events. In Figure 4, one can see an example of a chart.

 

Figure 4 - Example of a use case diagram

2.5.2 The sequence diagram

In UML, each interaction is described by a set of messages that are involved in it the objects communicate with each other. Message is a complete piece of information that is sent by one entity to another. Receiving a message triggers a specific action to address a specific task by the object to which the message was sent. Thus, the message is not only convey some information, but also require or intend to perform the expected action from the receiving entity. Messages can initiate execution of transactions subject to the class, and the parameters of these transactions are transmitted with the message. On a sequence diagram, all messages in order of the time of its inception in the modeled system. In this context, each message has a direction from the object, which initiates and sends a message to the object that it receives. Sometimes the sender of a message is called the client, and the recipient's server. Then a message from a client is in the form of a service request, and the server response to the request after receiving a message can be linked to the performance of certain acts or transfer the necessary information to the client in the form of a message, too. Messages are represented by horizontal arrows connecting the line of life or focus on the management of the two objects sequence diagram. The UML distinguishes several types of messages, each of which has a graphic. On the sequence diagram depicted only those objects that are directly involved in the interaction. The key point for sequence diagrams is the dynamics of the interaction of objects over time. In the UML sequence diagram has two dimensions, as it were. The first left as vertical lines, each line shows the lifetime of an individual object involved in the interaction. The extreme left of the diagram depicted object that initiated the interaction. Depicted to the right of the other, which communicates directly with the first. Thus, all of the objects in the sequence diagram form a certain order determined by the order or the level of activity of objects in interaction with each other. Graphically, each object is represented by a rectangle and is located in the upper part of his life line. Inside the rectangle is written the name of the object and the class name separated by a colon. The entire record is emphasized as a sign of the object. The second dimension is a sequence diagram of the vertical time axis is directed from the top down. Initial time corresponds to the uppermost part of the diagram. Interaction of objects implemented via messages that are sent among other objects. Messages are shown as horizontal arrows with the message name, and their order is determined by the time of occurrence. That is, the messages are located in the sequence diagram above, initiated before those that are below. The scale on the time axis is not specified as a sequence diagram models the interactions of the temporal ordering of the "before-after". In Figure 5, you can see an example of a sequence diagram.

 

Figure 5 - Sequence Diagram

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]