Changeset 103 in tmcsimulator for trunk/src/atmsdriver/model/Highway.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 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/atmsdriver/model/Highway.java

    r93 r103  
    1010 * @author jdalbey 
    1111 */ 
    12 final class Highway 
     12final public class Highway 
    1313{ 
    1414    /** The identifying number for this highway, e.g., 101 */ 
    15     public final Integer highwayNumber; 
     15    public final Integer routeNumber; 
    1616    /** The ordered list of stations (lane detector stations) on this highway */ 
    1717    public final ArrayList<Station> stations; 
     
    2222     * @param stations ordered list of stations on this highway 
    2323     */ 
    24     public Highway(Integer highwayNum, ArrayList<Station> stations) 
     24    public Highway(Integer routeNumber, ArrayList<Station> stations) 
    2525    { 
    26         this.highwayNumber = highwayNum; 
     26        this.routeNumber = routeNumber; 
    2727        this.stations = stations; 
    2828    } 
Note: See TracChangeset for help on using the changeset viewer.