package model; public class ComponentRoute { private final Building outputBuilding; public ComponentRoute(Building outputBuilding) { this.outputBuilding = outputBuilding; } public void sendComponent(Component component) { } private void outputComponent(Component component) { outputBuilding.processInput(component); } }