Chapter 4
Chapter 4
o The life span of a control object should cover the extent of the
use case or the extent of a user session.
Example-Control objects for the
ReportEmergency use case
ReportEmergencyControl - Manages the ReportEmergency reporting
function on the FieldOfficerStation. This object is created when the
FieldOfficer selects the “Report Emergency” button. It then creates an
EmergencyReportForm and presents it to the FieldOfficer. After
submitting the form, this object then collects the information from the
form, creates an EmergencyReport, and forwards it to the Dispatcher. The
control object then waits for an acknowledgment to come back from the
DispatcherStation. When the acknowledgment is received, the
ReportEmergencyControl object creates an AcknowledgmentNotice and
displays it to the FieldOfficer.
ManageEmergencyControl - Manages the ReportEmergency reporting
function on the DispatcherStation. This object is created when an
EmergencyReport is received. It then creates an IncidentForm and displays
it to the Dispatcher. Once the Dispatcher has created an Incident, allocated
Resources, and submitted an acknowledgment, ManageEmergencyControl
Analysis activities/Mapping Use Cases to
Objects with Sequence Diagrams
Sequence diagram shows how the behavior of a use case (or scenario) is
distributed among its participating objects.
Heuristics for drawing sequence diagrams
o The first column should correspond to the actor who initiated the use
case.
o The second column should be a boundary object (that the actor used
to initiate the use case).
o The third column should be the control object that manages the rest of
the use case.
o Control objects are created by boundary objects initiating use cases.