Changes between Version 12 and Version 13 of TanmayTasks


Ignore:
Timestamp:
01/25/2020 05:56:56 AM (6 years ago)
Author:
jdalbey
Comment:

fix formatting

Legend:

Unmodified
Added
Removed
Modified
  • TanmayTasks

    v12 v13  
    1313 
    1414 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 ~~{{{ 
     15{{{ 
    1616// Initialize the current time to zero 
    1717var currentTime = new Date(0); 
     
    2727// Create a printable string for the time (HH:MM:SS) 
    2828var printableTime = currentTime.toLocaleTimeString('it-IT') 
    29 }}}~~ 
     29}}} 
    3030 
    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, 
     31 
     32 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.  (Estimate: 2 hours) For example, 
    3233{{{ 
    333400:00:30  auto 
     
    383900:02:45  auto 
    3940}}} 
    40 (Estimate: 2 hours) 
     41