Warning: Can't use blame annotator:
svn blame failed on trunk/src/atmsdriver/model/Highway.java: ("Can't find a temporary directory: Internal error", 20014)

source: tmcsimulator/trunk/src/atmsdriver/model/Highway.java @ 89

Revision 89, 789 bytes checked in by jtorres, 9 years ago (diff)

trunk/test/atmsdriver/model/LoadHighwaysTest.java added test to ensure highways are loaded and sorted by postmile. Renamed NetworkTest?.java to HighwaysTest?.java

RevLine 
1package atmsdriver.model;
2
3import atmsdriver.model.Station.DIRECTION;
4import java.util.ArrayList;
5import java.util.Collections;
6
7/**
8 *
9 * @author jtorres
10 */
11class Highway {
12   
13    final private ArrayList<Station> stations;
14    final private Integer highwayNumber;
15    final private DIRECTION direction;
16   
17    public Highway(Integer highwayNum, DIRECTION direction, ArrayList<Station> stations)
18    {
19        this.highwayNumber = highwayNum;
20        this.direction = direction;
21        this.stations = stations;
22    }
23   
24    public Integer getRouteNumber()
25    {
26        return this.highwayNumber;
27    }
28   
29    public DIRECTION getDirection()
30    {
31        return this.direction;
32    }
33   
34    public ArrayList<Station> getStations()
35    {
36        return this.stations;
37    }
38}
Note: See TracBrowser for help on using the repository browser.