class ScheduleCalculatorFactory {

  public static Schedule getScheduleCalculator(final String name) {
    final Schedule schedule = s_instances.get(name);
    if (schedule == null) {
      throw new IllegalArgumentException("Could not get schedule calculator with name " + name);
    }
    return schedule;
  }

}