Professional Documents
Culture Documents
Lecture # 4
Interaction
Diagrams
stereotypes Example #2
Example #1
Traceability
Procedure
Example #2
Interaction
Diagrams I
Interaction
Diagrams
Communication
Diagrams
information space
stereotypes
Interaction Diagrams Example #1
Traceability
Procedure
Example #2
Interaction
Interaction Diagrams Diagrams I
Interaction
Diagrams
I Interaction diagrams illustrate how objects interact via Communication
messages. Diagrams
information space
I Used for dynamic object modeling. stereotypes
Example #1
I Two common types: Traceability
I Communication Diagrams Procedure
Example #2
I illustrate object interactions in a graph or network
format; objects can be placed anywhere on the
diagram.
I Sequence Diagrams
I illustrate object interactions in a “fence” format; each
new object is added to the right of the diagram.
Interaction
Interaction Diagrams Diagrams I
Interaction
Diagrams
Communication
I The act of dynamic interaction modeling is incredibly Diagrams
I need to think of
I What messages to send?
I Messages to whom?
I Messages in what order?
Interaction
Notation - Lifeline Boxes Diagrams I
Interaction
I Lifeline boxes represent the participants in the Diagrams
interaction Communication
Diagrams
I Participants are often instances of a class information space
stereotypes
I Below left; lifeline box representing an unnamed Example #1
Traceability
instance of the class “Sale”. Procedure
I Below right; lifeline box representing a named instance Example #2
Interaction
Diagrams
Communication
Diagrams
Diagrams Traceability
Procedure
Example #2
Interaction
Communication Diagrams Diagrams I
I Information space
I what information a system holds, which describes the
Interaction
system’s internal states Diagrams
I what behaviour a system will adopt, which determines Communication
Diagrams
the state transition information space
I what a system presents to the outside world stereotypes
Example #1
I an object in an information space can play one of three Traceability
Interaction
Diagrams
I An ‘Analysis Class’ represents an abstraction of one or Communication
more classes and/or subsystems (Use Cases) in the Diagrams
information space
systems design. stereotypes
I Typically you use two modelling techniques, Example #1
Traceability
communication and sequence diagrams to model Procedure
analysis classes. Example #2
I An analysis class can define attributes (if needed).
I An analysis class will include associations.
I An analysis class will consume operations.
I There are three stereotype classes (boundary, control
& entity).
Interaction
semantics Diagrams I
Interaction
Diagrams
Communication
I Semantics Diagrams
information space
I Entity object models information. It holds information stereotypes
Interaction
Diagrams
Communication
I Pragmatics Diagrams
I Identifying interface objects - functions directly related information space
stereotypes
to actors. Example #1
I Identifying entity objects - information used in a Use Traceability
Procedure
Case and functions of processing information Example #2
I Identifying control object - functions that unite
interface objects and entity objects
I (Carry out the identifications for EVERY use case
defined)
Interaction
boundary classes Diagrams I
Communication
I They clarify and collect information regarding the Diagrams
system). Example #2
classes. stereotypes
Example #1
I Typically they coordinate the movement (parameters) Traceability
Procedure
between boundary and entity classes. Example #2
Interaction
Identifying Analysis Classes Diagrams I
Interaction
Diagrams
Communication
I Examine the models of a Use Case and identify (for a Diagrams
communication diagram): information space
stereotypes
I entity classes by examining the data(information) Example #1
Diagram
Interaction
Diagrams
Communication
Diagrams
information space
stereotypes
Example #1
Traceability
Procedure
Example #2
Interaction
Return Item Use Case in recycling Diagrams I
machine - example
Interaction
Diagrams
Communication
Diagrams
information space
I Identification of boundary, control and entity stereotypes
Interaction
Diagrams
Communication
Diagrams
information space
stereotypes
Example #1
Traceability
Procedure
Example #2
Interaction
Identify entity objects Diagrams I
Interaction
Diagrams
Communication
I Identify entity objects from linguistic description Diagrams
information space
I long term information (for all customer): stereotypes
I deposit values of bottle, can and crate Example #1
Traceability
I short term information (for each individual customer): Procedure
I the total number of items of each type returned by the Example #2
customer,
I the total number of items he returned and the lump
sum that should be paid to him,
I date
Interaction
Entity objects Diagrams I
Interaction
Diagrams
Communication
Diagrams
information space
stereotypes
Example #1
Traceability
Procedure
Example #2
Interaction
Identify control objects Diagrams I
Interaction
Diagrams
Communication
Diagrams
I Identify control objects from linguistic description information space
I There are entity and boundary objects in this use case. stereotypes
Example #1
I Items coming from customer panel need to be Traceability
measured and decision on whether passing the Procedure
machine - example
Interaction
Diagrams
Interaction
Diagrams
Communication
Diagrams
information space
stereotypes
Example #1
Traceability
Procedure
Example #2
Interaction
Put everything together Diagrams I
Interaction
Diagrams
Communication
Diagrams
information space
stereotypes
Example #1
Traceability
Procedure
Example #2
Interaction
Return Item Use Case in recycling Diagrams I
machine - example
Interaction
Diagrams
Communication
Diagrams
I Identify the conceptual classes from activity diagram information space
I interface: which activities interface actors? stereotypes
Example #1
I Register is triggered by inserting deposit items Traceability
I Print is triggered by pressing print button Procedure
I Entity: which activities require data? Example #2
Interaction
Diagrams
Communication
Diagrams
information space
stereotypes
Example #1
Traceability
Procedure
Example #2
Interaction
System specifications Diagrams I
Interaction
Diagrams
I Logical structure of a system, i.e. Communication
Diagrams
I Components information space
I Relationship between components stereotypes
associations Example #2
Interaction
Diagrams
Communication
Diagrams
information space
stereotypes
Example #1
Traceability
Procedure
Example #2
Interaction
Three subsystems Diagrams I
Interaction
Diagrams
Communication
Diagrams
information space
stereotypes
Example #1
Traceability
Procedure
Example #2
Interaction
Traceability Diagrams I
Interaction
I It shows step-by-step how user’s requirements are Diagrams
system stereotypes
Example #1
Interaction
Diagrams
Communication
I Design aims to give a detailed description of a system Diagrams
information space
to facilitate actual coding stereotypes
Example #1
I A design model is required to represent this description Traceability
Procedure
I Actual implementation environment needs to be taken Example #2
Interaction
Diagrams
Communication
Diagrams
I Converting OOAM and refining conceptual classes information space
stereotypes
I Developing sequential diagram to show information flow Example #1
Interaction
I The process of constructing a design model starts from Diagrams
machine - example
Interaction
Diagrams
Communication
Diagrams
information space
stereotypes
Example #1
Traceability
Procedure
Example #2
Interaction
Take into account of implementation Diagrams I
environment
Interaction
Diagrams
Communication
Diagrams
information space
I Implementation environment stereotypes
Example #1
I Target environment - where system will execute Traceability
I Programming language Procedure
Interaction
Diagrams
Communication
I For one of your use cases identify: Diagrams
I entity classes by examining the data (information) information space
stereotypes
storage requirements of the Use Case. Example #1
I one central boundary class for each actor. (primary Traceability
window). Procedure
Example #2
I one control class responsible for handling the control of
the Use Case (and introduce further control classes as
necessary, for example UI handling).
I By drawing:
Interaction
Step 1 Diagrams I
Interaction
Diagrams
Communication
Diagrams
information space
stereotypes
Example #1
Traceability
Procedure
Example #2
Interaction
Step 2 Diagrams I
Interaction
Diagrams
Communication
I Add links to the diagram. Diagrams
information space
I Links are ‘candidate’ associations. Follow the pattern stereotypes
of: Example #1
Interaction
Diagrams
Communication
Diagrams
information space
stereotypes
Example #1
Traceability
Procedure
Example #2
Interaction
Step 3 Diagrams I
Interaction
Diagrams
Communication
Diagrams
information space
stereotypes
Example #1
Traceability
Procedure
Example #2