byZoneLength

fun byZoneLength(name: String, fromIntersection: String, toIntersection: String, length: Double, zoneLength: Double, type: LinkType = LinkType.UNIDIRECTIONAL, velocityFactor: Double = 1.0, beginDirection: Double = 0.0): LinkData(source)

Builds a link from its length and the zone size the control system enforces, deriving the zone count. Use this when the zone size is the quantity the real system fixes.

The length must divide evenly by the zone length, and a remainder is reported rather than rounded away, because silently rounding would change the amount of space being modeled.