Unit 7 Flashcards

1
Q

Dynamic Modeling

A

Dynamic modeling represents the interaction of the building blocks of the information system with each other and with the outside world to satisfy the behavioral requirements of the system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Dynamic Modeling (interactions, messages, objects, time, order)

A

Dynamic modeling is also interaction. Unlike the real world in which objects interact in many different ways, residents of a virtual world can only interact through messages
.Dynamic modeling features objects.
Interactions happen in time. Therefore, dynamic modeling must show not onlywho interacts with whom and how, but in whatorder.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Review Methods & Messages Graphic

A

Do it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Accessor Operations

A

Accessor operations change or return the value of an attribute.
•The get operation returns the value of the attribute to the public.
•The set operation changes the value of the attribute.

The syntax of an accessor operation is different from that of a normal operation.
•getName()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Parameters and Value

A

Parameters, or arguments, specify the data that must be supplied to an object to carry out a specific operation:Examples:
•orderDrink(drink, quantity)
•orderAppetizer(Appetizer)
•getMenu()
•orderMainCourse(whisky, on the rocks, many)Return value is the reply that a message may invoke from the receiving object after an operation is complete.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Syntax for Method Specification

A

The exact syntax for declaring operations and sending messages is language dependent.
[Visibility] [Return Type] Name
Public Currency payBill(amount, paymentType)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Dynamic Diagrams

A

Sequence diagram
Emphasizes the order of interactions in time.

Collaboration diagram
Focuses on how the object are organized and what set of messages they must exchange to satisfy a certain behavior.

Statechartdiagram
Traces the results of interactions on the state of objects belonging to a specific class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Sequence Diagram

A

Sequence diagram represents the interaction between objects, or between actors and objects ordered in time.

A sequence diagram is composed of a timeline, objects that interact across this timeline, and the messages that they exchange.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

System Sequence Diagram (SSD)

A

A UML sequence diagram at a high (system) level
Special case for a sequence diagram
Only shows actor and one object
The one object represents the complete system
Shows input & output messaging requirements for a use case

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Review System Sequence Diagram (SSD) Notation Graphic

A

Do it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Internal Sequence Diagram

A

An internal sequence diagram at a detailed level
shows actor and all internal objects that make up the system
shows interactions between the objects to implement a use case

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Review Sequence Diagram Graphic

A

Do it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Sequence Diagram

A

The objectsacross the top of the diagram are interacting with each other by passing messagesback and forth (horizontal).
An actor is the user whose interactions with the system are described in each of the use cases (horizontal).
The object lifetimerepresents time and starts with the top-most message (vertical).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Elements of Sequence Diagram

A

Actor Instance: outside the system
.Instance Name:ActorName
aCustomer:Customer

Class Instance: inside the system
Instance Name:ClassName

Timeline—dotted vertical line.
Message & Timeline Forking: Specifies alternates.
Message to Self & Looping: Specifiesrepeats.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Review Appointment Use Case Graphic & Sequence Diagram

A

Do it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How to Identify Methods for Objects/Classes Using the Sequence Diagram

A
The sequence diagram already shows the objects/classes required for a use case
The make appointment sequence diagram in the previous slide has 5 objects –services, patients, patient, schedule, and appointmentAny message (arrow) that goes into an object is a method in that object.
Patient object has three arrows pointing to it –instantiate patient, update patient profile, and create appointment
So, the patient class should have the above three as methods
Similarly, you can identify methods for all other objects/classes in the sequence diagram and in all other sequence diagrams, and complete the class diagram you created before
17
Q

Collaboration Diagram

A

Collaboration diagram is a dynamic diagram that focuses on the organization of objects that must cooperate, by exchanging messages, to satisfy a certain behavior.
Collaboration = Communication.
The best way to arrive at a collaboration diagram is to start from a sequence diagram.

18
Q

Review Collaboration Diagram Graphic

A

Do it

19
Q

Statechart Diagram

A

Statechart diagram represents milestones in the lifetime of an object when its state changes.
A state is an object’s condition at a certain stage and from a certain viewpoint. It is a snapshot of the object in a usually important point in time.
Statechart diagram is composed of the states of an object and the flow of events that change its state.

20
Q

Review Treatment Graphic

A

Do it

21
Q

The Value of Statechart Diagram

A

Statechartdiagram is the only dynamic model that can illustrate the milestones in the lifetime of oneclass of objects in its entirety.