Changeset 274 in tmcsimulator for trunk/src/tmcsim
- Timestamp:
- 02/25/2019 04:36:04 PM (7 years ago)
- Location:
- trunk/src/tmcsim
- Files:
-
- 3 edited
-
application.properties (modified) (1 diff)
-
utilities/BuildHighwayFile.java (modified) (3 diffs)
-
utilities/VehicleDetectionStation.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tmcsim/application.properties
r269 r274 1 # Thu, 21 Feb 2019 15:22:00-08001 #Mon, 25 Feb 2019 17:13:55 -0800 2 2 3 Application.revision=2 683 Application.revision=273 4 4 5 Application.buildnumber=9 55 Application.buildnumber=97 -
trunk/src/tmcsim/utilities/BuildHighwayFile.java
r272 r274 1 /*2 * To change this license header, choose License Headers in Project Properties.3 * To change this template file, choose Tools | Templates4 * and open the template in the editor.5 */6 1 package tmcsim.utilities; 7 2 … … 30 25 * 3. LDS file that has the fep line number for each LDS. 31 26 * Output: 1. The highway map file that lists VDS info and the lanes it governs. 32 * 2. A slightly reformatted loop file. 27 * 2. A slightly reformatted loop file. (Not sure what this is for.) 33 28 * @author jdalbey, jtorres 34 29 */ … … 157 152 else 158 153 { 159 if (shortLoc.equals("ML") && !missingVDS.contains(vdsID)) 154 boolean desiredType = shortLoc.equals("ML") || shortLoc.equals("OS"); 155 if (desiredType && !missingVDS.contains(vdsID)) 160 156 { 161 157 System.out.println("createLaneLookup(): vdsID: "+vdsID+ 162 " of type MLnot found. "+ String.format("%3s %s %5s",fwy,dir,postmile));158 " of type "+shortLoc+" not found. "+ String.format("%3s %s %5s",fwy,dir,postmile)); 163 159 missingVDS.add(vdsID); 164 160 } -
trunk/src/tmcsim/utilities/VehicleDetectionStation.java
r272 r274 8 8 9 9 /** 10 * Represent a single VDS. 10 * Represent a single VDS, "a logical grouping of detectors" at a particular 11 * location in one direction. 11 12 * @author jdalbey 12 13 */ … … 33 34 lineScanner.next(); // skip City 34 35 String raw_pm = lineScanner.next().trim(); 35 if (raw_pm.startsWith("R")) 36 // remove any postmile prefix, if it exists. 37 if (Character.isAlphabetic(raw_pm.charAt(0))) 36 38 { 37 39 raw_pm = raw_pm.substring(1);
Note: See TracChangeset
for help on using the changeset viewer.
