Swimlanes
As discussed in Chapter 2, a swimlane is a visual region in an activity diagram that indicates the element that has responsibility for action states within the region. For example, the project management system may have the following swimlanes, which are illustrated in Figure 8-6:
-
Project Manager Shows the action states that are the responsibility of a project manager. The swimlane makes it obvious that the project manager is responsible for entering data, thus the rather cumbersome action state name of
ProjectManagerEntersDatamay be shortened toEnterData.-
Project Management System Shows the action states that are the responsibility of the project management system. Again, because the swimlane makes it obvious who (or what, in this case) is generating information, the rather cumbersome action state name of
ProjectManagementSystemGeneratesInformationmay be shortened toGenerate Information.-
Printer Shows the action states that are the responsibility of a printer. Because of this swimlane, the rather cumbersome action state name of
PrinterPrintsInformationmay be shortened toPrintInformation.
Notice how the use of swimlanes allows me to rename the action states to omit the responsible element for each action state.
In the UML, a swimlane is shown as a visual region separated from neighboring swimlanes by vertical solid lines on both sides and labeled at the top with the element responsible for action states within the swimlane. Figure 8-6 shows the swimlanes ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access