[Skip Navigation] [CSUSB] / [CNS] / [CSE] / [R J Botting] / [Samples] / uml
[Index] [Contents] [Source Text] [About] [Notation] [Copyright] [Comment/Contact] [Search ]
Thu Jan 26 15:43:12 PST 2012

Opening the PDF files on this page may require you to download Adobe Reader or an equivalent viewer (GhostScript).

Contents


    The UML -- The Unified Modelling Language

      Warning

      These pages are being updated to reflect the new version of the Unified Modeling Language: UML2.0.

      Definition

      The Unified Modeling Language -- -- --(UML)
      UMLlogo was created by the Three_Amigos of the Rational Corporation. It is intended to be a common shared language used in medium to large scale software projects. CORBA has adopted it as a common way to diagram objects, classes, etc. The Object Management Group(OMG) issues standard and is now up to version 2.0 which links it to their metadata standard MOF and its XML incarnation XMI. Many software companies support the UML and several CASE tools use it. Rational has a particular CASE tool called Rational Rose.

      The UML has become part of the curriculum in Computer Science at CSUSB during the ROOT project.

      As the UML has evolved people have developed ways to adapt it to particular purposes. For example there is a way to document that data is presented as a web page on a server and another to show that it is held in a table in a relational database. These rules a collected in to Profiles.

      There are more than a dozen tools [ http://modeling-languages.com/list-of-executable-uml-tools/ ] that execute UML models.

      Beginners Start Here

        Why Use the UML

        If you become familiar with a way to draw pictures of your ideas you will find that you will be able to think of more ideas and also to work out the consequences of your decisions. The UML is such a graphic language. It will probably become a popular and standardized way of analysing problems and designing solutions using objects. As a widely used standard the UML is becoming valuable in the job market.

        The UML is an important skill to survive the Computer Science degrees here.

        Here [ uml0.html ] is a simple overview of all the diagrams and when to use them.

        How to Draw Pictures of a Static Structure

        The heart of an object oriented program are the types of objects and the links between the objects. Here [ uml1.html ] are some notes on how to draw diagrams of simple C++ structures and classes. See [ uml1b.html ] for the more advanced C++ ideas (pointers, friends, inheritance for example). See [ cs320wuml.html ] to see how the UML can be used to describe the structures and semantics of programming language.

        How to Draw Pictures of How things Change

        The development of object-oriented software starts and ends with the study of how the system and its parts work together to help the user: [ uml2.html ]

        Disclaimer

        These notes are a very short and incomplete summary of the UML. The Rational UML Resource Pages (IBM) should be consulted for definitive examples and definitions. The OMG page has more useful and standard information on the more advanced ways of using UML. There is a list of WWW resources below [ See Also ]

        This set of notes leaves out several parts of the UML. They do not cover the notations needed for industrial size problems:

      . . . . . . . . . ( end of section Beginners Start Here) <<Contents | End>>

      Advanced Ideas

      See [ uml4.html ] for notes on polymorphism, patterns and processes. See the Object Constraint Language [ ocl.html ] to find out how to document the properties of things shown in diagrams.

      Quick Reference

      Here is a quick list of diagram types in the UML with links to graphic images that are examples of that diagram.
      1. General Purpose Concepts
      2. Use-Case Diagram
      3. Class Diagram [ uml.coll0.gif ] [ uml.coll1.jpg ] [ uml4.jpg ]
      4. Object diagrams [ 20050502objects.gif ]
      5. Package diagrams [ 20050502packages.gif ]
      6. State-Transition Diagrams [ uml2.html ]
      7. Interaction Diagrams [ uml2.html ]
      8. Component Diagrams [ 20050502lollipop.gif ]
      9. Deployment Diagrams

      Go to [ See Also ] for more information.

      UML Glossary

        UML stands for the Unified Modelling Language

        Note. In this glossary a definition is written like this

                 defined_term::=what_the_term_means.
        or
                 defined_term::context=what_the_term_means.
        When there are several alternative meanings they are separated by a vertical bar symbol: "|" read as "or". This is an informal extension of the notation John Backus and Pete Naur developed in 1960. [ glossary.html#BNF ] and [ comp.text.Meta.html#BNF ]

        A B

      1. AKO::="A Kind Of" -- object-oriented jargon for relation between general and particular.
      2. APO::="A Part Of" -- object-oriented jargon for relations between pats and wholes, compare with AKO.

      3. abstract::constraint=indicates that a class defines an abstraction so that no objects of this type exist except as objects of the specialized subtypes of this type. You can have pointers or references to abstract classes but you can not have any objects or variables of an abstract type. The pointers always refer to objects in a more specific concrete classes. [ uml.shape.gif ] [ uml.find.gif ]
         		{ abstract }
      4. abstract_data_type::=a collection of data with invisible attributes (the data) that is manipulated only by operations and so hides its attributes behind an interface.
      5. abstraction::=indicates that something is left out of a description or definition.

      6. actor::=an entity that starts scenarios and gets results from them. An actor has an iconic stick-figure form but is actually a class or type with the <<actor>> sterotype. [ uml.usecases.gif ]
      7. actors::=plural of actor.

      8. actual_parameter::=a value supplied when generating a particular version of a parameterized class or package. Actual parameters are listed inside diamond brackets like this <for,example>.

      9. aggregation::=a way that one class can refer to another class without having possession of it + a weak form of 'has-a' / APO link + if the whole object is an aggregation then deleting it does not effect the existence of the aggregated part. This relationship is shown by an open diamond at one end of a link. The other end may have an arrow head indicating the link can be navigated in one direction only. Note: as a rule you can leave out the open diamond without changing the meaning of class diagram.

      10. application_domain::noun=a collection of more or less similar solutions.

      11. association::=A kind of relationship or link between classes. Associations are further documented by stereotypes + roles + multiplicities + constraints + descriptive names + aggregation indicators + navigability indicators. [ uml.coll0.gif ] [ uml.coll1.jpg ] [ uml.game.gif ] [ uml.association.gif ] [ uml.link.gif ]

      12. attributes::=plural of attribute.
      13. attribute::=a named value that an object or class is responsible for maintaining. [ uml1.gif ]

        C

      14. class::=a part of a UML class_diagram indicating a collection of objects with similar responsibilities and/or behaviors. It can be shown as a box with a name in it or as a box with a name, attributes and operations. [ uml1.gif ] [ uml3.gif ] [ uml.game.gif ] [ clock2.gif ]

      15. classes::=plural of class.

      16. class_diagram::=a diagram showing classes and the associations between them. [ uml3.gif ] [ uml.coll0.gif ] [ uml.coll1.jpg ] [ uml4.jpg ]

      17. class_utility::=A class with only static attributes and static functions, -- for example a math library. [ umlutility.gif ] [ umlutility.mdl ]

        collaboration_diagram=a description of the collaborations between objects as they fulfil a usecase. [ uml.collab.gif ]

      18. collaboration::=an interaction between one object or class with another object or class. Typically the first object or class invokes an operation of the other or accesses an attribute.
      19. collaborations::=plural of collaboration.

      20. communicating::=the process of sending and receiving data through a communication_association linking an actor and an usecase.
      21. communication_association::an association or link in a usecase_diagram connecting an actor to a usecase. [ uml.usecases.gif ]

      22. component::class=A component is part of the run time structure of the software that can be "unplugged" and replaced by another similar component.

      23. composition::= a strong form of the 'has_a' or APO relation so that deleting the whole automatically removes the parts as well. Composition fits when objects of one class are made up of parts that are objects of of other classes, for example when they are implemented using fields in structures, items in records, columns in a data base, or pieces of a document. However, in some cases, the responsibility for keeping an object alive changes during that objects life, and so that objects class would be shown as being parts of several different compositions. [ clock2.gif ] [ uml.period.gif ] [ uml.link.gif ]

      24. concrete::=the opposite of abstract - a concrete class is defined in enough detail so that objects can be constructed for it.

      25. constraint::=A logical formula or informal text stating something that must be true and written inside curly braces | one of a small number of words indicating a logical constraint - for example "complete" or frozen. [ uml.gen.gif ] [ uml.dynamic.gif ]
      26. constraints::=plural of constraint.

      27. constructor::stereotype=indicates that an operation creates a new object of its class. Notes. In UML the initial values of attributes can be indicated in the specification of a class and so constructors are optional. In many OO language like C++ and Java default attribute values are not permitted and so constructors are effectively mandatory. Also notice that a constructor should not be shown as returning any type of object.

        D E

      28. destructor::stereotype=indicates that an operator deletes an object of its class. Note a destructor is a C++ idea where its name is always the name of the class prefixed with a tilde symbol.

      29. dependencies::=plural of dependency.
      30. dependency::=a relationship between parts of an UML model drawn as a dashed line with an arrow head that indicates that if one thing changes then the change may effect the other thing. Often one thing uses the other thing(usage). [ uml.gen.gif ] [ usage.gif ]

      31. domain::= problem_domain | application_domain.

      32. dynamic::stereotype=a generalization can be described as dynamic if it possible for an object to change its classification during its life. This is the opposite of the normal static form of generalization. Also see frozen. [ uml.dynamic.gif ]

      33. end::=each association has 2 ends and associated with each end is ( a class, a role the association plays in the class at the other end, a multiplicity).

        F G H

      34. formal_parameter::=a parameter that is used in a parameterized definition in place of an actual_parameter that can be supplied later.

      35. frozen::=a property of an end of an association that no links are (added|deleted|moved) from an object at the frozen end.

      36. generalization::=relationship (is_a ) between a specialized class and a more general class where objects of the more specialized class ( the subtype) are automatically also instances of the more general type. It is typically easier to implement static generalizations in C++ by using inheritance than to implement dynamic forms. Dynamic generalizations need patterns developed by the GoF [ uml.gif ] [ uml.gen2.gif ] [ uml.gender.gif ] [ uml.shape.gif ] [ uml.dynamic.gif ]

        I J K

      37. icon::= a symbol that appears on a computer screen that may manipulated using a mous or other pointing device.
      38. icons::=plural of icon.

      39. interface::stereotype=indicates a set of operations that may be defined by one or more classes and used by one or more classes. An interface is an abstraction with no implementation and no attributes. [ uml.interface.gif ] [ uml.client.gif ]
      40. interfaces::=plural of interface.

      41. key::=an attribute or set of attributes of a class that uniquely identify a particular instance of the class.

        L M

      42. link::=a line connecting two boxes or other icons. Often represents an association.

      43. mdl::extension="Ratoonal Rose Models in WinDOS systesm have extension .mdl".

      44. MOF::="Meta Object Facility", CORBA interface describing a UML model, also see XMI.

      45. multiplicities::=plural of multiplicity.
      46. multiplicity::=numbers or sets of numbers (using a comma or range) placed at an end of an association indicating how many object of the closest type correspond thru the link to a single item at the other end. If omittedd it means: an unknown number of. [ uml.period.gif ] [ uml.game.gif ] [ uml.coll1.jpg ] Note. Links that have many-to-one multiplicities are nearly always simpler to implement and easier to understand than those with muliplicities other than one at both ends.

        N O

      47. navigable::=an association that can be navigated in both directions. Note. if an association is not navigable it is simpler to implement it because storing an identifier of an object allows it to be found.
      48. navigate::verb=to gain access to a object by following an association linking one object to the other.
      49. navigated::=past participle of navigate..

      50. note::=an informal remark linked to a part of a UML diagram. The link is a dotted line and the remark is in a rectangular box with the corner folded over. Looks a little like a stereotype and a constraint. [ uml.gen.gif ]

      51. objects::=plural of object.
      52. object::=following
        1. In analysis, an object is an instance of a class in the problem_domain.
        2. In design, an object is something with an unique identity that encapsulates some know-how (operations) and some values(attibutes).
        3. In code, an object is a piece of storage plus some sub-programs that have privileged access to that storage. [ glossary.html#object ]

      53. operations::=things that an object in a class knows how to do, in UML these are placed in the lowest compartment in a three compartment box. [ uml1.gif ]

        P Q

      54. package::=an icon in UML that looks like a folder and refers to another UML diagram that either exists or may be in the process of creation. A package replace a collection of things by a single thing. Packages are about the compile time organization of a piece of software. [ uml.gen.gif ]
      55. packages::=plural of package.

      56. parameter::=actual_parameter | formal_parameter, In mathematics this is a "constant variable".
      57. parameterized::=a class or package in UML can be given a parameter and then for each possible value of the parameters a special version of the class or package is generated. Compare with an Ada generic and a C++ template. [ uml.template.gif ] [ uml.find.gif ]

      58. patterns::= See http://www.csci.csusb.edu/dick/samples/methods.html#patterns.
      59. pattern::patterns=a recurring problem which involves compromising between several forces and which has a preffered and documented solution. See GoF.

      60. pointer::=a technique for implementing aggregation and linked data structures where an attribute of one object stores the physical address of the other object. Compare key and see navigable. [ uml.link.gif ]

      61. problem_domain::=a collection of more or less similar problems selected for practical or theoretical reasons.

        R S

      62. result::=the end point of a scenario.
      63. results::=the end points of a set of scenarios.

      64. roles::=plural of role.
      65. role::=a word or phrase written where a link meets an box indicating the part played by the class in the relationship indicated by the link. See rolename. For example a link from Adult to Child indicating parenthood might have parent at the Adult end and child at the other. When the role is the same as the class but with lower case initial letters it can be left out.
      66. rolename::=A name string near the end of the link indicating the role played by the class in the association attached to end of the path near the rolename.

      67. scenario::=A description of how a particular actor achieves a tangible result.
      68. scenarios::=plural of scenario.

      69. sequence::diagram=a diagram showing the sequence of messages passed between objects to achieve a given usecase. [ uml.seq.gif ]

      70. state::=a particular set of values for the attributes of an object.
      71. statechart::diagram=a way of documenting the states of an object and the changes that can occur to it during its life.
      72. state_diagram::=statechart. [ uml.states.gif ]

      73. static::=something that is permanent and can't change. In UML generalizations are normally static but there is a stereotype that allows a classification to change. See frozen.

      74. stereotype::UML=a special note looking like this: <<example>> that adds to the meaning of a part of a UML diagram. [ uml.gen.gif ]

      75. subtype::=One class is a subtype of another class if all the operations of the second class of object also apply to objects of the first type - perhaps in a different way. Subtypes shown by the generalization arrow that has an open arrow head.

        T U V

      76. template::= C++ jargon for the UML parameterized class. [ uml.template.gif ] [ uml.find.gif ]

      77. usage::=a special kind of dependency where one piece of a program makes use of another part of the program indicated by a dotted arrow from user to used. [ usage.gif ]

      78. usecase::=a set of scenarios sharing a class of similar actors achieving similar tangible results that is documented by a natural language text and pictured as an oval icon. [ uml.toast.gif ] [ uml.usecases.gif ]

      79. usecase_diagram::=a UML diagram that shows one or actors communicating with one or more usecases.

      80. usecases::=plural of usecase. [ uml.usecases.gif ]

      81. utility::=See class_utility.

      82. visibility::=an indicator(plus, minus, hash) indicating whether a rolename | attribute | operation can be accessed from outside a class. Rational Rose uses some neat little icons involving keys and locks to indicate the degree of visibility of attributes, operations, and roles. [ uml1.html#Privacy ] [ uml.link.gif ]

        W X Y Z

      83. XMI::=" A standard way to present MOF meta-data modeling objects using XML". //ftp.pmg.org/pub/docs/ad/98-1005.pdf

      84. XML::= See http://www.csci.csusb.edu/dick/samples/xml.html

        Abbreviations

      85. Three_amigos::abbreviation={ Grady Booch, Ivar Jacobsen, James Rumbaugh }. (See [ JokeUML in methods ] and [ Unified in methods ] )

      86. GoF::abbreviation=The_Gang_of_Four.
      87. The_Gang_of_Four::abbreviation={Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides}, Four OO thinkers who wrote an influential book of design patterns.

      88. OO::abbreviation=Object-Oriented.

      89. OMT::method=The Object Modelling Method developed by Rumbaugh et al that forms one of UML's parents.

      90. TBA::="To Be Announced", indicating work that needs completing.

        Parts of Speech

        In this glossary I sometimes indicate the syntactic class of a word used in English as well as UML.
      91. adjective::=qualifies a noun by adding properties to it.
      92. adverb::=qualifies a verb by adding properties to it.
      93. noun::=names something.
      94. verb::=indicates an action or relationship.

        Symbols

      95. tilde::= "~", indicates a destructor in C++, and package scope in the UML.
      96. plus::="+", indicates public visibility for an operation or attribute.
      97. minus::="-", indicates private visibility for an operation or attribute.
      98. hash::="#", indicates protected visibility for an operation or attribute.
      99. range::="..", indicates a set of numbers lying between to values.
      100. colon::=":", used to separate a name of a parameter or attribute or operation from a class.
      101. comma::=","used to separate items in a set.

      . . . . . . . . . ( end of section UML Glossary) <<Contents | End>>

      See Also

      YouTube has some video tutorials [ watch?v=j_0fKDSJr1U ] for example. Take them with a grain of salt.

      My glossary: [ uml.glossary.html ] (above).


      (one_page_example): a one page example [ UML_Tools.html ]


      (databases): Links [ Tp180.pdf ] (PDF)


      (OCL): Object Constraint Language [ ocl.html ]

    1. OMG::= See http://www.omg.org/.

    2. OMG_UML2_specification::= See http://www.omg.org/technology/documents/formal/uml.htm.

    3. Profiles::= See http://www.rational.com/uml/resources/documentation/index.jsp, Rational's UML Profiles (web, database, ...).

    4. ROOT::= See http://www.csci.csusb.edu/rootproj/, This project incorporated object-oriented technology into the core of the BS degee in computer Science at CSUSB.


      (UML Jokes): [ http://www.umljokes.com/ ]

    5. Courses that use the UML
      1. CS201::= See http://www.csci.csusb.edu/dick/cs201.
      2. CS202::= See http://www.csci.csusb.edu/dick/cs202.
      3. CS320::= See http://www.csci.csusb.edu/dick/cs320, [ cs320wuml.html ]
      4. CS330::= See http://www.csci.csusb.edu/cs330.
      5. CS372::= See http://www.csci.csusb.edu/cs372.
      6. CS375::= See http://www.csci.csusb.edu/cs375.

    6. CORBA::="Common Object Request Broker Association" a consortium of companies working to make object technology accessible accross many platforms and types of systems.

      The new and improved UML Dictionary

    7. UMLDictionary::= See http://softdocwiz.com/UML.htm and Master Index: [ UMLIndex.htm ] at [ http://softdocwiz.com ]

    8. Software Development Magazine's the UML Design Center:
    9. SDMagazine::= See http://www.sdmagazine.com/uml/.

    10. UML Discussion group on the WWW
    11. UML_discussion::= See http://www.egroups.com/group/uml-teach/.


      (training):

    12. FREE self-assessment quiz on the UML [ http://www.iconixsw.com ] and courses (not free?) [ UMLTraining.html ]

    13. Tools::=following,
      1. Free_Tools::=following,
        1. Graphical Designer [ http://www.advancedsw.com ]
        2. Pragmaticai by PragSoft Corporation [ http://www.pragsoft.com ]
        3. Object Technologie Workbench [ http://www.otw.de ]
        4. OEW demo [ http://www.isg.de ]
        5. Playground [ freegoodies.htm ]
        6. geda.seul.org [ http://ww.geda.seul.org/ ]

        Other:

      2. TRY UML IN GRAPHICAL DESIGNER FOR FREE!(Wed, 29 Jan) [ http://www.advancedsw.com ]
      3. UML 1.0 Case Tool for software Engineering(Wed, 21 May) [ http://www.microgold.com ]

      Online Tutorials: [ http://yukon.genie.uottawa.ca/~lavoie/software/uml/ ]

      [ http://www.csc.calpoly.edu/~dbutler/tutorials/winter96/rose/ ] (Actually uses Booch not UML)

      Simple Web+Data Base Design [ http://www.jepstone.net/papers/web_uml_patterns/ ]

      UML 101 [ intro_rdn.pdf ]

    14. Books::=following,
      • (introbook): UML Distilled: Applying the Standard Object Modeling Language by: Martin Fowler, Kendall Scott part of the Object Technology Series ISBN: 0-201-32563-2 (Search under [ catalogtitle.qry ] )
      • (refbook): UML in a Nutshell (the Cat book) by Sinan Si Alhir, O'Reilly 1998
    15. ROOT::= See http://www.csci.csusb.edu/rootproj/, This project incorporated object-oriented technology into the core of the BS degee in computer Science at CSUSB.

      Complete and up to date information can be found on the Internet by following the World Wide Web links below. UML is defined and maintained by the Three_Amigos at Rational Web site.

    16. Rational::= See http://www.rational.com/. Rational has been taken over by IBM.
    17. IBM::="International Business Machines", The Jolly Blue Giant, aka Snow White, Itty Bitty Machines, etc etc.

    18. Rational's UML Resource Center [ index.html ]
      1. Getting Started [ http://www.rational.com/uml/start/ ]
      2. UML 1.1: Unified Modelling Language Documentation [ http://www.rational.com/uml/1.1/ ]
      3. UML 1.1: Notation Guide (LARGE) (Sept 1997) [ http://www.rational.com/uml/1.1/html/ ]

      4. Rational Rose Visual Modeling Tool
      5. Rose::= See http://www.rational.com/products/rose/.

      6. The Wikipedia's Article: [ Unified_Modeling_Language ]

      7. Mailing Lists: OTUG --
      8. OTUG::= See http://www.rational.com/HyperMail/otug/.
      9. feedback::= See http://www.rational.com/HyperMail/uml_feedback/.

    19. A dictionary of UML:
    20. dictionary::= See http://softdocwiz.com/UML.htm.

    21. Comparison of OPEN with UML(Thu, 12 Dec)
    22. OPEN::= See http://www.csse.swin.edu.au/cotar/OPEN/OPEN.html.

    23. FREE UML self-assessment quiz etc
    24. Quiz::= See http://www.iconixsw.com.

    25. Training::= See http://www.iconixsw.com/UMLTraining.html.

    26. Tutorials::= See http://www.csc.calpoly.edu/~dbutler/tutorials/winter96/rose/ (Actually uses Booch not UML)

    . . . . . . . . . ( end of section UML) <<Contents | End>>

  1. TBA::="To BE Announced".

End