Changeset 103 in tmcsimulator for trunk/src/atmsdriver/FEPLineLoader.java


Ignore:
Timestamp:
10/12/2017 12:28:28 AM (9 years ago)
Author:
jtorres
Message:

trunk/src/atmsdriver/ConsoleDriver.java: Created console driver for ATMSDriver, completed and very nice. Still need to apply correct vol/occ values to actually change the colors. Still need to write a JUnit test for it. trunk/src/atmsdriver/ATMSDriver.java: Refactored to run the console driver. ATMSDriver runs in thread, console driver runs, and they share the highways instance. Renamed NetworkLoader?.java to FEPLineLoader.java. trunk/src/atmsdriver/model/Highways.java: refactored loadHighways() method to conform to new undirected highway abstraction. trunk/src/atmsdriver/model/Station.java: added updateByDirection(DIRECTION dir) method and supporting utility methods. trunk/test/atmsdriver/model/LoadHighwaysTest.java: Conformed LoadHighways? test to new undirected highway abstraction. trunk/test/atmsdriver/model/StationTest.java: Conformed StationTest?.java to new changes - very minor stuff. Went through all model classes and changed any final privates with a getter method to final public, for good OOP practice and simplicity. Went through ALL FILES and commented everything very well. minor application custom configuration changes. Removed all .class or .o.d files from svn repository

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/atmsdriver/FEPLineLoader.java

    r90 r103  
    1313import java.util.logging.Logger; 
    1414 
    15 /** The NetworkReader loads all static data for the traffic network through 
    16  *  network lookup files.  
     15/** The FEPLineLoader loads all static data for the FEPLines, using the station 
     16 *  and loop lookup files. 
     17 *  
     18 *  THIS CLASS WILL BE REMOVED AND THE LOADING OF FEPLINES WILL BE THE RESPONSIBILITY 
     19 *  OF THE HIGHWAYS.JAVA CLASS FOR PROPER OOP. JUST USING FOR NOW BECAUSE IT WORKS. 
    1720 *  
    1821 *  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 construct 
    20   the FEPLines. 
    21   
    22   The "LDSFile" contains Station and FEPLine information. 
    23   ex. 
    24    < Insert file here > 
    25  *  The "loopFile" contains individual LoopDetector information. 
    26  *  ex. 
    27  *   < Insert file here >  
     22 *  within the network. All other methods are private and are used to construct 
     23 *  the FEPLines. 
    2824 * 
    2925 * @author John A. Torres 
    3026 * @version 09/10/2017 
    3127 */ 
    32 public class NetworkLoader { 
     28public class FEPLineLoader { 
    3329    // Two network config files 
    3430    private final File LDSFile; 
     
    4339     * @param loopFile contains individual LoopDetector static data 
    4440     */ 
    45     public NetworkLoader(File LDSFile, File loopFile) 
     41    public FEPLineLoader(File LDSFile, File loopFile) 
    4642    { 
    4743        this.LDSFile = LDSFile; 
     
    176172            } 
    177173        } catch (FileNotFoundException ex) { 
    178             Logger.getLogger(NetworkLoader.class.getName()).log(Level.SEVERE, null, ex); 
     174            Logger.getLogger(FEPLineLoader.class.getName()).log(Level.SEVERE, null, ex); 
    179175        } 
    180176    } 
Note: See TracChangeset for help on using the changeset viewer.