Get Started. It's Free
or sign up with your email address
UML by Mind Map: UML

1. Models

1.1. Objects

1.1.1. Attributes (state) An object's state depends on the object's current condition or activity An object may be in a "validating" state. When an object is in a validating state, it performs an activity without waiting for an outside event to trigger a transition. The result of that activity determines the object's subsequent state.

1.1.2. Methods (behavior)

1.2. Messages

2. About this map

2.1. Content authored by Randy Miller

2.2. Published in 2003 as "Practical UML: A Hands-On Introduction for Developers" by the Ebarcadero Developer Network

2.3. If you appreciate the content, please purchase the UML modeling tools from Embarcadero Technologies: Delphi, JBuilder, and RAD Studio, for all your UML modeling needs.

2.4. See also

3. A completely specified application will consist of nine types of UML Modeling Diagrams: (Ultra-Competent Officers Sell Customers Some All-Consuming Desire)

3.1. Use Case Diagrams

3.1.1. A use-case diagram is a collection of actors, use-cases, and the communications between them. Actors Actors are people or other users of the system In a use-case diagram, actors are represented by stick figures. A use case is a summary of scenarios for a single task or goal A scenario is an example of what happens when someone uses the system. In a UML use-case diagram, a use-case is depicted as an oval. The connection between an actor and a use case is called a "communication association" or just a communication.

3.1.2. A UML use-case diagram describes what the system does from perspective of outside observer

3.1.3. The emphasis in a UML use-case diagram is on what the system does, rather than how it does it.

3.1.4. Helpfulness UML use-case diagrams are helpful in determining features (a.k.a. requirements) of an application. UML use-case diagrams are helpful for communicating with Clients UML use-case diagrams are helpful for generating Test Cases

3.1.5. A UML use-case diagram describes relationships and dependencies between a group of "use cases" and the actors participating in the process.

3.1.6. rules Each use case is related to at least one actor. Each use case has one initiating actor. Each use case leads to a relevant result, i.e. a result with business value.

3.2. Class Diagrams: Classes and the Relationships Between Them

3.2.1. A UML class diagram gives an overview of the system by indicating all its classes and the relations between them.

3.2.2. UML Class diagrams are static, not dynamic.

3.2.3. A UML class diagram displays what interacts, but not what happens when that interaction occurs.

3.2.4. In UML, a class diagram consists of representations of classes, associations, and multiplicities Drawing Classes in UML In UML, classes are notated as a rectangle divided into three vertically-stacked segments. In UML, the names of abstract classes are in italics. In UML, relationships among classes are displayed as connecting links. In UML, the ends of the connecting link may be notated with a role name In UML, a navigation arrow on the connecting link indicates a direction in which the link can be traversed or queried. In UML, relationships can be either associations or generalizations A relationship is said to have a "multiplicity," A multiplicity is a number that indicates the number of instances on one end of the relationship that can be related to one instance on the other end of the link. A multiplicity can be a single number or a range.

3.2.5. In complex class diagrams, classes are grouped into packages All the elements in a UML package are logically related. In UML, a package is represented as a rectangle with a square on the leftmost side of the rectangle's top edge. In UML, a package in drawn with its name in the rectangle In UML, one package is said to depend on another package if changes in the other package could possibly force changes in the one.

3.3. Object Diagrams

3.3.1. A UML object diagram is similar to a class diagram, except that an object diagram displays instances instead of classes.

3.3.2. In UML, the name of an instance and the name of the class, separated by a colon and underlined appears in the rectangle.

3.3.3. UML permits the omission of an instance or class name if the meaning is clear from the diagram.

3.3.4. Utility of UML object diagrams UML object diagrams are useful for explaining small pieces with complicated relationships UML object diagrams are especially good for explaining recursive relationships

3.4. Sequence Diagrams

3.4.1. A sequence diagram shows how objects collaborate

3.4.2. A sequence diagram details how operations are carried out. A UML sequence diagram shows objects and a sequence of message calls they make to other objects. Sequence Diagrams show the message exchange (i.e. method call) between several Objects in a specific time-delimited situation. Sequence Diagrams put special emphasis in the order and the times in which the messages to the objects are sent. A sequence diagram shows what messages are sent, and when. Like a collaboration diagram, a UML sequence diagram is an interaction diagram Sequence diagrams are dynamic, as opposed to class and object diagrams which are static. A UML sequence diagram differs from a collaboration diagram is that it focules on the times at which messages are sent, rather than on the object roles. Sequence diagrams clearly show the time flow of method or function calls between modules sequence diagrams help with complex call stacks just as data model diagrams help with complex database schema

3.4.3. How to draw Sequence diagrams are organized according to time In a UML sequence diagram, lower on the page indicates later in time. In a UML sequence diagram, objects involved in an operation are shown from left to right in the order in which they take part in a message sequence. In a UML sequence diagram, dotted vertical lines called "lifelines" represent the time that an object exists. A lifeline is drawn with an activation bar. The activation bar represents the duration of the execution of a message. In a UML sequence diagram, rightward-facing arrows represent message calls. The arrow leads away from the object that sends the message. The arrow points toward the top of he activation bar of the message receiver Conditions appear in square brackets Iterations are indicated with asterisks.

3.5. Collaboration Diagrams

3.5.1. Comparison of UML collaboration diagrams with UML sequence diagrams. UML collaboration diagrams convey the same information as sequence diagrams. Like UML sequence diagrams, UML collaboration diagrams are also interaction diagrams. Collaboration diagrams differ from sequence diagrams in that they focus on object roles instead of the times that messages are sent.

3.5.2. How to draw a UML collaboration diagram: In a UML collaboration diagram, object roles are drawn as rectangles labeled with the class names, object names, or both separated by a colon. In a UML collaboration model, the links connecting the object roles are messages. Each message in a collaboration diagram has a sequence number. The top-level message is sequence number 1. Messages sent during the same call are at the same level. Messages at the same level have sequence numbers that start with the same prefix and a dot.

3.5.3. UML collaboration diagrams show objects and their relationships, with emphasis on the objects that participate in the message exchange.

3.6. State Diagrams

3.6.1. UML statechart diagrams or "state" diagrams show the possible states of objects. UML statechart diagrams show events and transitions that causes changes in an object's state. Unlike an activity diagram, which shows the flow of activities involved in a single process, a UML statechart diagram, shows either an object undergoing a process, or a process as an object.

3.6.2. How to draw a UML statechart diagram In UML, a state is drawn as a rectangle with ronded corners. In UML, transitions are arrows connecting one state to another. "Events or conditions" that trigger the transition are written next to the arrows. The name of the action that occurs as a result of an "event or condition" is written preceded by a slash. Initial and final states are "dummy" states, represented by small black circles.

3.6.3. All objects have an enumerated set of states. Every object is always in one of its finite set of states. An object's state changes is reaction to one of a finite set of stimili. There are two special states in every object's state set: "start" and "end." The "start" state can never be entered after it is initially left, and the end state is always the final state. The names of states usually end in "ing," or may be "stopped" or "ready." listening for connection validating login data getting password

3.7. Activity Diagrams

3.7.1. A UML activity diagram shows how activities involved in a single process are dependent on one another. Unlike a statechart diagram, which shows either an object undergoing a process or a process as an object, a UML activity diagram shows the flow of activities involved in a single process. A UML activity diagram is little more than a glorified flowchart.

3.7.2. Drawing a UML activity diagram In a UML activity diagram, activities are drawn as rounded rectangles. emerging from each activity rectangle is a single transition that leads to the next activity. A single transition may branch into two or more exclusive transitions. A transition may fork into one or more parallel activities. UML Activity Diagrams are divided into "swim lanes." Swimlanes determine which object is responsible for which activity

3.7.3. One Activity is one state in the system with internal activity and, at least, one outgoing transition. Activities can also have more than one outgoing transition if they have different conditions. Activities can form hierarchies An Activity can be composed of several “detail” Activities. Where an Activity is composed of several “detail” Activities, the incoming and outgoing transitions should match the incoming and outgoing transitions of the detail diagram

3.8. Component Diagrams

3.8.1. A UML component diagram is a physical analog of a class diagram.

3.8.2. A component is a code module.

3.8.3. A UML component diagram shows high-level programming components.

3.9. Deployment Diagrams

3.9.1. A UML deployment diagram show the physical configuration of hardware and software.

3.9.2. The physical hardware is made up of "nodes."

3.9.3. Each component code module belongs on a node.

3.9.4. A UML deployment diagram shows instances of the components and their relationships

4. Alternative Approaches

4.1. Some have contrasted a strict use of UML with the so-called "Agile" development methodology.

4.2. Some agile practitioners, incorporate some UML, such as sequence diagrams, into their design methods. cite needed.