Sunteți pe pagina 1din 6

Represenation of interactions

1)How interaction goes? (together with objects and messages)


A)Interaction goes together with objects and messages
2)How interaction is represented?(by time ordering and structural organizatio
of objects)
A)Interaction is represented by time ordering of its message with sequence
diagrams and by structural organization of these objects that send and receive
messages using collaboration diagrams
Common Modeling Techniques
Modelling a Flow of control( 1. setting the context for interaction
2.setting the stage for interaction
3.setting the structural organization
4.Specifying time order
5.convery necessary details of interaction
1)How to model a flow of control?(first we need to set the context for interaction)
A)In order to model a flow of control first we need to set the context for interaction
2)What may be the context for interaction?(individual operation, system as a
whole , a class)
A)The Context for the interaction may be 1)an individual operation 2)the system as
a whole 3) a Class
3)How to set the stage for interaction?( by identifying objects , set their
properties like state and role)
A)We need to set the stage for the interaction by identifying which objects play a
role, set their initial properties like their attribute values,state, and role
4)How to set the structural organization of objects?(by identifying the links and
relevant paths)

1
A)We can set the structural organization of objects by identifyine the links that
connect them , identifying the relevant paths of communication that take place in
this interaction
5)What we can specify in time order?(messages , distinguish different kinds of
messages,messages with parameter and
return values etc)
A)In time order we can specify the messages that pass from object to object , we can
distinguish the different kinds of message which include parameters and return
values to convey the necessary detail of this interaction.
6)How to convey necessary details of interaction?(with its state and role)
A)We convey the necessary detail of this interaction , adorn each object at every
moment in time with its state and role
7)Diagram of Flow of control by time

8)Diagram of Flow of control by organization

2
Interaction diagrams
1)What an interaction diagram shows?(interactions among objects,
relationshops,messages dispatched)
A)An interaction diagram shows an interaction , consisting of a set of objects and
their relationships, including the messages that may be dispatched among them
2)What the interaction diagrams commonly contains?(objects,links ,messages)
A)Interaction diagrams commonly contain objects ,links and messages
3)What they can model? (dynamic aspects of a system)
A)Interaction diagrams may be used to model the dynamic aspects of a system
4)What it may contain?(notes and constraints)
A)An interaction diagram may contains notes and constraints
5)what is the use of interaction diagrams?(to project elements found in an
interaction)
A)An interaction diagram is basically a projection of the elements found in an
interaction.

3
6)Diagram for interactions?

7)Diagram for collaboration

4
Sequence Diagrams
1)What is a sequence diagram?(an interaction diagram , time ordering of
messages)
A)It is an interaction diagram that emphasized the time ordering of messages
2)Graphical representation?(in a table , objects along X axis messages along Y
axis)
A)Sequence diagrams are graphically represented in the form of a table in which
objects arranged along X axis and messages ordered in increasing time along the Y-
axis
3)How objects are placed?(at the top of your diagram, across X-axis)
A)Here we place the objects that participate in the interaction at the top of your
diagram , across the X-axis ,
4)Placing the initiating objects?(at left and subordinate objects to right)
A)we place the objects that initiates the interaction at the left, and increasing more
subordinate objects to the right
5)Placing the messages?(along Y axis in order of increasing time from top to
bottom)
A)We place the messages that these objects send and receive along the Y axis , in
order of increasing time from top to bottom
6)Sequence Diagram
7)How to differentiate sequence diagrams from collaboration diagrams?
(objects life line, focus of control)
A)Sequence diagrams have two features that distinguish them from collaboration
diagrams first object life line ,second focus of control
8)What is object lifeline?(a vertical dashed line representing existence of object)
A)First there is the object lifeline which is a vertical dashed line that represents the
existence of an object over a period of time

5
9)What is the focus of control?( that shows period of time during which object is
performing an action)
A)Focus of control is a "thin rectangle" that shows the period of time during which
an object is performing an action, either directly or through a subordinate procedure.

Collaboration Diagrams

S-ar putea să vă placă și