Changeset 278 in tmcsimulator for trunk/src/atmsdriver/model


Ignore:
Timestamp:
02/26/2019 09:11:08 AM (7 years ago)
Author:
jdalbey
Message:

Station.java CHANGED HIGHWAY MODEL to be consistent with JD's new BuildHighwayFile? pgm that creates a highway map based on VDS instead of Controller (LDS). (The code I removed is just commented out for now).

File:
1 edited

Legend:

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

    r274 r278  
    187187        for (LoopDetector loop : loops) 
    188188        { 
    189             if (loop.loopLocation.startsWith(laneDir)) 
    190             { 
     189            // THIS DECISION ISN'T NEEDED after JD's BuildHighwayFile pgm 
     190            // creates a highway map based on VDS instead of Controller (LDS). 
     191//            if (loop.loopLocation.startsWith(laneDir)) 
     192//            { 
    191193                // UPDATE LOOP WITH VALUES 
    192194                loop.updateLoop(dotColor.volume(), dotColor.occupancy()); 
    193             } 
     195//            } 
    194196        } 
    195197 
     
    222224        for (LoopDetector loop : loops) 
    223225        { 
    224             if (loop.loopLocation.substring(0,2).equals(laneDir)) 
    225             { 
     226            // THIS DECISION ISN'T NEEDED after JD's BuildHighwayFile pgm 
     227            // creates a highway map based on VDS instead of Controller (LDS). 
     228//            if (loop.loopLocation.substring(0,2).equals(laneDir)) 
     229//            { 
    226230                // Return color according to loop volume of first matching lane 
    227231                if (loop.vol == 1) 
     
    237241                    return '-'; 
    238242                } 
    239             } 
     243//            } 
    240244        } 
    241245        // Default case for when the route is not on this direction 
Note: See TracChangeset for help on using the changeset viewer.