pybtls.traffic.headway_generator.HeadwayGenConstant#

class HeadwayGenConstant(constant_speed, constant_gap, **kwargs)[source]#

Bases: object

The HeadwayGenConstant instance in Python stores the data for creating a CFlowGenConstant instance in C++.

All vehicles’ headways will be generated based on the constant speed and gap.

Parameters:
  • constant_speed (float) – The constant speed of heavy vehicles in km/h.

  • constant_gap (float) – The constant gap between heavy vehicles in s.

Methods

Attributes

tag