Link Data
constructor(name: String, fromIntersection: String, toIntersection: String, length: Double, zoneLength: Double, numZones: Int, type: LinkType = LinkType.UNIDIRECTIONAL, velocityFactor: Double = 1.0, beginDirection: Double = 0.0)(source)
Parameters
name
unique within the network
from Intersection
the name of the beginning intersection
to Intersection
the name of the ending intersection, different from the beginning
length
the total length in the modeler's units, strictly positive
zone Length
the length of each zone, strictly positive
num Zones
how many zones divide the link, at least one
type
whether traffic may run one way, both ways, or into a dead end
velocity Factor
multiplies transporter velocity on this link, strictly positive
begin Direction
direction of travel in degrees leaving the beginning intersection. Layout metadata only: it does not affect travel time.