Sei sulla pagina 1di 4

Practical 3

AIM : To create a Use Case diagram showing extend, include and uses relationship . Relationship in Use Case: Use cases share different kinds of relationships. A relationship between two use cases is basically a dependency between the two use cases. Defining the relationship between two use cases is the decision of the modeler of the use case diagram. This use of an existing use case using different types of relationships reduces the overall effort required in defining use cases in a system. Use case relationships can be one of the following: Extend relationship : An extends shows the relationships between use cases. Relationship between use case A and use case B indicates that an instance of use case B may include (subject to specified in the extension) the behavior specified by A. An 'extends' relationship between use cases is depicted with a directed arrow having a dotted shaft. The tip of arrowhead points to the parent use case and the child use case is connected at the base of the arrow. The stereotype <extends> identifies as an extend relationship as shown in figure 3.1. For example, validating the user for a system. A invalid password is extension of validating password use case as shown in figure 3.1.

Figure 3.1 An example of an extend relationship

Include/Uses relationship : When a use case is depicted as using functionality of another functionality of another use case, this relationship between the use cases is named as an include or uses relationship. In other

words, in an include relationship, a use case includes the functionality described in the another use case as a part of its business process flow. A uses relationship from use case A to use case B indicates that an instance of the use case will also include the behavior as specified by B. An include relationship is depicted with a directed arrow having a dotted shaft. The tip of arrowhead points to the child use case and the parent use case connected at base of the arrow. The stereotype <include> identifies the relationship as an include relationship.

Figure 3.2 An example of an include/uses relationship.

Use Case Diagram for Library Management System

Practical 4

AIM : To create Sequence diagram for Library Management System .

Sequence Diagram : A sequence diagram, in the context of UML, represents object collaboration and is used to define event sequences between objects for a certain outcome. A sequence diagram is an essential component used in processes related to analysis, design and documentation. A sequence diagram is also known as a timing diagram, event diagram and event scenario. The main purpose of a sequence diagram is to define event sequences that result in some desired outcome. The focus is less on messages themselves and more on the order in which messages occur; nevertheless, most sequence diagrams will communicate what messages are sent between a system's objects as well as the order in which they occur. The diagram conveys this information along the horizontal and vertical dimensions: the vertical dimension shows, top down, the time sequence of messages/calls as they occur, and the horizontal dimension shows, left to right, the object instances that the messages are sent to.

Potrebbero piacerti anche