// roadmark, material, visibility, speed, access, height, rule public Lane(int id, LaneType laneType, LaneSectionLink link, LaneWidthRecord[] widthRecords) { this.id = id; this.laneType = laneType; this.link = link; this.widthRecords = widthRecords; }
public Lane(int id, LaneType laneType, LaneSectionLink link) { if (id != 0) { throw new ArgumentException("Only center lanes can be constructed without the width record argument."); } this.id = id; this.laneType = laneType; this.link = link; widthRecords = new LaneWidthRecord[0]; }