Changeset 190 in tmcsimulator for trunk/src/atmsdriver/model/Station.java


Ignore:
Timestamp:
10/29/2017 10:51:53 PM (9 years ago)
Author:
jtorres
Message:

vds_data/highways_fullmap.txt: removed lane num field, not necessary. ATMSDriver.java: removed System.out statement. FEPLine.java: renamed lineNum member to lineID. Highways.java: added example output for toCondensedFormat(boolean) method in method comments. LoopDetector?.java: removed spd member, not necessary, as we calculate speed form occ and vol. Station.java: conformed to above changes.

File:
1 edited

Legend:

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

    r186 r190  
    2222 
    2323    /* Static Station meta data */ 
    24     final public int lineNum; 
     24    final public int lineID; 
    2525    final public int ldsID; // double check 
    2626    final public int drop; 
     
    3636 
    3737    /* Constructor */ 
    38     public Station(int lineNum, int ldsID, int drop, 
     38    public Station(int lineID, int ldsID, int drop, 
    3939            String location, List<LoopDetector> loops, int hwy, 
    4040            DIRECTION direction, double postmile) 
    4141    { 
    42         this.lineNum = lineNum; 
     42        this.lineID = lineID; 
    4343        this.ldsID = ldsID; 
    4444        this.drop = drop; 
     
    186186            { 
    187187                // UPDATE LOOP WITH VALUES 
    188                 int speed = 0; 
    189                 loop.updateLoop(dotColor.volume(), dotColor.occupancy(), speed); 
     188                loop.updateLoop(dotColor.volume(), dotColor.occupancy()); 
    190189            } 
    191190        } 
     
    253252 
    254253        Element lineNumElement = theDoc.createElement(XML_TAGS.LINE_NUM.tag); 
    255         lineNumElement.appendChild(theDoc.createTextNode(String.valueOf(this.lineNum))); 
     254        lineNumElement.appendChild(theDoc.createTextNode(String.valueOf(this.lineID))); 
    256255        stationElement.appendChild(lineNumElement); 
    257256 
Note: See TracChangeset for help on using the changeset viewer.