Quiz 7 Flashcards
(24 cards)
An SD describes
Only the interactions between objects; it does not describe what happens inside of an object.
When an object A creates another object B ___
A create dependency exists between A and B
What does a dependency relationship represent?
A transient relationship between class objects
If an object of class A is passed in as a parameter to a method defined in class B
A dependency exists between A and B
What does a lifeline in an SD represent?
An instance of a class
What does an alt fragment represent?
Alternative interactions
What does a par fragment represent?
Groups of interactions that can occur in parallel
What does an opt fragment represent?
A conditional interaction
Association
- Link between objects
- Have at least two ends
- Must have multiplicities at each end
- Must have either a name or role names at the ends
What does an object have to do if it sends a synchronous message?
Wait for a response
Subsystem Design
- describes the internal detail of a design
- can commence after the subsystem interfaces are defines
- describes how a subsystem discharges its responsibilities
- can consist of class diagrams and interaction diagrams that describe the inner workings of the subsystem
What type of modeling are interaction diagrams used for?
Dynamic
What is illustrated in UML Class diagrams?
Classes, interfaces, dependencies, associations
Types of interaction diagrams
Sequence diagram and communication diagram
Communication diagrams work well for:
- UML as a sketch
- Formal modeling
- the agile modeling environment
UML Stereotypes
- destroy and create are examples of stereotypes
- a stereotype represents a refinement of an existing modeling concept
- a stereotype is defined within a UML profile
- Object Management Group (OMG) provides many pre-defined stereotypes
How do we describe strong composition
Aggregation, a solid diamond arrow
UML’s formal specification language for constraints
Object Constraint Language (OCL)
Visibility
The ability of one object to have a reference to another object
Gang-of-Four (GoF)
- Erich Gamma
- Richard Helm
- Ralph Johnson
- John Vlissides
GRASP
A methodology for OOD based on responsibility-driven design. Consists of a collection of design patterns
What patterns can be applied to minimize the impact of changes to the system?
High cohesion, low coupling
Two types of Controllers
Session Controller and Facade Controller