public RoadTrafficControl(Road road, IntersectionTrafficMath trafficMath, CarTrafficManager trafficManager) { this.referenceRoad = road; this.trafficMath = trafficMath; this.trafficManager = trafficManager; }
public IntersectionTrafficControl(Intersection intersection, CarTrafficManager trafficManager, NavigationManager navigationManager, IntersectionTrafficMath trafficMath) { this.referenceIntersection = intersection; this.trafficManager = trafficManager; this.navigationManager = navigationManager; this.trafficMath = trafficMath; }