time_headway() unclear
8.7.5.1.2 Method time_headway()
Returns the time distance between a traffic participant and a reference physical_object.
Prototype
extend vehicle:
def time_headway(reference: physical_object) -> time
Return value
Returns the time distance between traffic participant and reference physical_object, measured from reference point to reference point along s-coordinate, assuming the reference physical_object keeps moving with its current speed.
Example
my_vehicle.time_headway(other)
Questions:
- What is meant as
reference
in the definition? The reference as named in the type signature or the object which method is called? - In example: Should
my_vehicle
maintain current speed in calculation? - In example: Should
other
maintain current speed in calculation?