Challenge 2: Focus Tracking
•Where will future refactorings occur?
•Contribution: A context-sensitive diagramming algorithm.
Vehicle
getHorsepower():int
getWeight():int
getOwner():Person
anEngine:Engine
Engine
getCost():int
getCylinders():int
aCost:int
numCylinders:int
aHorsepower:int
!
VehicleUI
Fleet
It’s a variant of the bin packing problem, but the final size of the diagram is dependent on the graph layout algorithm, which makes it harder.