Changeset 234 in tmcsimulator for trunk/src/atmsdriver/model


Ignore:
Timestamp:
11/24/2017 01:30:38 PM (8 years ago)
Author:
jtorres
Message:

config/vds_data/highways_fullmap.txt: added loopLocationID. LoopDetector?.java: added loopLocationID field. Highways.java: reading in loopLocationID

Location:
trunk/src/atmsdriver/model
Files:
3 edited

Legend:

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

    r228 r234  
    283283 
    284284        int loopID = scline.nextInt(); 
    285         String loopLoc = getLoopLoc(line); 
     285        String loopLocID = scline.next(); 
     286        String loopLoc = scline.next(); 
    286287        scline.close(); 
    287         return new LoopDetector(loopID, loopLoc); 
     288        return new LoopDetector(loopID, loopLocID, loopLoc); 
    288289    } 
    289290 
  • trunk/src/atmsdriver/model/LoopDetector.java

    r202 r234  
    2020    final public int loopID; 
    2121    final public String loopLocation; 
     22    final public String loopLocationID; 
    2223     
    2324    /* dynamic data */ 
     
    3233     * @param laneNum  
    3334     */ 
    34     public LoopDetector(int loopID, String loopLocation) 
     35    public LoopDetector(int loopID, String loopLocationID, String loopLocation) 
    3536    { 
    3637        /* Set static data */ 
    3738        this.loopID = loopID; 
    3839        this.loopLocation = loopLocation; 
    39          
     40        this.loopLocationID = loopLocationID; 
    4041        /* Init dynamic data */ 
    4142        this.vol = 0; 
  • trunk/src/atmsdriver/model/Station.java

    r203 r234  
    196196        this.OppTotVol = getOPPTotVol(); 
    197197    } 
    198  
     198     
    199199    /** 
    200200     * Return the color for the lanes in a given direction. 
Note: See TracChangeset for help on using the changeset viewer.