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

    r88 r103  
    44import org.w3c.dom.Document; 
    55import org.w3c.dom.Element; 
    6  
    7  
    86 
    97/** An FEPLine is a simulated line of communication from the FEP to  
     
    1816public class FEPLine { 
    1917    /* Static FEPLine meta data */ 
    20     final private int lineNum; 
    21     final private List<Station> stations; 
     18    final public int lineNum; 
     19    final public List<Station> stations; 
    2220    final private int count; 
    23     // NOT SURE IF NEXT IS FINAL 
     21     
    2422    final private int schedule; 
    2523    final private int lineInfo; 
    2624    final private long systemKey; 
     25     
     26    // THESE WILL NEED TO BE UPDATED MAYBE, NOT SURE, NOT A PRIORITY. SEE METHOD 
     27    // UPDATESEQUENCES() 
    2728    private long globalSeq; 
    2829    private long scheduleSeq; 
     
    4041        this.globalSeq = globalSeq; 
    4142        this.scheduleSeq = scheduleSeq; 
    42     } 
    43      
    44     public int getLineNumber() 
    45     { 
    46         return this.lineNum; 
    47     } 
    48      
    49     public List<Station> getStations() 
    50     { 
    51         return this.stations; 
    5243    } 
    5344     
Note: See TracChangeset for help on using the changeset viewer.