Friday, December 22, 2017

Unified Model Language














UML DIAGRAMS 

INHERITANCE



























ASSOCIATION













IAGGREGATION [WEAK]
























































Classes are interrelated to each other in specific ways. In particular, relationships in class diagrams include different types of logical connections. The following are such types of logical connections that are possible in UML:















There are 15 major type of UML Diagrams

UML Diagrams




UML 2.5 Structure Diagrams

Structure diagrams show static structure of the system and its parts on different abstraction and implementation levels and how those parts are related to each other. The elements in a structure diagram represent the meaningful concepts of a system, and may include abstract, real world and implementation concepts.
Structure diagrams are not utilizing time related concepts, do not show the details of dynamic behavior. However, they may show relationships to the behaviors of the classifiers exhibited in the structure diagrams.
DiagramPurposeElements
Class diagramShows structure of the designed system, subsystem or component as related classes and interfaces, with their features, constraints and relationships - associations, generalizations, dependencies, etc.classinterfacefeature,constraintassociation,generalizationdependency.
Object diagramInstance level class diagram which shows instance specifications of classes and interfaces (objects), slots with value specifications, and links (instances of association).
Object diagram was defined in now obsolete UML 1.4.2 Specification as "a graph of instances, including objects and data values. A static object diagram is an instance of a class diagram; it shows a snapshot of the detailed state of a system at a point in time." It also stated that object diagram is "a class diagram with objects and no classes."
UML 2.5 specification simply provides no definition of object diagram.
instance specificationobject,slotlink.
Package diagramShows packages and relationships between the packages.packagepackageable element,dependencyelement import,package importpackage merge.
Model diagramUML auxiliary structure diagram which shows some abstraction or specific view of a system, to describe architectural, logical or behavioral aspects of the system. It could show, for example, architecture of a multi-layered (aka multi-tiered) application - see multi-layered application model.modelpackagepackageable elementdependency.
Composite structure diagramDiagram could be used to show:
Internal structure diagramShows internal structure of a classifier - a decomposition of the classifier into its properties, parts and relationships.structured classpartport,connectorusage.
Collaboration use diagramShows objects in a system cooperating with each other to produce some behavior of the system.collaborationconnectorpart,dependency.
Component diagramShows components and dependencies between them. This type of diagrams is used forComponent-Based Development (CBD), to describe systems with Service-Oriented Architecture (SOA).componentinterface,provided interfacerequired interfaceclassport,connectorartifactcomponent realizationusage.
Manifestation diagramWhile component diagrams show components and relationships between components and classifiers, and deployment diagrams - deployments of artifacts to deployment targets, some missing intermediate diagram is manifestation diagram to be used to show manifestation(implementation) of components by artifacts and internal structure of artifacts.
Because manifestation diagrams are not defined by UML 2.5 specification, manifestation of components by artifacts could be shown using either component diagrams or deployment diagrams.
manifestationcomponent,artifact.
Deployment diagramShows architecture of the system as deployment (distribution) of software artifacts to deployment targets.
Note, that components were directly deployed to nodes in UML 1.x deployment diagrams. In UML 2.x artifacts are deployed to nodes, and artifacts could manifest (implement) components. Components are deployed to nodes indirectly through artifacts.
Specification level deployment diagram (also called type level) shows some overview ofdeployment of artifacts to deployment targets, without referencing specific instances of artifacts or nodes.
Instance level deployment diagram shows deployment of instances of artifacts to specific instances of deployment targets. It could be used for example to show differences in deployments to development, staging or production environments with the names/ids of specific build or deployment servers or devices.
deploymentartifact,deployment targetnode,deviceexecution environment,communication path,deployment specification,
Network architecture diagramDeployment diagrams could be used to show logical or physical network architecture of the system. This kind of deployment diagrams - not formally defined in UML 2.5 - could be called network architecture diagrams.nodeswitchrouterload balancerfirewall,communication pathnetwork segmentbackbone.
Profile diagramAuxiliary UML diagram which allows to define custom stereotypes, tagged values, and constraints as a lightweight extension mechanism to the UML standard. Profiles allow to adapt the UML metamodel for different
  • platforms (such as J2EE or .NET), or
  • domains (such as real-time or business process modeling).
Profile diagrams were first introduced in UML 2.0.
profilemetaclassstereotype,extensionreferenceprofile application.

UML 2.5 Behavior Diagrams

Behavior diagrams show the dynamic behavior of the objects in a system, which can be described as a series of changes to the system over time.
DiagramPurposeElements
Use case diagramDescribes a set of actions (use cases) that some system or systems (subject) should or can perform in collaboration with one or more external users of the system (actors) to provide some observable and valuable results to the actors or other stakeholders of the system(s).
Note, that UML 2.4.1 specification (see "16.4 Diagrams") stated that Use Case Diagrams are a specialization of Class Diagrams such that the classifiers shown are restricted to being either Actors or Use Cases. Class diagrams are structure diagrams.
use caseactorsubjectextend,includeassociation.
Information flow diagramShows exchange of information between system entities at some high levels of abstraction. Information flows may be useful to describe circulation of information through a system by representing aspects of models not yet fully specified or with less details.information flowinformation itemactorclass.
Activity diagramShows sequence and conditions for coordinating lower-level behaviors, rather than which classifiers own those behaviors. These are commonly called control flow and object flowmodels.activitypartitionaction,objectcontrolactivity edge.
State machine diagramUsed for modeling discrete behavior through finite state transitions. In addition to expressing the behavior of a part of the system, state machines can also be used to express the usage protocolof part of a system. These two kinds of state machines are referred to as behavioral state machines and protocol state machines.
Behavioral state machine diagramShows discrete behavior of a part of designed system through finite state transitions.behavioral statebehavioral transitionpseudostate.
Protocol state machine diagramShows usage protocol or a lifecycle of some classifier, e.g. which operations of the classifier may be called in each state of the classifier, under which specific conditions, and satisfying some optional postconditions after the classifier transitions to a target state.protocol stateprotocol transitionpseudostate.
Interaction diagramInteraction diagrams include several different types of diagrams:
Sequence diagramMost common kind of interaction diagrams which focuses on the message interchange betweenlifelines (objects).lifelineexecution specificationmessage,combined fragment,interaction usestate invariant,destruction occurrence.
Communication diagram (a.k.a. Collaboration diagramin UML 1.x)Focuses on the interaction between lifelines where the architecture of the internal structure and how this corresponds with the message passing is central. The sequencing of messages is given through a sequence numbering scheme.lifelinemessage.
Timing diagramShows interactions when a primary purpose of the diagram is to reason about time. Timing diagrams focus on conditions changing within and among lifelines along a linear time axis.lifelinestate or condition timelinedestruction event,duration constrainttime constraint.
Interaction overview diagramDefines interactions through a variant of activity diagrams in a way that promotes overview of the control flow. Interaction overview diagrams focus on the overview of the flow of control where the nodes are interactions or interaction uses. The lifelines and the messages do not appear at this overview level.initial nodeflow final node,activity final nodedecision nodemerge nodefork node,join nodeinteraction,interaction useduration constrainttime constraint.


No comments:

Post a Comment