Three main elements of modeling:
1. Basic Construction blocks of UML;
2. Rules on how to put these constructor blocks together;
3. Some common mechanisms applied to the entire UML;
The UML constructor consists of three types: A, thing B, relationship C, and diagram.
Things: including "structured things", "behavior things", "grouping things", and "commenting things ";
"Structured thing": Class, interface, collaboration, usage, active class, component, node;
"Action thing": interaction and state machine;
"Group thing": package;
"Annotation": annotation;
Relationship: includes "dependency", "association", "General Relationship", and "implementation relationship ";
Figure: including "class diagram", "Object diagram", "usage diagram", "sequence diagram", "Collaboration diagram", "State Diagram", "activity diagram", and "component diagram", "Implementation diagram ";
UML rules
UML has semantic rules used to describe the following things:
Name: the transaction, link, and graph name;
Scope: give a name a specific context;
Visibility: How to make others use or be visible;
Integrity: How Things interact correctly and consistently ;;
Execution: what is the meaning of running or simulating a dynamic model;
Common mechanism in UML
1. Details
2. Modify
3. General Division -------> A: Division of classes and objects B: Division of interfaces and Implementations
4. Expansion Mechanism -------->: A: constructor B: labeled C: Constraint