Changes between Version 11 and Version 12 of TanmayTasks
- Timestamp:
- 01/25/2020 05:54:57 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TanmayTasks
v11 v12 13 13 14 14 5. ~~Have the program automatically increment the time by 30 seconds for each line of output. The following code should do the trick. It just needs to be inserted into the appropriate spot in vdsLayer. (0.5)~~ 15 {{{16 ~~// Initialize the current time to zero15 ~~{{{ 16 // Initialize the current time to zero 17 17 var currentTime = new Date(0); 18 18 currentTime.setHours(0); … … 26 26 27 27 // Create a printable string for the time (HH:MM:SS) 28 var printableTime = currentTime.toLocaleTimeString('it-IT') ~~29 }}} 28 var printableTime = currentTime.toLocaleTimeString('it-IT') 29 }}}~~ 30 30 31 31 6. Add a time selector - this is used to select the simulation time for which the traffic events are to be created. The user specifies an hour (1-12), a minute(0-59), and seconds (0 or 30). The simplest version is probably just a text field that looks like the one in Visualizer. The program should begin at time 00:00:30 and auto increment (as in task 5), but the text field allows the user to override the time and manually enter a time of their own. Once the user enters a time manually, that becomes the new value to use to auto increment. For example, … … 38 38 00:02:45 auto 39 39 }}} 40 40 (Estimate: 2 hours)
