| 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
|
| Line | |
|---|
| 1 | package atmsdriver.model; |
|---|
| 2 | |
|---|
| 3 | import atmsdriver.model.Station.DIRECTION; |
|---|
| 4 | import java.util.ArrayList; |
|---|
| 5 | import java.util.Collections; |
|---|
| 6 | |
|---|
| 7 | /** |
|---|
| 8 | * |
|---|
| 9 | * @author jtorres |
|---|
| 10 | */ |
|---|
| 11 | class 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.