LinkData

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

fromIntersection

the name of the beginning intersection

toIntersection

the name of the ending intersection, different from the beginning

length

the total length in the modeler's units, strictly positive

zoneLength

the length of each zone, strictly positive

numZones

how many zones divide the link, at least one

type

whether traffic may run one way, both ways, or into a dead end

velocityFactor

multiplies transporter velocity on this link, strictly positive

beginDirection

direction of travel in degrees leaving the beginning intersection. Layout metadata only: it does not affect travel time.