code: def AddHeadwayPeriodObject(self, headway_period, problem_reporter):
      
      warnings.warn("No longer supported. The HeadwayPeriod class was renamed to "
                    "Frequency, and all related functions were renamed "
                    "accordingly.", DeprecationWarning)
      self.AddFrequencyObject(frequency, problem_reporter)
docs: Deprecated. Please use AddFrequencyObject instead.