Changes between Version 11 and Version 12 of TanmayTasks


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

add est

Legend:

Unmodified
Added
Removed
Modified
  • TanmayTasks

    v11 v12  
    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 {{{ 
    16 ~~// Initialize the current time to zero 
     15~~{{{ 
     16// Initialize the current time to zero 
    1717var currentTime = new Date(0); 
    1818currentTime.setHours(0); 
     
    2626 
    2727// Create a printable string for the time (HH:MM:SS) 
    28 var printableTime = currentTime.toLocaleTimeString('it-IT')~~ 
    29 }}} 
     28var printableTime = currentTime.toLocaleTimeString('it-IT') 
     29}}}~~ 
    3030 
    3131 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, 
     
    383800:02:45  auto 
    3939}}} 
    40  
     40(Estimate: 2 hours)