Changeset 184 in tmcsimulator for trunk/src/atmsdriver/model/Station.java
- Timestamp:
- 10/28/2017 05:24:02 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/atmsdriver/model/Station.java (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/atmsdriver/model/Station.java
r180 r184 1 1 package atmsdriver.model; 2 2 3 import atmsdriver.ConsoleTrafficDriver;4 3 import atmsdriver.model.LoopDetector.DOTCOLOR; 5 4 import java.util.List; … … 8 7 9 8 /** 10 * A Station (LDS or Loop Detector Station) represents a group of lane detectors9 * A Station (LDS or Loop Detector Station) represents a group of lane detectors 11 10 * across all lanes at a particular point on a highway. A station is 12 11 * identified by its highway number and postmile. A station has an associated 13 12 * direction used to establish which direction is Main and which is Opposite. 14 13 * The MLTotVol and OppTotVol for a station can be dynamically updated. 15 * A station has other attributes: lineNum, ldsID, drop, and location used16 * by the FEP. A station can be compared to other stations by its postmile.14 * A station has other attributes: lineNum, ldsID, drop, and location which are 15 * used by the FEP. A station can be compared to other stations by its postmile. 17 16 * 18 17 * @author John A. Torres … … 54 53 } 55 54 55 /** 56 * Calculates the total ML Volume. 57 * 58 * @return total ML volume. 59 */ 56 60 private int getMLTotVol() 57 61 { … … 67 71 } 68 72 73 /** 74 * Calculates the total OPP Volume 75 * 76 * @return total OPP volume. 77 */ 69 78 private int getOPPTotVol() 70 79 { … … 170 179 } 171 180 } 172 } 173 181 182 this.MLTotVol = getMLTotVol(); 183 this.OppTotVol = getOPPTotVol(); 184 } 185 186 /** 187 * Output for updateByDirection. Logs the update to the console. 188 * 189 * @param dotcolor 190 * @param OPP_ML 191 */ 174 192 private void outputUpdateMessage(DOTCOLOR dotcolor, String OPP_ML) 175 193 { … … 181 199 } 182 200 201 /** 202 * XML tags used for toXML() method. 203 */ 183 204 private static enum XML_TAGS 184 205 { … … 203 224 } 204 225 } 205 226 227 /** 228 * Returns the Station data in XMLFormat. 229 * 230 * @param currElem The current XML <Station> element 231 */ 206 232 public void toXML(Element currElem) 207 233 { … … 264 290 public static enum DIRECTION 265 291 { 266 267 292 NORTH, 268 293 SOUTH,
Note: See TracChangeset
for help on using the changeset viewer.
