public Double visit(Department o) { double total = 0; total += o.getManager().accept(this); for (Subunit s : o.getSubunits()) total += s.accept(this); return total; }
public Person getManager() { return _department.getManager(); }