Changeset 285 in tmcsimulator for trunk/src/atmsdriver/model/Highways.java
- Timestamp:
- 02/28/2019 10:21:36 AM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/atmsdriver/model/Highways.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/atmsdriver/model/Highways.java
r274 r285 510 510 { 511 511 //lineout.append("" + dir.getLetter() + stat.postmile); 512 lineout.append(stat.getColor ByDirection(dir));512 lineout.append(stat.getColor()); 513 513 //lineout.append(" "); 514 514 } … … 543 543 Scanner s = new Scanner(fis).useDelimiter("\\A"); 544 544 pmList.load(s); 545 545 546 String header = "{\n" + 546 547 " \"type\": \"FeatureCollection\",\n" + … … 573 574 String outString = currentPM.toJson(); 574 575 // replace the color code with the color name 575 String colorName=""; 576 switch (stat.getColorByDirection(stat.direction)) 577 { 578 case '@': colorName = "red";break; 579 case '+': colorName = "yellow"; break; 580 case '-': colorName = "lime";break; 581 case ' ': colorName = "lime";break; 582 } 576 String colorName=stat.getColorName(); 583 577 outString = outString.replace("desiredcolor",colorName); 584 578 lineout.append(outString);
Note: See TracChangeset
for help on using the changeset viewer.
