Real Time Systems - PowerPoint PPT Presentation

1 / 15
About This Presentation
Title:

Real Time Systems

Description:

'Each pattern describes a problem which occurs over and over again in our ... The Blob (Winnebago, the God Class) Functional Decomposition (No OO) Spaghetti Code ... – PowerPoint PPT presentation

Number of Views:99
Avg rating:3.0/5.0
Slides: 16
Provided by: phil7
Category:
Tags: real | systems | time | winnebago

less

Transcript and Presenter's Notes

Title: Real Time Systems


1
Real Time Systems
  • Patterns
  • AntiPatterns

2
Review
3
Outline
  • Patterns
  • Definitions
  • Classic Design Patterns
  • Examples
  • AntiPatterns
  • Definitions
  • Examples

4
What is a Pattern?
  • Each pattern describes a problem which occurs
    over and over again in our environment, and then
    describes the core of the solution to that
    problem, in such a way that you can use this
    solution a million times over, without ever doing
    it the same way twice
  • Christopher Alexander

Quite simply, it is just design reuse
5
What is a Classic Design Pattern?
  • A design pattern describes a commonly-recurring
    structure of communicating components that solve
    a general design problem in a particular
    context.
  • Gamma et al

Sounds very OO-like, in fact it sounds a lot
like ROOM Selic et al !
6
Why Use Patterns?
  • advantages of design patterns are reusability and
    modularity, which are precisely the goals of
    object-oriented software design.
  • because design patterns capture expert knowledge,
    the solutions it provides are tried and true.
    Therefore, they not only make it less
    time-consuming to design a large system, it also
    improves design quality.

7
Why Use Patterns?
  • design patterns provide a common vocabulary for
    designers to communicate by expressing software
    design at higher level of abstraction than that
    of a design notation or programming language.
  • being able to recognise design patterns helps one
    to understand existing systems.

8
Examples of Design Patterns
  • Composite Pattern Gamma et al

What real software systems might contain this
pattern?
9
Examples of Design Patterns Recognize this one?
10
Examples of Design Patterns Recognize this one?
11
AntiPatterns
  • An antipattern describes an approach to solving
    a common problem, an approach that in time proves
    to be wrong or highly ineffective. Ambler
  • An AntiPattern is a literary form that describes
    a commonly occurring solution to a problem that
    generates decidedly negative consequences. The
    AntiPattern may be the result of not knowing
    any better, not having sufficient knowledge or
    experience Brown et al

12
Examples of AntiPatterns
  • The Blob (Winnebago, the God Class)
  • Functional Decomposition (No OO)
  • Spaghetti Code
  • Boat Anchor
  • Golden Hammer

13
Exercise
  • What patterns and antipatterns might we find in
    our RoseRT labs?

14
References
  • Selic, B., Gullekson, Ward, Real-Time
    Object-Oriented Modeling, Wiley, 1994.
  • Ambler, S., The Object Primer, Cambridge Univ.
    Press, 2001, Chapter 7.
  • Gamma, E., et al, Design Patterns, Addison
    Wesley, 1994.
  • Brown, Malveau, McCormick, Mowbray, AntiPatterns
    Refactoring Software, Archictectures, and
    Projects in Crisis, Wiley Sons, 1998.
  • Douglass, B.P., Real-Time Design Patterns Robust
    Scalable Architecture for Real-Time Systems,
    Addison-Wesley, 2003.

15
Questions
Write a Comment
User Comments (0)
About PowerShow.com