In Visio, the relationship between a package and a class is an inclusive relationship, and after the class is dragged into the folder of the package, the relationship is established, and the two-dollar correlation symbol can be set to: aggregation, composition.Interface: Hollow Circle + Straight line (Donald Duck class to achieve ' speaking ');Dependency: Dashed + arrow (animal and air relationship);Correlation: Solid + arrows (Penguins need to know the climate before migrating);Aggregation: Hol
The use case diagram mainly includes use cases, activists, and relationships.
Use Cases: A description of the sequence of actions that the system, subsystem, or class interacts with external participants, including various normal sequences and error sequences. Case analysis can be considered as a decomposition of system functions.
How to determine the granularity of use cases:Generally, there are no mandatory requirements for a system. You only need
Overview
The relationships in a UML class diagram include:
Association, aggregation, composition, dependency, generalization, and Realization)
Association(Association)
Line representation, optional arrows,
Is a relationship in a static structure, which tends to be a data relationship. The relationships in this static structure will be stored with the storage of class files. If one class is the object of an
Use case diagram Structure
1Roles: Personnel roles-people and events;
Roles are not necessarily limited to people. They can also be things or things.
2. Use Case: function description;
Each use case describes a complete system service.
3System boundaries
4Relationship: the relationship between executors and use cases.
Generalization
Dependency
Association
Aggregation and combination
Implementation
You can read books, roles, system boun
Class diagrams are the most commonly used diagrams in UML. We can see that class diagrams are very important.
A class chart is a class digoal. The shape is very simple. It consists of a rectangle, two rectangles, or three rectangles.
For example:
The top column shown in is the class name. The second column is the class property. (A class can have one or more attributes. Of course, some classes have no attributes) the third column is the cl
. Proxy modeIntent: Provides a proxy for other objects to control access to this object.21. Single case (Singleton) modeIntent: Ensure that a class has only one instance and provides a global access point to access it.22. Status (State) modeIntent: Allows an object to change its behavior when its internal state changes.23. Policy (strategy) modeIntent: Define a series of algorithms, encapsulate them one by one, and make them interchangeable with each other.24. Template Method ModeIntent: Define
consistent.Just, the class involved in the association is logically a level, such as the student teacher above, but the aggregation involves the class is not a level.Look at the following example:It can be expressed as a has a/some B, at which point B is able to separate from a and exist independently. Without a car tire or a tire.Combination compositionThe composition relationship is a bit tighter than the aggregation relationshipThe limbs and the people are die.Non-separable.As for generaliza
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.