上QQ阅读APP看书,第一时间看更新
UML class diagram
Before we look at the UML class diagram, let's determine the chain of responsibility flow. As emails are received, they will be sent down the chain until they are processed by a team. We do have to provide the path, and that path, for our example, is illustrated here:
Chain of responsibility path
The following UML class diagram shows how we will implement the university email system. First, we will create a UniversityEmailHandler interface, a MainEmailHandler class, and six email handler classes, one for each of the university teams that will receive emails for processing:
Chain of responsibility —UML diagram
The chain of responsibility's directional flow is implied by the UML class diagram's layout.