cpsc 875 john d. mcgregor c16 - dsms. partitioning _jetta_horn_recall/index.htm?hpt=t2

12
CPSC 875 John D. McGregor C16 - DSMs

Upload: myrtle-mclaughlin

Post on 16-Jan-2016

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CPSC 875 John D. McGregor C16 - DSMs. Partitioning  _jetta_horn_recall/index.htm?hpt=T2

CPSC 875

John D. McGregorC16 - DSMs

Page 2: CPSC 875 John D. McGregor C16 - DSMs. Partitioning  _jetta_horn_recall/index.htm?hpt=T2

Partitioning

• http://money.cnn.com/2011/03/28/autos/vw_jetta_horn_recall/index.htm?hpt=T2

• Honking the horn can stop the car• Those wires should be logically and physically

separated

Page 3: CPSC 875 John D. McGregor C16 - DSMs. Partitioning  _jetta_horn_recall/index.htm?hpt=T2

Partitioning

• Architecture tactic• Divides independent flows of computation• May be a physical separation on different

processors• May be a logical separation in different

packages• May be both

Page 4: CPSC 875 John D. McGregor C16 - DSMs. Partitioning  _jetta_horn_recall/index.htm?hpt=T2

Pipe and Filter DSM

Page 5: CPSC 875 John D. McGregor C16 - DSMs. Partitioning  _jetta_horn_recall/index.htm?hpt=T2

Fault in pipe and filter

• An incorrect dependency

Page 6: CPSC 875 John D. McGregor C16 - DSMs. Partitioning  _jetta_horn_recall/index.htm?hpt=T2

Quantifying modularity

• Remember coupling and cohesion• These show up in a DSM as connections

Page 7: CPSC 875 John D. McGregor C16 - DSMs. Partitioning  _jetta_horn_recall/index.htm?hpt=T2

Corrected connection

Can think of view->pipe4 as a modulethat encapsulates that interaction

Page 8: CPSC 875 John D. McGregor C16 - DSMs. Partitioning  _jetta_horn_recall/index.htm?hpt=T2

Looking for patterns

Feedbackward

Flow forward

Page 9: CPSC 875 John D. McGregor C16 - DSMs. Partitioning  _jetta_horn_recall/index.htm?hpt=T2

DSM ClusteringArchitecture as intended

9

Architecture as represented

Page 10: CPSC 875 John D. McGregor C16 - DSMs. Partitioning  _jetta_horn_recall/index.htm?hpt=T2

Case Study - BBS

10

• Three-tier layered system• Presentation layer, application

layer, database server• Can only communicate with its

immediate upper layer

Page 11: CPSC 875 John D. McGregor C16 - DSMs. Partitioning  _jetta_horn_recall/index.htm?hpt=T2

Case Study - CTAS

11

• Model-View-Controller pattern• CTAS model has some parts that are rarely

used (relies on a framework architecture)• Not cohesive with other modules that

make up a single responsibility• Specify a connection strength to improve

clustering