Changeset 186 in tmcsimulator for trunk/src/atmsdriver/model/FEPLine.java
- Timestamp:
- 10/28/2017 06:48:11 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/atmsdriver/model/FEPLine.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/atmsdriver/model/FEPLine.java
r184 r186 37 37 } 38 38 39 /** 40 * Returns the FEPLine meta data in string format 41 * @return FEPLine metadata 39 /** Returns a string of highways data. If MetaDataOnly is true, you get a full 40 * dump of the highways meta data, which does not include dynamic loop values, 41 * and does include the string location names. If MetaDataOnly is false, 42 * dynamic loop values are included, and unnecessary information like string 43 * location values are included. 44 * 45 * The FEPSimulator takes in the toCondensedFormat() output, with a MetaDataOnly 46 * value of false, over the socket. 47 * 48 * The MetaDataOnly flag should be used to get a full dump of the highways 49 * information. This was used to get the highways_fullmap.txt output. 50 * 51 * @param MetaDataOnly Whether you want meta data, or a full dump for FEPSim 52 * @return String, highways data in condensed format 42 53 */ 43 public String getLineMeta()54 public String toCondensedFormat(boolean MetaDataOnly) 44 55 { 45 56 StringBuilder build = new StringBuilder(); … … 50 61 build.append(Integer.toString(this.stations.size())); 51 62 build.append("\n"); 52 for (Station station : stations)63 for(Station station : stations) 53 64 { 54 build.append(station. getStationMeta());65 build.append(station.toCondensedFormat(MetaDataOnly)); 55 66 } 56 67 return build.toString();
Note: See TracChangeset
for help on using the changeset viewer.
