Changeset 127 in tmcsimulator for trunk/src/atmsdriver/model/Station.java


Ignore:
Timestamp:
10/16/2017 04:38:16 PM (9 years ago)
Author:
jdalbey
Message:

Station.java Enhance DOTCOLOR enum to have volume and occupancy fields. Minor changes to error messages in other files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/atmsdriver/model/Station.java

    r114 r127  
    166166            { 
    167167                // UPDATE LOOP WITH VALUES 
    168                 // TODO: Perhaps enhance DOTCOLOR enum to include constants for 
    169                 // vol and occ along with each color.  Then the updateLoop call 
    170                 // below could be update(dotColor.volume, dotColor.occ, speed) 
    171                 int volume = 10; 
    172                 int occ = 10; 
    173168                int speed = 0; 
    174                 loop.updateLoop(volume, occ, speed); 
     169                loop.updateLoop(dotColor.volume(), dotColor.occupancy(), speed); 
    175170            } 
    176171        } 
Note: See TracChangeset for help on using the changeset viewer.