Shao-Hung

Embed Size (px)

Citation preview

  • 7/30/2019 Shao-Hung

    1/13

    Whats new in UML 2.0?

    Presented by Shao-Hung Chen

  • 7/30/2019 Shao-Hung

    2/13

    Overview

    Activity Diagram Grouping

    Subactivity Diagram

    Expansion Region

    Multi-Dimension Swimlane Exception

    Class Diagram

    UML 2.0 contributes to 577.

    References

    Q&A?

  • 7/30/2019 Shao-Hung

    3/13

    Activity Diagram

    Activity becomes Action. E.g. Scan Video.

    Activity compose of a sequence of

    actions.

    An activity diagram shows the

    actions that make up an activity

    now.

    Action has local precondition and

    local postcondition.

    Action can have multiple incoming

    flows.

  • 7/30/2019 Shao-Hung

    4/13

    Activity Diagram (Cont)

    Action can start as a result of thoseincoming flows or receiving a signal.

    New special signal, Time Signal.

    New form of control flow notation is

    Flow Final. Final addition is connector.

  • 7/30/2019 Shao-Hung

    5/13

    Grouping

    Subactivity Diagram

    An action can be decomposed into a sequence of other actions. That

    means the action is implemented by a subactivity.

    Input and output parameters can be added to activity diagram by placing

    the input and output objects on the edge of the activity node.

  • 7/30/2019 Shao-Hung

    6/13

    Grouping (Cont)

    Expansion Regions

    It has an explicit input that is a collection of values.

    It is executed once for each element in the input collection.

    Input and output collections are in same size, value type.

    Three different execution mode: parallel, iterative and stream.

  • 7/30/2019 Shao-Hung

    7/13

    Grouping (Cont)

    Multi-Dimension Swimlanes

    It uses activity partitions to solve multi-dimension presentation.

    Because partitions can be nested, more than two dimensions can be

    presented.

  • 7/30/2019 Shao-Hung

    8/13

    Exception

    Two phases forexception

    processing: try

    and catch.

    Try block =>

    Protected Node.

    Catch block =>

    Handler body.

  • 7/30/2019 Shao-Hung

    9/13

    Class Diagram

    Attributes can be presented by Compartmentalized Strings orAssociations.

    Attributes are defined with the following syntax to allow thisequivalence: [visibility][/]name[:type][multiplicity][=default][{property-string}]

    Visibility: (~) Package. Slash (/): Derived attribute.

  • 7/30/2019 Shao-Hung

    10/13

    Class Diagram (Cont)

    An open arrow occurs at the end of an association, navigationmay occur from the source to the target.

    If an X appears at the end of the association, navigation may

    not occur.

    If both do not occur, it allows navigation in both directions.

  • 7/30/2019 Shao-Hung

    11/13

    UML 2.0 contributes to 577.

    Actions of Activity diagram help us break down each activityinto more detailed level.

    Multi-Dimension partitions of Activity Diagram make us to

    specify that who is taking which actions.

  • 7/30/2019 Shao-Hung

    12/13

    References

    [1] Granville Miller. Whats New in UML 2.0? Part one in three part series,

    2003. Available at: http://bdn.borland.com/article/0,1410,31881,00.html

    [2] Bran Selic. Tutorial: An Overview of UML 2.0, 2004.

    [3] Bran Selic. Tutorial H2: An Overview of UML 2.0, 2003.

    [4] Morgan Bjorkander and Cris Kobryn. Architecting Systems with UML

    2.0. IEEE Computer Security, 2003. [5] Harald Storrle. Semantics of Control-Flow in UML 2.0 Activities, 2004.

    [6] Harald Storrle. Semantics of Interaction in UML 2.0, 2003.

    [7] Kendall Scott. Fast Track UML 2.0. Apress, 2004. ISBN:1-5905-9320-

    0.

    http://bdn.borland.com/article/0,1410,31881,00.htmlhttp://bdn.borland.com/article/0,1410,31881,00.html
  • 7/30/2019 Shao-Hung

    13/13

    Q & A?

    Any questions?