private QLinkImpl(final Link link2, final QNodeI toNode, final LaneFactory roadFactory, NetsimEngineContext context, NetsimInternalInterface netsimEngine, LinkSpeedCalculator linkSpeedCalculator) { super(link2, toNode, context, netsimEngine, linkSpeedCalculator) ; this.context = context ; // The next line must must by contract stay within the constructor, // so that the caller can use references to the created roads to wire them together, // if it must. this.qlane = roadFactory.createLane(this); this.visdata = this.new VisDataImpl() ; // instantiating this here and not earlier so we can cache some things super.setTransitQLink( new TransitQLink(this.qlane) ) ; }