+ All Categories
Home > Documents > Luz Quiroga Stim5 Part4 State Sequence Diagrams

Luz Quiroga Stim5 Part4 State Sequence Diagrams

Date post: 29-May-2018
Category:
Upload: agnes-elaarasu
View: 213 times
Download: 0 times
Share this document with a friend

of 15

Transcript
  • 8/9/2019 Luz Quiroga Stim5 Part4 State Sequence Diagrams

    1/15

    State diagrams Interaction diagrams

    Sequence diagrams

    Collaboration diagrams

    Object orientation

    Part 4:Dynamic Modeling

  • 8/9/2019 Luz Quiroga Stim5 Part4 State Sequence Diagrams

    2/15

    Stimulate 2005

    Instructor: Luz M. Quiroga

    [email protected]

    University of Hawaii

    Information and Computer Science / Library

    and information Science

    POST 314b; 808-956-9988

    System Analysis and Design (SA&D)

    Object Oriented modeling

    Part 4: Dynamic modeling: state and interaction diagrams

  • 8/9/2019 Luz Quiroga Stim5 Part4 State Sequence Diagrams

    3/15

    State diagrams STATE: a condition during the life of an

    object during which it

    Satisfies some conditions

    Performs some actions

    Waits for some events

    State transitions

  • 8/9/2019 Luz Quiroga Stim5 Part4 State Sequence Diagrams

    4/15

    State diagrams State: rectangle with round corners

    Event: something that takes at a certain point of time.

    It triggers a state transition

    It spans a period of time

    Initial (solid, filled circle) and final state (bulls eye: solid, filledcircle surrounded by another circle )

    Transition depicted as solid arrow from source state to target state

    Transition: labeled with name of the event, parameters of the

    event, [guard condition] and /action expression

    Examples: registering to a class, dropping from a class, gettingmarried, being hired, etc.

  • 8/9/2019 Luz Quiroga Stim5 Part4 State Sequence Diagrams

    5/15

    State diagram for the student object

    States, transitions, events

  • 8/9/2019 Luz Quiroga Stim5 Part4 State Sequence Diagrams

    6/15

    Sequence diagrams Depicts interaction among objects during a certainperiod of time

    One diagram for each use case: e.g Class registration

    Scenarios

    Messages: e.g checkIfopen Synchronous: needs answer

    Simple: transfering the control

    Messages have arguments

    Persistent objects Activation: time period during which the object

    performs an operation

  • 8/9/2019 Luz Quiroga Stim5 Part4 State Sequence Diagrams

    7/15

    Sequence diagram for a class

    registration scenario with prerequisites

    Objects, lineline, activation, messages

  • 8/9/2019 Luz Quiroga Stim5 Part4 State Sequence Diagrams

    8/15

    Dynamic Modeling:

    State Diagrams State

    A condition during the life of an object during whichit satisfies some conditions, performs some actions or

    waits for some events Shown as a rectangle with rounded corners

    State Transition The changes in the attribute of an object or in the

    links an object has with other objects

    Shown as a solid arrow

    Diagrammed with a guard condition and action

    Event Something that takes place at a certain point in time

    A.8A.8

  • 8/9/2019 Luz Quiroga Stim5 Part4 State Sequence Diagrams

    9/15

    A.9A.9

  • 8/9/2019 Luz Quiroga Stim5 Part4 State Sequence Diagrams

    10/15

    Dynamic Modeling:

    Sequence Diagrams Sequence Diagram

    A depiction of the interaction among objects during

    certain periods of time

    Activation

    The time period during which an object performs an

    operation

    Messages

    Means by which objects communicate with each

    other

    10.1010.10

  • 8/9/2019 Luz Quiroga Stim5 Part4 State Sequence Diagrams

    11/15

    Dynamic Modeling:

    Sequence Diagrams Synchronous Message

    A type of message in which the caller has to

    wait for the receiving object to finish executingthe called operation before it can resumeexecution itself

    Simple Message

    A message that transfers control from thesender to the recipient without describing thedetails of the communication

    10.1110.11

  • 8/9/2019 Luz Quiroga Stim5 Part4 State Sequence Diagrams

    12/15

    10.1210.12

  • 8/9/2019 Luz Quiroga Stim5 Part4 State Sequence Diagrams

    13/15

    OO paradigm:Key terms

    Unified Modeling Language (UML)

    Associations, relationships

    Concepts

    Object

    Object class

    Use case

    Class diagram

    Event

    Operation

    Sequence diagram

    State

    State transition

  • 8/9/2019 Luz Quiroga Stim5 Part4 State Sequence Diagrams

    14/15

    OO scope

    Source: Sinha

    OO Is not LIMITED to Information System

  • 8/9/2019 Luz Quiroga Stim5 Part4 State Sequence Diagrams

    15/15

    Source: Martin


Recommended