Changeset 274 in tmcsimulator for trunk/src/atmsdriver/model/Station.java
- Timestamp:
- 02/25/2019 04:36:04 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/atmsdriver/model/Station.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/atmsdriver/model/Station.java
r237 r274 208 208 { 209 209 /* For now just use the color of the first lane. 210 * TODO: Average the color in allthe lanes for the given direction */210 * TODO: Average the color in ALL the lanes for the given direction */ 211 211 212 212 String laneDir = ""; … … 219 219 laneDir = "OS"; 220 220 } 221 // Examine all the lanes in a givendirection221 // Search lanes to find specified direction 222 222 for (LoopDetector loop : loops) 223 223 { 224 224 if (loop.loopLocation.substring(0,2).equals(laneDir)) 225 225 { 226 // Return color according to loop volume 226 // Return color according to loop volume of first matching lane 227 227 if (loop.vol == 1) 228 228 {
Note: See TracChangeset
for help on using the changeset viewer.
