Dear,
A use case diagram is “a diagram that shows the relationships among actors and use cases within a system.”
Use case diagrams are often used to:
Provide an overview of all or part of the usage requirements for a system or organization in the form of an essential model or a business model.
Communicate the scope of a development project.
Model your analysis of your usage requirements in the form of a system use case model.
Use Cases
A use case describes a sequence of actions that provide a measurable value to an actor.
Use Case Names Begin with a Strong Verb.
Name Use Cases Using Domain Terminology.
Place Your Primary Use Cases In The Top-Left Corner Of The Diagram.
Imply Timing Considerations By Stacking Use Cases.
the use cases that typically occur first are shown above those that appear later.
In this below fig. Implying timing considerations between use cases.
Object diagrams are referred to as instance diagrams are useful for exploring “real world” examples of objects and the relationships between them.
Although UML class diagrams are very good at describing this very information some people find them too abstract – a UML object diagram can be a good option for explaining complex relationships between classes.
It is common for object diagrams to evolve into communication diagrams simply by adding messages to the diagram.
UML Sequence Diagrams
UML sequence diagrams are a dynamic modeling technique. UML sequence diagrams are typically used to:
Validate and flesh out the logic of a usage scenario. A usage scenario is exactly what its name indicates – the description of a potential way that your system is used. The logic of a usage scenario may be part of a use case, perhaps an alternate course; one entire pass through a use case, such as the logic described by the basic course of action or a portion of the basic course of action plus one or more alternate scenarios; or a pass through the logic contained in several use cases, for example a student enrolls in the university then immediately enrolls in three seminars.
Explore your design because they provide a way for you to visually step through invocation of the operations defined by your classes.
To detect bottlenecks within an object-oriented design. By looking at what messages are being sent to an object, and by looking at roughly how long it takes to run the invoked method, you quickly get an understanding of where you need to change your design to distribute the load within your system. In fact some CASE tools even enable you to simulate this aspect of your software.
Give you a feel for which classes in your application are going to be complex, which in turn is an indication that you may need to draw state chart diagrams for those classes.
A UML sequence diagram.
Collaboration Diagram
UML collaboration/communication diagrams like UML sequence diagrams, are used to
explore the dynamic nature of your software.
Collaboration diagrams show the message flow between objects in an OO application, and also imply the basic associations (relationships) between classes.
Collaboration diagrams are often used to:
Provide a birds-eye view of a collection of collaborating objects, particularly within a
real-time environment.
Allocate functionality to classes by exploring the behavioral aspects of a system.
Model the logic of the implementation of a complex operation, particularly one that
interacts with a large number of other objects.
Explore the roles that objects take within a system, as well as the different relationships
they are involved with when in those roles.
Basic components of Collaboration Diagram
Objects, Association Roles, Links and Messages.