Changeset 84 in tmcsimulator for trunk/src/atmsdriver/NetworkLoader.java
- Timestamp:
- 10/06/2017 11:44:52 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/atmsdriver/NetworkLoader.java (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/atmsdriver/NetworkLoader.java
r79 r84 2 2 3 3 import atmsdriver.model.FEPLine; 4 import atmsdriver.model. LoopDetectorStation;4 import atmsdriver.model.Station; 5 5 import atmsdriver.model.LoopDetector; 6 import atmsdriver.model. LoopDetectorStation.DIRECTION;6 import atmsdriver.model.Station.DIRECTION; 7 7 import java.io.File; 8 8 import java.io.FileNotFoundException; … … 17 17 * 18 18 * The public method getFEPLines() method can be used to get all the FEPLines 19 *within a network. All other methods are private and are used to construct20 *the FEPLines.21 *22 * The "LDSFile" contains LoopDetectorStation and FEPLine information.23 *ex.24 *< Insert file here >19 within a network. All other methods are private and are used to construct 20 the FEPLines. 21 22 The "LDSFile" contains Station and FEPLine information. 23 ex. 24 < Insert file here > 25 25 * The "loopFile" contains individual LoopDetector information. 26 26 * ex. … … 157 157 158 158 // Create each Station for the current FEPLine 159 ArrayList< LoopDetectorStation> stns = new ArrayList<>();159 ArrayList<Station> stns = new ArrayList<>(); 160 160 for(Integer stnNum : stnNums) 161 161 { … … 165 165 166 166 // Create the Station and add to list for curr FEPLine 167 LoopDetectorStation stn =167 Station stn = 168 168 createStation(stnNum, new Scanner(LDSFile), loops); 169 169 stns.add(stn); … … 181 181 182 182 // Creates line 183 private FEPLine createLine(int lineNum, Scanner scLine, ArrayList< LoopDetectorStation> stns)183 private FEPLine createLine(int lineNum, Scanner scLine, ArrayList<Station> stns) 184 184 { 185 185 FEPLine line = null; … … 239 239 240 240 // creates a Station 241 private LoopDetectorStation createStation(int stnNum, Scanner sc, ArrayList<LoopDetector> detectors)242 { 243 LoopDetectorStation LDS = null;241 private Station createStation(int stnNum, Scanner sc, ArrayList<LoopDetector> detectors) 242 { 243 Station LDS = null; 244 244 245 245 sc.nextLine(); … … 264 264 double postmile = scLine.nextDouble(); 265 265 String ldsName = getLocation(strLine); /************* DOESNT GRAB WHOLE???? *///// 266 LDS = new LoopDetectorStation(lineNum, ldsID, drop, ldsName, detectors, fwy, dir, postmile);266 LDS = new Station(lineNum, ldsID, drop, ldsName, detectors, fwy, dir, postmile); 267 267 268 268 break;
Note: See TracChangeset
for help on using the changeset viewer.
