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 Control ClassThe Role of a Control ClassActor 1Actor 2Coordinate the use-case behavior<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 23A control class is a class used to model control behavior specific to one or more usecases. Control objects (instances of control classes) often control other objects, sotheir behavior is of the coordinating type. Control classes encapsulate use-casespecificbehavior.The behavior of a control object is closely related to the realization of a specific usecase. In many scenarios, you might even say that the control objects "run" the Use-Case Realizations. However, some control objects can participate in more than oneUse-Case Realization if the use-case tasks are strongly related. Furthermore, severalcontrol objects of different control classes can participate in one use case. Not all usecases require a control object. For example, if the flow of events in a use case isrelated to one entity object, a boundary object may realize the use case incooperation <strong>with</strong> the entity object. You can start by identifying one control class perUse-Case Realization, <strong>and</strong> then refine this as more Use-Case Realizations areidentified, <strong>and</strong> commonality is discovered.Control classes can contribute to underst<strong>and</strong>ing the system, because they representthe dynamics of the system, h<strong>and</strong>ling the main tasks <strong>and</strong> control flows.When the system performs the use case, a control object is created. Control objectsusually die when their corresponding use case has been performed.6 - 23

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

Saved successfully!

Ooh no, something went wrong!