

The model may stop running if a student enters a metric in the client that is incorrect, such as dividing by 0, and causes a NetLogo error. Notice: Gridlock Alternate uses features in NetLogo that are considered experimental. The traffic light above it has coordinates (0,1) and the traffic light to the right of it has (1,0).įor further documentation, see the Participatory Simulations Guide found at. Therefore, the traffic light with the coordinates (0,0) is in the lowest row and the left-most column. The coordinates for the traffic lights are based on the first quadrant of the Cartesian plane.
NETLOGO SWITCH CODE
This alternate version of the Gridlock HubNet model allows the client to send NetLogo code to the model to be run and produce values which can then be plotted in the a client plot.Ĭhallenge the students to develop strategies to improve traffic and discuss the different ways to measure the quality of traffic. This allows students to explore traffic dynamics, which can lead into many areas of study, from calculus to social studies. The teacher controls overall variables, such as the speed limit and the number of cars. Students control traffic lights in a real-time traffic simulation. You can also Try running it in NetLogo Web If you download the NetLogo application, this model is included. (back to the library) Gridlock Alternate HubNet It has not yet been tested and polished as thoroughly as our other models.įor information about HubNet, click here. NetLogo Models Library: Gridlock Alternate HubNet
