CPSC 875 CPSC 875 John D McGregor John D. McGregor Class 5 Design - - PowerPoint PPT Presentation

cpsc 875 cpsc 875
SMART_READER_LITE
LIVE PREVIEW

CPSC 875 CPSC 875 John D McGregor John D. McGregor Class 5 Design - - PowerPoint PPT Presentation

CPSC 875 CPSC 875 John D McGregor John D. McGregor Class 5 Design Concept Styles and patterns Styles and patterns An architecture style and a pattern are very An architecture style and a pattern are very similar A pattern may have


slide-1
SLIDE 1

CPSC 875 CPSC 875

John D McGregor John D. McGregor Class 5 – Design Concept

slide-2
SLIDE 2

Styles and patterns Styles and patterns

  • An architecture style and a pattern are very

An architecture style and a pattern are very similar

  • A pattern may have more information
  • A pattern may have more information,

particularly more information about trade‐offs among attributes among attributes.

slide-3
SLIDE 3

Logical/Physical Logical/Physical

  • Separate processes

Separate processes

  • Separate hardware

ll h l i l i l

  • Usually have multiple processes on single

hardware element

  • Seldom have single process on multiple

hardware

  • Start at the logical level
  • Then conform to physical deployment

Then conform to physical deployment environment

slide-4
SLIDE 4

Ubiquitous architecture styles Ubiquitous architecture styles

  • Layers

Layers

slide-5
SLIDE 5

Ubiquitous architecture styles Ubiquitous architecture styles

  • Client/Server

Client/Server

request client server DB return

slide-6
SLIDE 6

Master/Slave Master/Slave

  • http://hudson‐ci org/docs/HudsonArch‐

http://hudson ci.org/docs/HudsonArch Execution.pdf

slide-7
SLIDE 7

Model‐View‐Controller Model View Controller

  • http://www.dossier‐

p // andreas.net/software_architecture/mvc.html

  • As anti‐pattern

// / / / – http://broadcast.oreilly.com/2008/10/mvc‐as‐anti‐pattern.html

slide-8
SLIDE 8

MVC MVC

slide-9
SLIDE 9
slide-10
SLIDE 10

What are the essentials? What are the essentials?

  • Separation of data from presentation

Separation of data from presentation

– Have multiple views

  • Separation of control from presentation
  • Separation of control from presentation

– Have multiple controllers

  • Attributes

– Extensible

slide-11
SLIDE 11

Decomposition Decomposition

  • Our value computation is an interactive system. So we can start with MVC from

slide 16 and decompose from there. Controller Controller Controller Controller Model View d l Data Editor System Model menu Properties editor Controller Controller Controller Controller Editor Model Data Editor System System Model Editor System menu Properties editor

slide-12
SLIDE 12

Extension Extension

Controller Controller Controller Controller Editor Model Data S t Controller System Model Editor Model Editor System menu Properties editor Controller Controller Controller Controller Editor Model Data Editor System System Model menu Properties editor

DataBase

slide-13
SLIDE 13

Pipeline Pipeline

  • http://msdn.microsoft.com/en‐us/library/ff963548.aspx

p // / / y/ p