Changes between Version 10 and Version 11 of TanmayTasks


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

add 6

Legend:

Unmodified
Added
Removed
Modified
  • TanmayTasks

    v10 v11  
    1010 3. ~~Assemble one line of traffic file. (2)~~ 
    1111 
    12  4. Have buttons change to named color when clicked.  Turn off when another button clicked.   Initially, have Yellow button active (avoids having "undefined" appear in output file).  See attached color button html demo. (1) 
     12 4. ~~Have buttons change to named color when clicked.  Turn off when another button clicked.   Initially, have Yellow button active (avoids having "undefined" appear in output file).  See attached color button html demo. (1)~~ 
    1313 
    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) 
     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)~~ 
    1515{{{ 
    16 // Initialize the current time to zero 
     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') 
     28var printableTime = currentTime.toLocaleTimeString('it-IT')~~ 
    2929}}} 
     30 
     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, 
     32{{{ 
     3300:00:30  auto 
     3400:00:60  auto 
     3500:01:30  auto 
     3600:01:45  manual 
     3700:02:15  auto 
     3800:02:45  auto 
     39}}} 
     40