12.07.2015 Views

DEV475 Mastering Object-Oriented Analysis and Design with UML ...

DEV475 Mastering Object-Oriented Analysis and Design with UML ...

DEV475 Mastering Object-Oriented Analysis and Design with UML ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Module 6 - Use-Case <strong>Analysis</strong>The Role of a Boundary ClassThe Role of a Boundary ClassActor 1Actor 2Model interaction between the system <strong>and</strong> its environment<strong>Mastering</strong> <strong>Object</strong> <strong>Oriented</strong> <strong>Analysis</strong> <strong>and</strong> <strong>Design</strong> <strong>with</strong> <strong>UML</strong>Copyright © 2003 Rational Software, all rights reserved 15A boundary class is used to model interaction between the system's surroundings <strong>and</strong>its inner workings. Such interaction involves transforming <strong>and</strong> translating events <strong>and</strong>noting changes in the system presentation (such as the interface).Boundary classes model the parts of the system that depend on its surroundings. Theymake it easier to underst<strong>and</strong> the system because they clarify the system's boundaries<strong>and</strong> aid design by providing a good point of departure for identifying related services.For example, if you identify a printer interface early in the design, you will realize thatyou must also model the formatting of printouts.Because boundary classes are used between actors <strong>and</strong> the working of the internalsystem (actors can only communicate <strong>with</strong> boundary classes), they insulate externalforces from internal mechanisms <strong>and</strong> vice versa. Thus, changing the GUI orcommunication protocol should mean changing only the boundary classes, not theentity <strong>and</strong> control classes.A boundary object (an instance of a boundary class) can outlive a use-case instance if,for example, it must appear on a screen between the performance of two use cases.Normally, however, boundary objects live only as long as the use-case instance.6 - 15

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!