CD Solution for createNewAssignment:Assignment 1: create(title, description, dueDate, authors) 1.1: set (t=title, desc=description, due=dueDate) :AssignmentHandler creatNewAssignment(title, description, dueDate, authors) :Instructors [i] List<instructor> 2: create (authors) 2.1*: name = author by Creator & Expert by Creator by Controller
CD Solution for createNewAssignment
:Assignment 1: create(title, description, dueDate, authors) 1.1: set (t=title, desc=description, due=dueDate) :AssignmentHandler creatNewAssignment(title, description, dueDate, authors) :Instructors [i] List 2: create (authors) 2.1*: name = author by Creator & Expert by Creator by Controller
Not a façade … too complex UC controller is what works for the role of Assignment Handler ‹#›
:Rubric 1: append(reqt) :AssignmentHandler addRequirement(rubric, reqt) :Rubric 1: append(reqt) By Expert & Cohesion by Expert & Cohesion by Controller addRequirement(rubric, reqt)
Two viable and largely equal options. First is to use a controller to handle the add. Advantage is could aggregate adding of requirements with other :Rubric elements. Disadvantage is increased coupling. Second is to go direct to :rubric that contains the requirements, but the utility of a controller handling the interface is lost. ‹#›
Comments