UML (Unified Modeling Language) is a standard language for specifying, visualizing, constructing, and documenting the artifacts of software systems.
- UML stands for Unified Modeling Language.
- UML is different from the other common programming languages such as C++, Java, COBOL, etc.
- UML is a pictorial language used to make software blueprints.
- UML can be described as a general purpose visual modeling language to visualize, specify, construct, and document software system.
- Although UML is generally used to model software systems, it is not limited within this boundary. It is also used to model non-software systems as well. For example, the process flow in a manufacturing unit, etc.
UML Building Blocks
- Structural - static part, eg: class, interface, package, etc.
- Behavioral - dynamic part, eg: interaction, state machine, etc.
- Grouping - mechanism to group things together, eg: package, etc.
- Annotational - mechanism to capture remarks, description and comments. show how the elements are associated with each other.
- Dependency - relationship between two things in which change in one element also affects the other element.
- Association - set of links that conects the elements of a UML model. It also describes how many objects are taking part in that relationship.
- Generalization - relationship that describes inheritance relationship in the world of objects.
- Realization - relationship that describes the implementation of an interface in a class.
- Class diagram
- Object diagram
- Use case diagram
- Sequence diagram
- Collaboration diagram
- Activity diagram
- Statechart diagram
- Deployment diagram
- Component diagram
Use Case Diagram
Case Study: Hotel Reservation System
Online Hotel reservation system is used by a customer to search hotel as per their criteria. If the system shows a hotel as per their preference, then the customer makes a reservation by paying for it via credit card. Also, the system facilitates the customer by allowing them to cancel the reservation. The hotel admin monitors the reservations and cancellations and updates the hotel reservation information. For the above scenario, develop the following artifacts:
- Use case Model with at least one include and extend relation where ever required.
- Sequence Diagram
- Class Diagram
Use Case Diagram