Changeset 184 in tmcsimulator for trunk/src/atmsdriver/model/LoopDetector.java


Ignore:
Timestamp:
10/28/2017 05:24:02 PM (9 years ago)
Author:
jtorres
Message:

highways.java: converted to immutable, removed use of FEPLineLoader and added loadLines(), loadLine(), loadStation(), and loadLoop() methods. Renamed loadHighways() to configureHighways(), renamed writeHighwaysMeta() to getHighwaysMeta() which now returns a String containing metadata instead of opening a file and writing to it, which is more flexible. FEPLineLoader.java: deleted, no longer need it. FEPLine.java: converted to immutable, removed unnecessary member variables and adjusted all methods accordingly. Station.java: MLTotVol() and OppTotVol?() are now being updated at end of updateByDirection(). ATMSDriver.java: Now using one config file: highways_fullmap.txt, as opposed to the older lds.txt and loop.txt files. config/vds_data: added highways_fullmap.txt. config/atms_driver_config.properties, atms_driver_config_local.properties: updated config to reflect use of highways_fullmap.txt instead of old loop.txt and lds.txt configuration. ATMSBatchDriver.java: conformed highways initialization in constructor to reflect use of highways_fullmap.txt

File:
1 edited

Legend:

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

    r180 r184  
    66import org.w3c.dom.Element; 
    77 
    8 /** A LoopDetector represents a single detector for a single lane in a network. 
     8/**  
     9 *  A LoopDetector represents a single detector for a single lane in a network. 
    910 *  
    1011 *  A LoopDetector contains static meta data, and three dynamic attributes: vol, 
     
    2627    private int spd; 
    2728     
     29    /** 
     30     * Constructs a LoopDetector from loopID, loopLocation, and laneNum 
     31     *  
     32     * @param loopID 
     33     * @param loopLocation 
     34     * @param laneNum  
     35     */ 
    2836    public LoopDetector(int loopID, String loopLocation, int laneNum) 
    2937    { 
     
    3947    } 
    4048     
     49    /** 
     50     * XML tags used for toXML() method. 
     51     */ 
    4152    private static enum XML_TAGS 
    4253    { 
     
    89100        this.spd = spd; 
    90101    } 
    91      
     102 
     103    /** 
     104     * Returns the LoopDetector data in XMLFormat 
     105     *  
     106     * @param currElem The current XML <LoopDetector> element 
     107     */ 
    92108    public void toXML(Element currElem) 
    93109    { 
Note: See TracChangeset for help on using the changeset viewer.